Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Modify the VHDL Architecture for the 74LS112 J-K flip-flop so that the preset (P

ID: 440495 • Letter: M

Question

Modify the VHDL Architecture for the 74LS112 J-K flip-flop so that the preset (PRE) is synchronous instead of asynchronous. The clear (CLR) remains asynchronous. ENTITY jkflipflop IS PORT( J, K, PRE, CLR, CLOCK :IN BIT; Q,QN :BUFFER BIT); END jkflipflop; ARCHITECTURE behavior OF jkflipflop is BEGIN PROCESS (CLOCK, CLR, PRE) BEGIN IF (CLR = '0') THEN Q <= '0'; QN <= '1'; ELSIF (PRE = '0') THEN Q <= '1'; QN <= '0'; ELSIF (J = '0' and K = '0') then Q <=Q; QN <=QN; elsif(J = '0' and K = '1') then Q <= '1'; QN <= '0'; elsif(J = '1' and K = '0') then Q <= '0'; QN <= '1'; elsif(J = '1' and K = '1') then Q <= NOT Q; QN <= NOT QN; END IF; END PROCESS; END behavior;

Explanation / Answer

ENTITY jkflipflop IS PORT( J, K, PRE, CLR, CLOCK :IN BIT; Q,QN :BUFFER BIT); END jkflipflop; ARCHITECTURE behavior OF jkflipflop is BEGIN PROCESS (CLOCK, CLR or PRE) BEGIN IF (CLR = '0') THEN Q
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote