Forum Discussion
Altera_Forum
Honored Contributor
16 years agoWith regard to for loop in:
interrupt_trigger: PROCESS (rst_n, clk, irq_clr_reg) IS
BEGIN
FOR i IN 0 to 6 LOOP
IF (rst_n = '0' OR irq_clr_reg(i) = '1') THEN
irq_trig_reg(i) <= '0';
ELSIF (clk'EVENT AND clk = '1') THEN
IF (irq_src_reg_posedge(i) = '1') THEN
irq_trig_reg(i) <= '1';
END IF;
END IF;
END LOOP;
END PROCESS interrupt_trigger
Ia it possible that this may go wrong: why not put the loop start after clk edge, just a thought