uaveiro-leci/1ano/2semestre/lsd/pratica01/part1/simulation/qsim/GateDemo.vwf.vht

99 lines
2.9 KiB
VHDL

-- 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 "02/18/2023 14:55:12"
-- Vhdl Test Bench(with test vectors) for design : GateDemo
--
-- Simulation tool : 3rd Party
--
LIBRARY ieee;
USE ieee.std_logic_1164.all;
ENTITY GateDemo_vhd_vec_tst IS
END GateDemo_vhd_vec_tst;
ARCHITECTURE GateDemo_arch OF GateDemo_vhd_vec_tst IS
-- constants
-- signals
SIGNAL LEDR : STD_LOGIC_VECTOR(0 DOWNTO 0);
SIGNAL SW : STD_LOGIC_VECTOR(1 DOWNTO 0);
COMPONENT GateDemo
PORT (
LEDR : OUT STD_LOGIC_VECTOR(0 DOWNTO 0);
SW : IN STD_LOGIC_VECTOR(1 DOWNTO 0)
);
END COMPONENT;
BEGIN
i1 : GateDemo
PORT MAP (
-- list connections between master ports and signals
LEDR => LEDR,
SW => SW
);
-- SW[0]
t_prcs_SW_0: PROCESS
BEGIN
SW(0) <= '0';
WAIT FOR 80000 ps;
SW(0) <= '1';
WAIT FOR 100000 ps;
SW(0) <= '0';
WAIT FOR 240000 ps;
SW(0) <= '1';
WAIT FOR 200000 ps;
SW(0) <= '0';
WAIT FOR 40000 ps;
SW(0) <= '1';
WAIT FOR 60000 ps;
SW(0) <= '0';
WAIT FOR 80000 ps;
SW(0) <= '1';
WAIT FOR 100000 ps;
SW(0) <= '0';
WAIT;
END PROCESS t_prcs_SW_0;
-- SW[1]
t_prcs_SW_1: PROCESS
BEGIN
SW(1) <= '0';
WAIT FOR 240000 ps;
SW(1) <= '1';
WAIT FOR 100000 ps;
SW(1) <= '0';
WAIT FOR 140000 ps;
SW(1) <= '1';
WAIT FOR 80000 ps;
SW(1) <= '0';
WAIT FOR 100000 ps;
SW(1) <= '1';
WAIT FOR 60000 ps;
SW(1) <= '0';
WAIT FOR 40000 ps;
SW(1) <= '1';
WAIT FOR 200000 ps;
SW(1) <= '0';
WAIT;
END PROCESS t_prcs_SW_1;
END GateDemo_arch;