-- wrlatch.vhd: asynchronous SR latch for walk request -- Dan R. K. Ports -- 6.111 Lab 2, 2003/10/01 library ieee; use ieee.std_logic_1164.all; entity wrlatch is port ( latchset, latchreset : in std_logic; latchout : out std_logic); end wrlatch; architecture behavioral of wrlatch is signal latchreg : std_logic := '0'; begin -- behavioral latchreg <= (latchreg or latchset) and not (latchreset); latchout <= latchreg; end behavioral;