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 46

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 46 arif_endro
-- ------------------------------------------------------------------------
2 41 arif_endro
-- Copyright (C) 2004 Arif Endro Nugroho
3 46 arif_endro
-- All rights reserved.
4 13 arif_endro
-- 
5 46 arif_endro
-- Redistribution and use in source and binary forms, with or without
6
-- modification, are permitted provided that the following conditions
7
-- are met:
8 13 arif_endro
-- 
9 46 arif_endro
-- 1. Redistributions of source code must retain the above copyright
10
--    notice, this list of conditions and the following disclaimer.
11
-- 2. Redistributions in binary form must reproduce the above copyright
12
--    notice, this list of conditions and the following disclaimer in the
13
--    documentation and/or other materials provided with the distribution.
14 13 arif_endro
-- 
15 46 arif_endro
-- THIS SOFTWARE IS PROVIDED BY ARIF ENDRO NUGROHO "AS IS" AND ANY EXPRESS
16
-- OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
-- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
-- DISCLAIMED. IN NO EVENT SHALL ARIF ENDRO NUGROHO BE LIABLE FOR ANY
19
-- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23
-- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
24
-- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
-- POSSIBILITY OF SUCH DAMAGE.
26 13 arif_endro
-- 
27 46 arif_endro
-- End Of License.
28
-- ------------------------------------------------------------------------
29 2 arif_endro
 
30
library IEEE;
31
use IEEE.STD_LOGIC_1164.ALL;
32
 
33
entity bench is
34
port (
35
    clock               : in  std_logic;
36
    reset               : in  std_logic
37
    );
38
end bench;
39
 
40
architecture structural of bench is
41
  component fm
42
  port (
43
    CLK              : in  std_logic;
44
    RESET            : in  std_logic;
45
    FMIN             : in  std_logic_vector (07 downto 0);
46
    DMOUT            : out std_logic_vector (11 downto 0)
47
    );
48
  end component;
49
 
50
  component input_fm
51
  port (
52
    clock            : in  std_logic;
53
    clear            : in  std_logic;
54
    test_signal_fm   : out bit_vector (07 downto 0);
55
    test_signal_fmTri: out bit_vector (07 downto 0)
56
    );
57
  end component;
58
 
59
  signal test_signal_fm        : bit_vector (07 downto 0);
60
  signal test_signal_fm_std    : std_logic_vector (07 downto 0);
61
  signal test_signal_fmTri     : bit_vector (07 downto 0);
62
  signal test_signal_fmTri_std : std_logic_vector (07 downto 0);
63
  signal output_fm_std         : std_logic_vector (11 downto 0);
64
 
65
  begin
66
 test_signal_fm_std    <= to_stdlogicvector (test_signal_fm);
67
 test_signal_fmTri_std <= to_stdlogicvector (test_signal_fmTri);
68
 
69
 myinput : input_fm
70
   port map (
71
    clock            => clock,
72
    clear            => reset,
73
    test_signal_fm   => test_signal_fm,
74
    test_signal_fmTri=> test_signal_fmTri
75
    );
76
  myfm : fm
77
   port map (
78
    CLK                  => clock,
79
    RESET                => reset,
80
    FMIN                 => test_signal_fm_std,
81
    DMOUT (11 downto 0)  => output_fm_std
82
    );
83
end structural;

powered by: WebSVN 2.1.0

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