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

Subversion Repositories simple_fm_receiver

[/] [simple_fm_receiver/] [trunk/] [bench/] [bench.vhdl] - Blame information for rev 13

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

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

powered by: WebSVN 2.1.0

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