Combinational for-loop Vector reversal 2¶
Problem statement¶
Given a 100-bit input vector [99:0], reverse its bit ordering.
Solution¶
Verilog | |
---|---|
- $bits() is a system function that returns the width of a signal.
- $bits(out) is 100 because out is 100 bits wide.