Forum Discussion
Altera_Forum
Honored Contributor
12 years agoA JK flip-flop doesn't have Set and Reset inputs. may be you want a preset and clear asynchronous inputs. In a FPGA you do that with a single asynchronous reset:
process(clr, clk) begin if( clr = '1' ) then q_reg <= '0'; elsif( clk'event and clk = '1' ) then q_reg <= q_next; end if; end process; q_next <= '0' when ( j = '0' and k = '1' ) else ....etc