entity RS_LATCH is port ( r: in bit; s: in bit; q1: inout bit; q2: inout bit ); end; architecture behaviour of RS_LATCH is begin q1 <= (r nor q2); q2 <= (s nor q1); end;