1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
entity ent is port ( r : in bit; s : in bit; q : out bit ); end entity; architecture a of ent is begin process(r, s) begin if r = '1' then q <= '0'; elsif s = '1' then q <= '1'; end if; end process; end;