111 lines
2.9 KiB
Plaintext
111 lines
2.9 KiB
Plaintext
|
-- Copyright (C) 2020 Intel Corporation. All rights reserved.
|
||
|
-- Your use of Intel Corporation's design tools, logic functions
|
||
|
-- and other software and tools, and any partner logic
|
||
|
-- functions, and any output files from any of the foregoing
|
||
|
-- (including device programming or simulation files), and any
|
||
|
-- associated documentation or information are expressly subject
|
||
|
-- to the terms and conditions of the Intel Program License
|
||
|
-- Subscription Agreement, the Intel Quartus Prime License Agreement,
|
||
|
-- the Intel FPGA IP License Agreement, or other applicable license
|
||
|
-- agreement, including, without limitation, that your use is for
|
||
|
-- the sole purpose of programming logic devices manufactured by
|
||
|
-- Intel and sold by Intel or its authorized distributors. Please
|
||
|
-- refer to the applicable agreement for further details, at
|
||
|
-- https://fpgasoftware.intel.com/eula.
|
||
|
|
||
|
-- *****************************************************************************
|
||
|
-- This file contains a Vhdl test bench with test vectors .The test vectors
|
||
|
-- are exported from a vector file in the Quartus Waveform Editor and apply to
|
||
|
-- the top level entity of the current Quartus project .The user can use this
|
||
|
-- testbench to simulate his design using a third-party simulation tool .
|
||
|
-- *****************************************************************************
|
||
|
-- Generated on "12/02/2022 13:03:34"
|
||
|
|
||
|
-- Vhdl Test Bench(with test vectors) for design : Teste3
|
||
|
--
|
||
|
-- Simulation tool : 3rd Party
|
||
|
--
|
||
|
|
||
|
LIBRARY ieee;
|
||
|
USE ieee.std_logic_1164.all;
|
||
|
|
||
|
ENTITY Teste3_vhd_vec_tst IS
|
||
|
END Teste3_vhd_vec_tst;
|
||
|
ARCHITECTURE Teste3_arch OF Teste3_vhd_vec_tst IS
|
||
|
-- constants
|
||
|
-- signals
|
||
|
SIGNAL A : STD_LOGIC;
|
||
|
SIGNAL B : STD_LOGIC;
|
||
|
SIGNAL C : STD_LOGIC;
|
||
|
SIGNAL D : STD_LOGIC;
|
||
|
SIGNAL F : STD_LOGIC;
|
||
|
COMPONENT Teste3
|
||
|
PORT (
|
||
|
A : IN STD_LOGIC;
|
||
|
B : IN STD_LOGIC;
|
||
|
C : IN STD_LOGIC;
|
||
|
D : IN STD_LOGIC;
|
||
|
F : OUT STD_LOGIC
|
||
|
);
|
||
|
END COMPONENT;
|
||
|
BEGIN
|
||
|
i1 : Teste3
|
||
|
PORT MAP (
|
||
|
-- list connections between master ports and signals
|
||
|
A => A,
|
||
|
B => B,
|
||
|
C => C,
|
||
|
D => D,
|
||
|
F => F
|
||
|
);
|
||
|
|
||
|
-- A
|
||
|
t_prcs_A: PROCESS
|
||
|
BEGIN
|
||
|
LOOP
|
||
|
A <= '0';
|
||
|
WAIT FOR 50000 ps;
|
||
|
A <= '1';
|
||
|
WAIT FOR 50000 ps;
|
||
|
IF (NOW >= 1000000 ps) THEN WAIT; END IF;
|
||
|
END LOOP;
|
||
|
END PROCESS t_prcs_A;
|
||
|
|
||
|
-- B
|
||
|
t_prcs_B: PROCESS
|
||
|
BEGIN
|
||
|
LOOP
|
||
|
B <= '0';
|
||
|
WAIT FOR 100000 ps;
|
||
|
B <= '1';
|
||
|
WAIT FOR 100000 ps;
|
||
|
IF (NOW >= 1000000 ps) THEN WAIT; END IF;
|
||
|
END LOOP;
|
||
|
END PROCESS t_prcs_B;
|
||
|
|
||
|
-- C
|
||
|
t_prcs_C: PROCESS
|
||
|
BEGIN
|
||
|
FOR i IN 1 TO 2
|
||
|
LOOP
|
||
|
C <= '0';
|
||
|
WAIT FOR 200000 ps;
|
||
|
C <= '1';
|
||
|
WAIT FOR 200000 ps;
|
||
|
END LOOP;
|
||
|
C <= '0';
|
||
|
WAIT;
|
||
|
END PROCESS t_prcs_C;
|
||
|
|
||
|
-- D
|
||
|
t_prcs_D: PROCESS
|
||
|
BEGIN
|
||
|
D <= '0';
|
||
|
WAIT FOR 400000 ps;
|
||
|
D <= '1';
|
||
|
WAIT FOR 400000 ps;
|
||
|
D <= '0';
|
||
|
WAIT;
|
||
|
END PROCESS t_prcs_D;
|
||
|
END Teste3_arch;
|