Closed Aegithalos-caudatus closed 5 months ago
right ... we have the sext
and zext
operators ... if there are multiple bits to be replicated I think you would need to write a for loop in an update block?
Thanks. I think a modern synthesizer should be able to yield the same result for these approaches. Though the for-loop version might be a bit harder to read ...
Hi! Is there any direct support or equivalence for the bit-replicate operator in PyMTL? I am trying to implement some logic like this:
I searched for several related keywords in the repository but did not find useful information.
Also, I have tried the updates in Improving concat #278. However, such generator expression is still rejected inside the update/update_ff block.
Update: Okay I think the sext() is a workaround for 1 bit :) Then what if there are multiple bits to be replicated?