bachok83
Newbie level 2
verilog set wire to parameter
is there any way i can set values to wire from parameter value (in verilog)?
say in VHDL, i can easily use conv_std_logic_vector function.
I tried setting it right away, eg
parameter bla = 10;
wire [6:1] thewire;
assign thewire = bla+5;
that works, but synthesizer complains (warns) about truncated value as bla+5 is tracked as integer32. Is there any other way to do this?
is there any way i can set values to wire from parameter value (in verilog)?
say in VHDL, i can easily use conv_std_logic_vector function.
I tried setting it right away, eg
parameter bla = 10;
wire [6:1] thewire;
assign thewire = bla+5;
that works, but synthesizer complains (warns) about truncated value as bla+5 is tracked as integer32. Is there any other way to do this?