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

Subversion Repositories simple_fm_receiver

[/] [simple_fm_receiver/] [trunk/] [bench_xil/] [bench_xil.vhdl] - Blame information for rev 44

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 arif_endro
-- $Id: bench_xil.vhdl,v 1.3 2005-03-04 08:04:49 arif_endro Exp $
2 2 arif_endro
-------------------------------------------------------------------------------
3
-- Title       : Test Bench For Xilinx
4
-- Project     : FM Receiver 
5
-------------------------------------------------------------------------------
6
-- File        : bench.vhdl
7
-- Author      : "Arif E. Nugroho" <arif_endro@yahoo.com>
8
-- Created     : 2004/12/23
9 13 arif_endro
-- Last update :
10
-- Simulators  :
11
-- Synthesizers: 
12 2 arif_endro
-- Target      : 
13
-------------------------------------------------------------------------------
14
-- Description : Test bench for FM receiver
15
-------------------------------------------------------------------------------
16 41 arif_endro
-- Copyright (C) 2004 Arif Endro Nugroho
17 2 arif_endro
-------------------------------------------------------------------------------
18 13 arif_endro
-- 
19
--      THIS SOURCE FILE MAY BE USED AND DISTRIBUTED WITHOUT RESTRICTION
20
-- PROVIDED THAT THIS COPYRIGHT STATEMENT IS NOT REMOVED FROM THE FILE AND THAT
21
-- ANY DERIVATIVE WORK CONTAINS THE ORIGINAL COPYRIGHT NOTICE AND THE
22
-- ASSOCIATED DISCLAIMER.
23
-- 
24
-------------------------------------------------------------------------------
25
-- 
26
--      THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27
-- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
-- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
29
-- EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31
-- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32
-- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33
-- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34
-- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
35
-- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
-- 
37
-------------------------------------------------------------------------------
38 2 arif_endro
 
39
library IEEE;
40
use IEEE.STD_LOGIC_1164.ALL;
41
 
42
entity bench is
43
port (
44
    clock               : in  std_logic;
45
    reset               : in  std_logic
46
    );
47
end bench;
48
 
49
architecture structural of bench is
50
  component fm
51
  port (
52
    CLK              : in  std_logic;
53
    RESET            : in  std_logic;
54
    FMIN             : in  std_logic_vector (07 downto 0);
55
    DMOUT            : out std_logic_vector (11 downto 0)
56
    );
57
  end component;
58
 
59
  component input_fm
60
  port (
61
    clock            : in  std_logic;
62
    clear            : in  std_logic;
63
    test_signal_fm   : out bit_vector (07 downto 0);
64
    test_signal_fmTri: out bit_vector (07 downto 0)
65
    );
66
  end component;
67
 
68
  signal test_signal_fm        : bit_vector (07 downto 0);
69
  signal test_signal_fm_std    : std_logic_vector (07 downto 0);
70
  signal test_signal_fmTri     : bit_vector (07 downto 0);
71
  signal test_signal_fmTri_std : std_logic_vector (07 downto 0);
72
  signal output_fm_std         : std_logic_vector (11 downto 0);
73
 
74
  begin
75
 test_signal_fm_std    <= to_stdlogicvector (test_signal_fm);
76
 test_signal_fmTri_std <= to_stdlogicvector (test_signal_fmTri);
77
 
78
 myinput : input_fm
79
   port map (
80
    clock            => clock,
81
    clear            => reset,
82
    test_signal_fm   => test_signal_fm,
83
    test_signal_fmTri=> test_signal_fmTri
84
    );
85
  myfm : fm
86
   port map (
87
    CLK                  => clock,
88
    RESET                => reset,
89
    FMIN                 => test_signal_fm_std,
90
    DMOUT (11 downto 0)  => output_fm_std
91
    );
92
end structural;

powered by: WebSVN 2.1.0

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