calyx icon indicating copy to clipboard operation
calyx copied to clipboard

Remove use of always_comb that Icarus does not support

Open KarlJoad opened this issue 1 year ago • 4 comments
trafficstars

Attempt to close #2253. Still a WiP.

KarlJoad avatar Aug 19 '24 21:08 KarlJoad

@rachitnigam, I just tried this change on the unsigned-dot-product example in interp/, and It seems to have simulated fine?

KarlJoad avatar Aug 21 '24 18:08 KarlJoad

Was it previously erroring out?

rachitnigam avatar Sep 28 '24 00:09 rachitnigam

I just checked on my checkout of main (which is on commit f4e80ec0). It looks like Icarus executes correctly and produces a waveform. So no, it looks like Icarus was not erroring out. I'm just worried about the warning message Icarus prints.

$ ./target/debug/fud2 ./interp/tests/complex/unsigned-dot-product.futil --from calyx -o test.vcd --through icarus -s sim.data=./interp/tests/complex/unsigned-dot-product.futil.data
[WARN  calyx_frontend::attribute] The attribute @static is deprecated and will be ignored by the compiler.
[WARN  calyx_frontend::attribute] The attribute @static is deprecated and will be ignored by the compiler.
[WARN  calyx_frontend::attribute] The attribute @static is deprecated and will be ignored by the compiler.
[WARN  calyx_frontend::attribute] The attribute @static is deprecated and will be ignored by the compiler.
verilog-noverify.sv:149: sorry: constant selects in always_* processes are not currently supported (all bits will be included).

[nix-shell:~/Repos/calyx] 09:57:03 $ ll test.vcd
-rw-r--r-- 1 karljoad users 46415 Sep 30 09:57 test.vcd

KarlJoad avatar Sep 30 '24 15:09 KarlJoad

Okay, then let's trigger the remaining tests and see if there are any failures. You need to mark the PR ready for review when you're ready.

rachitnigam avatar Oct 01 '24 02:10 rachitnigam

@ekiwi wanted another pair of eyes on this in case you think there could be any problems changing the always_comb to always @*. I'm going to fix the failing tests and get this merge ready. If you think it's good, let's merge.

rachitnigam avatar Nov 03 '24 21:11 rachitnigam

Closing in favor of https://github.com/calyxir/calyx/pull/2330.

rachitnigam avatar Nov 03 '24 21:11 rachitnigam