Altera_Forum
Honored Contributor
11 years agoArrays issue
I've been trying to code arrays lately (verilog newbie) and I'm having issues reading values inside them.
Narrowed issue down to a small code sample:module arrays(LEDG);
output LEDG;
reg array;
reg wat=0;
initial begin
array=8'hff;
end
//assign LEDG=array;
assign LEDG=array;
endmodule First (commented) assign will return the correct value (0xff), second one won't (returns 0x00). Cannot understand why, is there something about arrays usage I missed out? Didn't find much info. Using Quartus 13.0.1 Thanks