Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / src_dir / vhdl1.vhdl
1 library ieee;
2 use ieee.std_logic_1164.all;
3
4 entity tb is
5 end tb;
6
7 architecture behav of tb is
8
9   -- toggle period
10   constant period_c : time := 1 ms;
11
12   -- we'll be poking on this signal
13   signal toggle_s : std_logic_vector(1 downto 0) := "01";
14
15 begin
16
17   -----------------------------------------------------------------------------
18   -- Process toggle
19   --
20   -- Purpose:
21   --   Flip the toggle_s signal periodically.
22   --
23   toggle: process
24   begin
25
26     wait for period_c/2;
27     toggle_s <= not toggle_s;
28
29   end process toggle;
30   --
31   -----------------------------------------------------------------------------
32
33 end behav;
34
35 configuration tb_behav_c0 of tb is
36
37   for behav
38   end for;
39
40 end tb_behav_c0;