Skip to content

v0.4.5

Compare
Choose a tag to compare
@lethalbit lethalbit released this 26 Mar 14:04
· 235 commits to main since this release
v0.4.5
df78e88

This is a minor bugfix release and also includes updates to the ToriiTestCase, which makes it now generally usable for testing and simulation.

Torii can be installed from the wheel attached or from PyPi

Added

  • Added -norom and -proc options to verilog generation if available in Yosys.
  • Added a small tutorial on using platform.add_file with Instance for referencing external modules.
  • Added conversion helpers to/from picoseconds.

Changed

  • Updated the minimum Yosys version to 0.15.
  • Minor typing updates.
  • Value.matches now returns Const(1) when no value is supplied.
  • Platform.build now allows for lists of strings to be passed for argument.
  • Invocations of read_ilang in Yosys scripts has been replaced with read_rtlil as read_ilang has been deprecated for a while now.
  • Replaced sim_case in ToriiTestCase with ToriiTestCase.simulation and added two attributes for defining the simulation domain ToriiTestCase.comb_domain and ToriiTestCase.sync_domain, the latter of which takes a domain = param to specify which synchronous domain it is using.
  • The default platform in ToriiTestCase has been replaced with None, rather than MockPlatform
  • Gated the initialization of the ToriiTestCase dut behind a check to prevent non-simulating tests, and tests that don't use the DUT from exploding.
  • Made the connectors property on Platform's optional, it now currently defaults to an empty list.
  • Updated rich dependency version from ~=12.6.0 to >=12.6.0

Deprecated

  • Deprecated the current torii.cli.* methods in anticipation of replacing them.

Removed

  • Removed remote SSH build support
  • Removed Value.__hash__

Fixed

  • Corrected how environment variables were extracted making them more consistent.
  • Fixed the ToriiTestCase so it's now properly functional
  • Clarified the usage of Cat in the language documentation, noting that it can take more than two arguments for concatenation.
  • Added a warning on potential off-by-one errors when invoking Signal with a range and having the reset value be the same as the end of the range.