naz56
Member level 3
verilog array initialization
hi everyone
can it b possible to initialize array in separate file?
like
/////////////////file(1) define.v //////////
initial
begin
array[0]=8'h56;
array[1]=8'h56;
array[2]=8'h56;
array[3]=8'h56;
end
///////////////////////////////
then in new file named "main.v" i want 2 use "define.v" file here
module kkkk(etc etc);
`include "define.v"
etc etc etc
endmodule
but its nt working...helppppppppppppppppppp
hi everyone
can it b possible to initialize array in separate file?
like
/////////////////file(1) define.v //////////
initial
begin
array[0]=8'h56;
array[1]=8'h56;
array[2]=8'h56;
array[3]=8'h56;
end
///////////////////////////////
then in new file named "main.v" i want 2 use "define.v" file here
module kkkk(etc etc);
`include "define.v"
etc etc etc
endmodule
but its nt working...helppppppppppppppppppp