OpenCores
URL https://opencores.org/ocsvn/epc_rfid_transponder/epc_rfid_transponder/trunk

Subversion Repositories epc_rfid_transponder

[/] [epc_rfid_transponder/] [trunk/] [tb_Invselflag.vhd] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 erwing
--------------------------------------------------------------------------------
2
-- Company: 
3
-- Engineer:
4
--
5
-- Create Date:   15:58:53 05/18/2009
6
-- Design Name:   
7
-- Module Name:   /home/erwing/Projects/vhdl/rfid/tb_Invselflag.vhd
8
-- Project Name:  rfid
9
-- Target Device:  
10
-- Tool versions:  
11
-- Description:   
12
-- 
13
-- VHDL Test Bench Created by ISE for module: InvSelFlag
14
-- 
15
-- Dependencies:
16
-- 
17
-- Revision:
18
-- Revision 0.01 - File Created
19
-- Additional Comments:
20
--
21
-- Notes: 
22
-- This testbench has been automatically generated using types std_logic and
23
-- std_logic_vector for the ports of the unit under test.  Xilinx recommends
24
-- that these types always be used for the top-level I/O of a design in order
25
-- to guarantee that the testbench will bind correctly to the post-implementation 
26
-- simulation model.
27
--------------------------------------------------------------------------------
28
LIBRARY ieee;
29
USE ieee.std_logic_1164.ALL;
30
USE ieee.std_logic_unsigned.all;
31
USE ieee.numeric_std.ALL;
32
 
33
ENTITY tb_Invselflag IS
34
END tb_Invselflag;
35
 
36
ARCHITECTURE behavior OF tb_Invselflag IS
37
 
38
    -- Component Declaration for the Unit Under Test (UUT)
39
 
40
    COMPONENT InvSelFlag
41
    PORT(
42
         S1i : IN  std_logic;
43
         S2i : IN  std_logic;
44
         S3i : IN  std_logic;
45
         SLi : IN  std_logic;
46
         S1o : OUT  std_logic;
47
         S2o : OUT  std_logic;
48
         S3o : OUT  std_logic;
49
         SLo : OUT  std_logic
50
        );
51
    END COMPONENT;
52
 
53
 
54
   --Inputs
55
   signal S1i : std_logic := '0';
56
   signal S2i : std_logic := '0';
57
   signal S3i : std_logic := '0';
58
   signal SLi : std_logic := '0';
59
 
60
        --Outputs
61
   signal S1o : std_logic;
62
   signal S2o : std_logic;
63
   signal S3o : std_logic;
64
   signal SLo : std_logic;
65
 
66
BEGIN
67
 
68
        -- Instantiate the Unit Under Test (UUT)
69
   uut: InvSelFlag PORT MAP (
70
          S1i => S1i,
71
          S2i => S2i,
72
          S3i => S3i,
73
          SLi => SLi,
74
          S1o => S1o,
75
          S2o => S2o,
76
          S3o => S3o,
77
          SLo => SLo
78
        );
79
 
80
   -- No clocks detected in port list. Replace <clock> below with 
81
   -- appropriate port name 
82
 
83
   constant <clock>_period := 1ns;
84
 
85
   <clock>_process :process
86
   begin
87
                <clock> <= '0';
88
                wait for <clock>_period/2;
89
                <clock> <= '1';
90
                wait for <clock>_period/2;
91
   end process;
92
 
93
 
94
   -- Stimulus process
95
   stim_proc: process
96
   begin
97
      -- hold reset state for 100ms.
98
      wait for 100ms;
99
 
100
      wait for <clock>_period*10;
101
 
102
      -- insert stimulus here 
103
 
104
      wait;
105
   end process;
106
 
107
END;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.