-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autowrap and network construction features #212
Conversation
also fix bug in umi gpio object creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
examples/axil/README.md
Outdated
|
||
```python | ||
axil = AxiLiteTxRx('axil', data_width=..., addr_width=...) | ||
axi = dut.intfs['s_axil'] # type: AxiLiteTxRx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a typo. Should be axil = dut.intfs['s_axil']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, good catch - fixed
This PR adds a couple of new features:
autowrap
feature forSbDut
that automatically generates Verilog wrapper code to instantiate a DUT and connect it to switchboard modules. This can eliminate the need to create atestbench.sv
file in some cases.SbNetwork
class allowing for the dynamic construction of networks of simulations. Seeexamples/network
for an example and documentation.--max-rate X
when running switchboard simulations to limit the speed of simulations and switchboard packet transmission toX
Hz in wall time. This comes in handy in several cases: (1) prevents generating giant VCD files, (2) makes it easier to saturate links since the driver doesn't need to be as fast, and (3) makes it easier to achieve good sharing of processor cores when running many simulations in parallel.--max-rate X
assumescmdline=True
was set forSbDut
; if not, specifymax_rate=X
argument in theSbDut
constructor.cmdline=True
is a relatively new feature - it presents a standard command-line interface for settingtool
,fast
,trace
, etc.These new features are big enough that I think it's worth bumping the version number of switchboard to 0.2.0. This new version should be fully backwards-compatible with 0.1.0.
Future updates planned for 0.2.X include:
SbNetwork
compile into a single-netlist Verilog simulation for best accuracy.SbNetwork
as a component in anSbNetwork
. This, combined with (1), would allow for networks to be simulated by connecting together RTL simulations of sub-networks.SbNetwork.connect()
to connect over TCP to remote machines.