[libre-riscv-dev] Rust over C/C++
Jacob Lifshay
programmerjake at gmail.com
Sun Jan 5 15:16:33 GMT 2020
Somehow duplicate emails got sent.
On Sun, Jan 5, 2020 at 6:18 AM Immanuel, Yehowshua U
<yimmanuel3 at gatech.edu> wrote:
>
> I’m am quite happy to hear that you guys use nMigen. This is quite excellent!
> Just a few question about how you guys write nMIgen test benches(because I am writing the verilator backend which is about 75% finished).
>
> The following is from a convo with whitequark:
>
> > The statement:
>
> > yield dut.c.eq(dut.a * dut.b)
>
> > is evaluated as-if you made a module with just those three values, like this:
>
> > m = Module()
> > m.d.comb += dut.c.eq(dut.a * dut.b)
>
> > assuming dut.c isn't driven elsewhere.
>
> Do you guys ever use Signal expressions inside test bench assignments?
> If not, then I’m thinking about leaving that unsupported with the verilator backend because adding support
> opens up a whole other can of worms.
I have not seen anything more complex than assigning python integers
to signals in our code (I wasn't even aware nmigen supported that).
I think leaving it unsupported is perfectly fine.
Will be happy to use a much faster backend than nmigen's built-in
simulator (though the simulator has slightly different semantics than
verilog and may help catch errors in the nmigen source), even though
whitequark has been putting a lot of effort into making nmigen go
faster.
Keep up the good work!
Jacob
More information about the libre-riscv-dev
mailing list