init, starts simulation incorrectly
This commit is contained in:
commit
bb97d075c2
4 changed files with 113 additions and 0 deletions
32
sim/example_tb.vhdl
Normal file
32
sim/example_tb.vhdl
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
|
||||
entity example_tb is
|
||||
end entity;
|
||||
|
||||
architecture behav of example_tb is
|
||||
|
||||
component adder is
|
||||
port(
|
||||
x : in std_logic;
|
||||
y : in std_logic;
|
||||
z : out std_logic
|
||||
);
|
||||
end component;
|
||||
|
||||
signal x_in : std_logic;
|
||||
signal y_in : std_logic;
|
||||
signal z_out : std_logic;
|
||||
|
||||
begin
|
||||
|
||||
x_in <= '1';
|
||||
y_in <= '0';
|
||||
|
||||
U1 : adder port map (
|
||||
x => x_in,
|
||||
y => y_in,
|
||||
z => z_out
|
||||
);
|
||||
|
||||
end architecture;
|
||||
Loading…
Add table
Add a link
Reference in a new issue