Skip to content

Add cocotb system tests and sim server using testtarget - #259

Open
EmilioPeJu wants to merge 13 commits into
mainfrom
system-tests
Open

Add cocotb system tests and sim server using testtarget#259
EmilioPeJu wants to merge 13 commits into
mainfrom
system-tests

Conversation

@EmilioPeJu

@EmilioPeJu EmilioPeJu commented Dec 9, 2025

Copy link
Copy Markdown
Contributor
  • Add testtarget to facilitate simulation and system tests.
  • Add system tests for register access, pcap and pgen.
  • Run system tests in CI.
  • Add simulation server using the testtarget.

All optimizations to the simulation server will be done in a separate PR.

@codecov

codecov Bot commented Dec 9, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.72%. Comparing base (0be786f) to head (b8cc5d8).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #259      +/-   ##
==========================================
+ Coverage   69.98%   71.72%   +1.74%     
==========================================
  Files          20       20              
  Lines        1206     1206              
==========================================
+ Hits          844      865      +21     
+ Misses        362      341      -21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@EmilioPeJu
EmilioPeJu force-pushed the system-tests branch 3 times, most recently from af4e355 to 087729c Compare December 9, 2025 19:28
@EmilioPeJu EmilioPeJu changed the title Add cocotb system tests using testtarget WIP: Add cocotb system tests using testtarget Dec 11, 2025
@EmilioPeJu EmilioPeJu changed the title WIP: Add cocotb system tests using testtarget WIP: Add cocotb system tests and sim server using testtarget Dec 11, 2025
@EmilioPeJu
EmilioPeJu force-pushed the system-tests branch 9 times, most recently from e243efb to 5911669 Compare December 18, 2025 17:41
@EmilioPeJu EmilioPeJu changed the title WIP: Add cocotb system tests and sim server using testtarget Add cocotb system tests and sim server using testtarget Dec 18, 2025
@EmilioPeJu
EmilioPeJu force-pushed the system-tests branch 2 times, most recently from 30c02de to 15cd7c2 Compare December 18, 2025 17:51
@EmilioPeJu
EmilioPeJu force-pushed the system-tests branch 3 times, most recently from 65a8b47 to 58c8baa Compare December 22, 2025 00:13
Now, the target can specify an empty io field and the no interface will
be passed to soft_blocks, on top of that, interface_types will not be
imported to allow simulator without VHDL interfaces support.
It contains the usual soft blocks and exposes the AXI ports so that the
simulation scripts can control them.

This will be used for simulation and could be used for system tests too.
This helps reduce the simulation time a bit.
Additionally, the cocotb timing tests have been changed to use the
testtarget instead.
- The main loop alternates between simulating and receiving commands
from socket.
- Read and Write commands translate to a register read or write in the
register axi interface.
- Table command is handled by writing data to a region of the
(simulated) memory and writing the table address and length registers
accordingly.
- PCAP interrupts are checked in every iteration, if detected, the next
buffer is pushed and the data from the completed buffer is accumulated
to return as a response to the D command.
- reuse trigger objects
- avoid handling exception in every loop iteration
- fix using the same pcap buffer always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant