diff options
Diffstat (limited to 'testsuite/synth/latch01/latch01.vhdl')
-rw-r--r-- | testsuite/synth/latch01/latch01.vhdl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/synth/latch01/latch01.vhdl b/testsuite/synth/latch01/latch01.vhdl new file mode 100644 index 000000000..fc31d3cb1 --- /dev/null +++ b/testsuite/synth/latch01/latch01.vhdl @@ -0,0 +1,18 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity latch01 is + port (q : out std_logic; + d : std_logic; + en : std_logic); +end latch01; + +architecture behav of latch01 is +begin + process (en, d) is + begin + if en = '1' then + q <= d; + end if; + end process; +end behav; |