entity SR_flipflop is
  port ( S, R : in bit;  Q : out bit );
end entity SR_flipflop;

--------------------------------------------------

architecture checking of SR_flipflop is
begin

    set_reset : process (S, R) is
    begin
      assert S = '1' nand R = '1';
      if S = '1' then
        Q <= '1';
      end if;
      if R = '1' then
        Q <= '0';
      end if;
    end process set_reset;

end architecture checking;

<div align="center"><br /><script type="text/javascript"><!--
google_ad_client = "pub-7293844627074885";
//468x60, Created at 07. 11. 25
google_ad_slot = "8619794253";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />&nbsp;</div>