Guest
I have a two wires:
wire [m-1:0] wire1;
wire [n*m-1:0] wire2;
and I want connect wire1 to wire2 but replicate each bit of wire1
(0..m-1), n times.
m and n are parameters so I don't want to do it explicitly i.e. a
separate assign for each value of m because this would not be re-
usable.
e.g. for m=5, n=3
wire1 value = 10111
wire2 value = 111000111111111
is this possible? Thanks.
wire [m-1:0] wire1;
wire [n*m-1:0] wire2;
and I want connect wire1 to wire2 but replicate each bit of wire1
(0..m-1), n times.
m and n are parameters so I don't want to do it explicitly i.e. a
separate assign for each value of m because this would not be re-
usable.
e.g. for m=5, n=3
wire1 value = 10111
wire2 value = 111000111111111
is this possible? Thanks.