calyx icon indicating copy to clipboard operation
calyx copied to clipboard

Mark std_bit_slice and more std_ops as combinational; std_bit_slice bug fixed.

Open abnerhexu opened this issue 1 year ago • 5 comments

This pull request has two contributions.

  1. As #2292 mentioned, some ops are combinational but are not marked in Python is_comb() function.

  2. 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.

abnerhexu avatar Sep 28 '24 14:09 abnerhexu

Hm, looks like the tests are failing. Can you take a look and fix them?

rachitnigam avatar Oct 01 '24 02:10 rachitnigam

Yep, I'm looking for what is happening.

abnerhexu avatar Oct 01 '24 07:10 abnerhexu

@abnerhexu any progress on this?

rachitnigam avatar Oct 06 '24 21:10 rachitnigam

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 avatar Oct 23 '24 15:10 ekiwi

@ekiwi that sounds reasonable too!

rachitnigam avatar Oct 23 '24 16:10 rachitnigam

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.

abnerhexu avatar Oct 24 '24 00:10 abnerhexu

Mistakenly committed the changes to 8d242da68ad5cfb266cd622911beafe341921d3a

rachitnigam avatar Oct 26 '24 02:10 rachitnigam