Gast
#1616236
Hallo ! Frage wieso werden im modelsim aus dieser tb keine signale
generiert, zumindest clk müsste sich ja periodisch änder aber es sieht
so aus als ob überhaupt keine signale aus ISE an modelsim weitergegeben
werden
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE ieee.std_logic_unsigned.all;
USE ieee.numeric_std.ALL;
ENTITY tb IS
END tb;
ARCHITECTURE behavior OF tb IS
-- Component Declaration for the Unit Under Test (UUT)
COMPONENT fastcount
PORT(
SDA : INOUT std_logic;
SCL : INOUT std_logic;
clk : INOUT std_logic;
puls : INOUT std_logic
);
END COMPONENT;
--BiDirs
signal SDA : std_logic;
signal SCL : std_logic;
signal clk : std_logic;
signal puls : std_logic;
-- Clock period definitions
constant clk_period : time := 1us;
BEGIN
-- Instantiate the Unit Under Test (UUT)
uut: fastcount PORT MAP (
SDA => SDA,
SCL => SCL,
clk => clk,
puls => puls
);
Testbench_Process : Process
Begin
Wait for 10 ns;
SDA <= '1';
Wait for 10 ns;
SDA <= '0';
Wait for 10 ns;
SDA <= '1';
Wait;
End Process;
-- Clock process definitions
clk_process :process
begin
clk <= '0';
wait for clk_period/2;
clk <= '1';
wait for clk_period/2;
end process;
END;
