Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Gateware
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Gateware
Commits
802b58aa
Commit
802b58aa
authored
13 years ago
by
Maciej Lipinski
Browse files
Options
Downloads
Patches
Plain Diff
swcore[new mpm]: bugfixes in input block
parent
5040aade
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/wrsw_swcore/xswc_input_block.vhd
+6
-1
6 additions, 1 deletion
modules/wrsw_swcore/xswc_input_block.vhd
testbench/scb_top/main.sv
+11
-8
11 additions, 8 deletions
testbench/scb_top/main.sv
testbench/swcore/Manifest.py
+1
-1
1 addition, 1 deletion
testbench/swcore/Manifest.py
with
18 additions
and
10 deletions
modules/wrsw_swcore/xswc_input_block.vhd
+
6
−
1
View file @
802b58aa
...
...
@@ -1358,6 +1358,7 @@ architecture syn of xswc_input_block is
ll_wr_req
<=
'1'
;
ll_entry
.
valid
<=
'1'
;
ll_entry
.
eof
<=
'1'
;
ll_entry
.
addr
<=
ll_fsm_addr
;
ll_entry
.
dsel
<=
ll_fsm_dat_sel
;
ll_entry
.
size
<=
ll_fsm_size
;
-----------------------------------------------------------------------------------
...
...
@@ -1368,6 +1369,8 @@ architecture syn of xswc_input_block is
ll_entry
.
next_page
<=
(
others
=>
'0'
);
ll_entry
.
next_page_valid
<=
'0'
;
end
if
;
ll_entry
.
oob_size
<=
ll_fsm_oob_size
;
ll_entry
.
oob_dsel
<=
ll_fsm_oob_sel
;
s_ll_write
<=
S_WRITE
;
elsif
(
mpm_pg_req_d0
=
'1'
)
then
if
(
interpck_page_in_advance
=
'1'
)
then
-- normal write as if from READY_FOR_WR
...
...
@@ -1427,7 +1430,7 @@ architecture syn of xswc_input_block is
when
S_SOF_ON_WR
=>
--===========================================================================================
if
(
ll_wr_req
=
'1'
and
ll_wr_done_i
=
'1'
)
then
-- written
if
(
pckstart_page_in_advance
=
'1'
)
then
if
(
pckstart_page_in_advance
=
'1'
and
(
ll_entry
.
next_page_valid
=
'0'
or
ll_entry
.
next_page
/=
pckstart_pageaddr
)
)
then
ll_wr_req
<=
'1'
;
ll_entry
.
valid
<=
'0'
;
ll_entry
.
eof
<=
'0'
;
...
...
@@ -1440,6 +1443,7 @@ architecture syn of xswc_input_block is
ll_entry
.
oob_dsel
<=
ll_fsm_oob_sel
;
s_ll_write
<=
S_WRITE
;
else
ll_wr_req
<=
'0'
;
s_ll_write
<=
S_IDLE
;
end
if
;
end
if
;
...
...
@@ -1463,6 +1467,7 @@ architecture syn of xswc_input_block is
when
others
=>
--===========================================================================================
s_ll_write
<=
S_IDLE
;
ll_wr_req
<=
'1'
;
end
case
;
end
if
;
end
if
;
...
...
This diff is collapsed.
Click to expand it.
testbench/scb_top/main.sv
+
11
−
8
View file @
802b58aa
...
...
@@ -54,7 +54,7 @@ module main;
EthPacketGenerator
gen
=
new
;
EthPacket
pkt
,
tmpl
,
pkt2
;
EthPacket
arr
[];
int
i
,
j
;
//
int i,j;
arr
=
new
[
n_tries
](
arr
);
...
...
@@ -73,27 +73,29 @@ module main;
gen
.
set_size
(
63
,
257
);
fork
for
(
i
=
0
;
i
<
n_tries
;
i
++
)
begin
for
(
int
i
=
0
;
i
<
n_tries
;
i
++
)
begin
pkt
=
gen
.
gen
();
pkt
.
oob
=
TX_FID
;
$
display
(
"Tx %d"
,
i
);
// pkt.dump();
src
.
send
(
pkt
);
arr
[
i
]
=
pkt
;
//pkt.dump();
// repeat(3000) @(posedge clk_sys);
// $display("Send: %d [dsize %d]", i+1,pkt.payload.size() + 14);
end
for
(
j
=
0
;
j
<
n_tries
;
j
++
)
end
begin
for
(
int
j
=
0
;
j
<
n_tries
;
j
++
)
begin
sink
.
recv
(
pkt2
);
$
display
(
"rx %d"
,
j
);
//pkt2.dump();
if
(
unvid
)
arr
[
j
].
is_q
=
0
;
...
...
@@ -104,10 +106,11 @@ module main;
arr
[
j
].
dump
();
$
display
(
"Is: "
);
pkt2
.
dump
();
$
fatal
(
"dupa"
);
//ML
//
$fatal("dupa"); //ML
//sfp $stop;
end
end
// for (i=0;i<n_tries;i++)
end
join
seed
=
gen
.
get_seed
();
...
...
This diff is collapsed.
Click to expand it.
testbench/swcore/Manifest.py
+
1
−
1
View file @
802b58aa
target
=
"
altera
"
# "
xilinx
" #
target
=
"
xilinx
"
#
"
altera
" #
action
=
"
simulation
"
#fetchto = "../../ip_cores"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment