aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/block01/block02.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/block01/block02.vhdl')
-rw-r--r--testsuite/synth/block01/block02.vhdl24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/synth/block01/block02.vhdl b/testsuite/synth/block01/block02.vhdl
new file mode 100644
index 000000000..a22edae17
--- /dev/null
+++ b/testsuite/synth/block01/block02.vhdl
@@ -0,0 +1,24 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity block02 is
+ port (q : out std_logic;
+ d : std_logic;
+ clk : std_logic);
+end block02;
+
+architecture behav of block02 is
+begin
+ b1 : block
+ signal s : std_logic;
+ begin
+ process (clk) is
+ begin
+ if rising_edge (clk) then
+ s <= d;
+ end if;
+ end process;
+
+ q <= s;
+ end block b1;
+end behav;