Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Gateware
Commits
868f54fb
Commit
868f54fb
authored
Oct 24, 2013
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[switch-optimization]: update wrsw_nic component in package and bare_top
parent
e751e48c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
scb_top_bare.vhd
top/bare_top/scb_top_bare.vhd
+3
-2
wrsw_components_pkg.vhd
top/bare_top/wrsw_components_pkg.vhd
+4
-2
wrsw_top_pkg.vhd
top/bare_top/wrsw_top_pkg.vhd
+4
-2
No files found.
top/bare_top/scb_top_bare.vhd
View file @
868f54fb
...
...
@@ -525,7 +525,8 @@ begin
U_Nic
:
xwrsw_nic
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
)
g_address_granularity
=>
BYTE
,
g_port_mask_bits
=>
c_NUM_PORTS
+
1
)
port
map
(
clk_sys_i
=>
clk_sys
,
rst_n_i
=>
rst_n_sys
,
...
...
@@ -533,7 +534,7 @@ begin
snk_o
=>
endpoint_snk_out
(
c_NUM_PORTS
),
src_i
=>
endpoint_src_in
(
c_NUM_PORTS
),
src_o
=>
endpoint_src_out
(
c_NUM_PORTS
),
rtu_dst_port_mask_o
=>
rtu_rsp
(
c_NUM_PORTS
)
.
port_mask
(
31
downto
0
),
rtu_dst_port_mask_o
=>
rtu_rsp
(
c_NUM_PORTS
)
.
port_mask
(
c_NUM_PORTS
downto
0
),
rtu_prio_o
=>
rtu_rsp
(
c_NUM_PORTS
)
.
prio
,
rtu_drop_o
=>
rtu_rsp
(
c_NUM_PORTS
)
.
drop
,
rtu_rsp_valid_o
=>
rtu_rsp
(
c_NUM_PORTS
)
.
valid
,
...
...
top/bare_top/wrsw_components_pkg.vhd
View file @
868f54fb
...
...
@@ -138,7 +138,9 @@ package wrsw_components_pkg is
component
xwrsw_nic
generic
(
g_interface_mode
:
t_wishbone_interface_mode
;
g_address_granularity
:
t_wishbone_address_granularity
);
g_address_granularity
:
t_wishbone_address_granularity
;
g_src_cyc_on_stall
:
boolean
:
=
false
;
g_port_mask_bits
:
integer
:
=
32
);
--should be num_ports+1
port
(
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
...
...
@@ -146,7 +148,7 @@ package wrsw_components_pkg is
snk_o
:
out
t_wrf_sink_out
;
src_i
:
in
t_wrf_source_in
;
src_o
:
out
t_wrf_source_out
;
rtu_dst_port_mask_o
:
out
std_logic_vector
(
3
1
downto
0
);
rtu_dst_port_mask_o
:
out
std_logic_vector
(
g_port_mask_bits
-
1
downto
0
);
rtu_prio_o
:
out
std_logic_vector
(
2
downto
0
);
rtu_drop_o
:
out
std_logic
;
rtu_rsp_valid_o
:
out
std_logic
;
...
...
top/bare_top/wrsw_top_pkg.vhd
View file @
868f54fb
...
...
@@ -141,7 +141,9 @@ package wrsw_top_pkg is
component
xwrsw_nic
generic
(
g_interface_mode
:
t_wishbone_interface_mode
;
g_address_granularity
:
t_wishbone_address_granularity
);
g_address_granularity
:
t_wishbone_address_granularity
;
g_src_cyc_on_stall
:
boolean
:
=
false
;
g_port_mask_bits
:
integer
:
=
32
);
--should be num_ports+1
port
(
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
...
...
@@ -149,7 +151,7 @@ package wrsw_top_pkg is
snk_o
:
out
t_wrf_sink_out
;
src_i
:
in
t_wrf_source_in
;
src_o
:
out
t_wrf_source_out
;
rtu_dst_port_mask_o
:
out
std_logic_vector
(
3
1
downto
0
);
rtu_dst_port_mask_o
:
out
std_logic_vector
(
g_port_mask_bits
-
1
downto
0
);
rtu_prio_o
:
out
std_logic_vector
(
2
downto
0
);
rtu_drop_o
:
out
std_logic
;
rtu_rsp_valid_o
:
out
std_logic
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment