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
502b9c71
Commit
502b9c71
authored
Jan 22, 2012
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swcore: pWB in output block works fine
parent
e0a08eb7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
135 deletions
+64
-135
xswc_output_block.vhd
modules/wrsw_swcore/xswc_output_block.vhd
+58
-130
xswc_core.sv
testbench/swcore/xswc_core.sv
+6
-5
No files found.
modules/wrsw_swcore/xswc_output_block.vhd
View file @
502b9c71
This diff is collapsed.
Click to expand it.
testbench/swcore/xswc_core.sv
View file @
502b9c71
...
...
@@ -34,6 +34,7 @@ alloc_info_t alloc_table[1024];
alloc_info_t
dealloc_table
[
1024
]
;
int
stack_bastard
=
0
;
int
global_seed
=
0
;
int
pg_alloc_cnt
[
1024
][
20
]
;
int
pg_dealloc_cnt
[
1024
][
20
]
;
...
...
@@ -85,7 +86,7 @@ module main;
integer
ports_ready
=
0
;
// some settings
integer
n_packets_to_send
=
10
;
integer
n_packets_to_send
=
10
0
;
integer
dbg
=
0
;
...
...
@@ -177,11 +178,11 @@ module main;
input
[
`c_wrsw_num_ports
-
1
:
0
]
mask
)
;
int
i
,
j
,
seed
=
0
;
int
i
,
j
,
seed
=
global_seed
;
integer
index
;
EthPacket
pkt
,
tmpl
;
EthPacketGenerator
gen
=
new
;
global_seed
++;
tmpl
=
new
;
tmpl
.
src
=
'
{
1
,
2
,
3
,
4
,
5
,
6
};
tmpl
.
dst
=
'
{
10
,
11
,
12
,
13
,
14
,
15
};
...
...
@@ -224,12 +225,12 @@ module main;
begin
:
load_port_body
EthPacket
txed
[$]
;
int
i
,
j
,
seed
=
0
;
int
i
,
j
,
seed
=
global_seed
;
int
cnt
=
0
;
//bit [10:0] mask ;
int
mask
;
int
drop
;
global_seed
++;
if
(
dbg
)
$
display
(
"Initial waiting: %d cycles"
,
((
port
*
50
)
%
11
)
*
50
)
;
wait_cycles
(((
port
*
50
)
%
11
)
*
50
)
;
...
...
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