calyx
calyx copied to clipboard
Mark std_bit_slice and more std_ops as combinational; std_bit_slice bug fixed.
This pull request has two contributions.
-
As #2292 mentioned, some ops are combinational but are not marked in Python is_comb() function.
-
Fixed bugs in std_bit_slice verilog template and doc, since in verilog a signal's slice [a:b] contains both a-th bit and b-th bit.
Hm, looks like the tests are failing. Can you take a look and fix them?
Yep, I'm looking for what is happening.
@abnerhexu any progress on this?
I think the change to the Verilog implementation of the slice operation is going to cause problems. We actually followed the Verilog implementation when implementing slice in cider and there are quite some benchmarks that rely on the current implementation. I think it would make sense to just update the doc comments and leave the implementation as it is.
@ekiwi that sounds reasonable too!
I think the change to the Verilog implementation of the slice operation is going to cause problems. We actually followed the Verilog implementation when implementing slice in cider and there are quite some benchmarks that rely on the current implementation. I think it would make sense to just update the doc comments and leave the implementation as it is.
Sorry for the late reply.
I got that. Maybe I need to recall a version and just change the combination indicators in frontend Python.
Mistakenly committed the changes to 8d242da68ad5cfb266cd622911beafe341921d3a