[libre-riscv-dev] NMigen unit testing

Luke Kenneth Casson Leighton lkcl at lkcl.net
Mon Feb 18 05:16:58 GMT 2019


---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68

On Mon, Feb 18, 2019 at 1:25 AM Daniel Benusovich
<flyingmonkeys1996 at gmail.com> wrote:
>
> What framework are we using for unit testing?

 nmigen has simulation built-in.  here's an example of how to use it:
https://git.libre-riscv.org/?p=ieee754fpu.git;a=blob;f=src/add/test_multishift.py;h=0486d33f2c3fd2e2ea4ba5918a306d527018f414;hb=7d1fb3956f02701a70e6fff7f284487f6e1b15e3

 it's pretty good, doesn't need any other dependencies.

l.



More information about the libre-riscv-dev mailing list