Altera_Forum
Honored Contributor
16 years agoStoring value in a reg
input [11:0] stimulus;
reg val; always @(posedge clk) val <=# 1 |(stimulus); what should be the value stored in the register val? Is it the same as saying val = val | stimulus? And does value always store the lower bit of the stimulus since val is just 1 bit but stimulus is 12 bits? Thanks.