Altera_Forum
Honored Contributor
15 years agoVerilog
in verilog, how to do like q <= d[count:0]? reg [3:0] count; thanks
The expression can't result in a valid syntax, I think. The right-hand-side has a variable length, it can't be assigned to a target with (obviously) fixed length. Furthermore variable ranges are not supported. You should think about an iteration, that copies individual bits.