P
Pavel-Ioan Duta
Guest
Hello,
I'm new to this group and VHDL too. I'm trying to simulate an RS latch using structural model but with no luck. My code is the following:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENTITY RSLATCH IS
PORT(R,S : IN BIT; Q,NQ : BUFFER BIT);
END RSLATCH;
ARCHITECTURE NETLIST OF RSLATCH IS
COMPONENT NOR2
PORT(a,b : IN BIT; c : OUT BIT);
END COMPONENT;
BEGIN
U1 : NOR2
PORT MAP(R,NQ,Q);
U2 : NOR2
PORT MAP(Q,S,NQ);
END NETLIST;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I had compiled the code with success, but when im forcing the R or the S signal, my outputs (Q, NQ) aren't changing. Could somebody help me in this matter, please? Thank you in advance!
I'm new to this group and VHDL too. I'm trying to simulate an RS latch using structural model but with no luck. My code is the following:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENTITY RSLATCH IS
PORT(R,S : IN BIT; Q,NQ : BUFFER BIT);
END RSLATCH;
ARCHITECTURE NETLIST OF RSLATCH IS
COMPONENT NOR2
PORT(a,b : IN BIT; c : OUT BIT);
END COMPONENT;
BEGIN
U1 : NOR2
PORT MAP(R,NQ,Q);
U2 : NOR2
PORT MAP(Q,S,NQ);
END NETLIST;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I had compiled the code with success, but when im forcing the R or the S signal, my outputs (Q, NQ) aren't changing. Could somebody help me in this matter, please? Thank you in advance!