Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
My FIFOs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
Byron Lathi
My FIFOs
Commits
4dbaec0a
Verified
Commit
4dbaec0a
authored
7 months ago
by
Byron Lathi
Browse files
Options
Downloads
Patches
Plain Diff
Fail on tuser[0]
parent
a8d24148
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Resolve "AXIS SAF"
Pipeline
#732
passed
7 months ago
Stage: sim
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sim/cocotb/tests/axis_saf.py
+21
-1
21 additions, 1 deletion
sim/cocotb/tests/axis_saf.py
with
21 additions
and
1 deletion
sim/cocotb/tests/axis_saf.py
+
21
−
1
View file @
4dbaec0a
...
...
@@ -205,4 +205,24 @@ async def test_data_full(dut):
# Even though we wrote another packet, the count should not have increased
# we can also assert on the data pointer
assert
dut
.
dut
.
data_fifo_waddr
==
COUNT
*
LEN
//
4
assert
dut
.
dut
.
ctrl_fifo
.
u_fifo
.
waddr
.
value
.
integer
==
COUNT
\ No newline at end of file
assert
dut
.
dut
.
ctrl_fifo
.
u_fifo
.
waddr
.
value
.
integer
==
COUNT
@cocotb.test
()
async
def
test_tuser_bad
(
dut
):
tb
=
TB
(
dut
)
await
tb
.
reset
()
tb
.
axis_sink
.
pause
=
True
LEN
=
256
await
tb
.
axis_source
.
send
(
AxiStreamFrame
(
bytes
([
0xcc
for
_
in
range
(
LEN
)])))
await
tb
.
axis_source
.
send
(
AxiStreamFrame
(
bytes
([
0xcc
for
_
in
range
(
LEN
)]),
tuser
=
1
))
await
Timer
(
Decimal
(
MCLK_PERIOD_NS
*
400
),
units
=
"
ns
"
)
# Make sure we only have 1 packet
assert
dut
.
dut
.
data_fifo_waddr
==
LEN
//
4
assert
dut
.
dut
.
ctrl_fifo
.
u_fifo
.
waddr
.
value
.
integer
==
1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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