Altera_Forum
Honored Contributor
18 years agoHow to initial counter value?
I am trying to initial counter value, but fail...
if(rising_edge(clk)) then
if(sload = '1') then
s_cnt <= 5;
elsif(count_en = '1') then
s_cnt <= s_cnt + 1;
end if;
end if; I look into Technology post-fitting netlist view, and find that 'sload' is connected to all the registers 'sclr' pin of the counter. I know this should be a stupid question, but hope for any response still. Thanks in advance...