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

Subversion Repositories simple_fm_receiver

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

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

Line No. Rev Author Line
1 14 arif_endro
-- $Id: xilinx_fpga.vhdl,v 1.3 2005-03-04 08:04:00 arif_endro Exp $
2 6 arif_endro
-------------------------------------------------------------------------------
3
-- Title       : Xilinx FPGA Implementation
4
-- Project     : FM Receiver 
5
-------------------------------------------------------------------------------
6
-- File        : xilinx_fpga.vhdl
7
-- Author      : "Arif E. Nugroho" <arif_endro@yahoo.com>
8
-- Created     : 2005/01/04
9 13 arif_endro
-- Last update :
10
-- Simulators  : 
11 6 arif_endro
-- Synthesizers: Xilinx 6.3i
12
-- Target      : 
13
-------------------------------------------------------------------------------
14
-- Description : Xilinx Connector to ILA, ICON, VIO
15
-------------------------------------------------------------------------------
16 40 arif_endro
-- Copyright (C) 2004 Arif Endro Nugroho
17 6 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 6 arif_endro
 
39
-------------------------------------------------------------------------------
40
-- Notes on Implementations
41
-- Generates ILA, ICON, and VIO cores using Xilinx ChipScope with
42
-- following options:
43
-- ICON => generates to control two devices (e.g. two control port)
44
-- ILA  => generates to capture two output signal (e.g. two trigger)
45
-- VIO  => generates one async control output to control reset signal on design
46
-------------------------------------------------------------------------------
47
 
48
library IEEE;
49
use IEEE.STD_LOGIC_1164.all;
50
 
51
entity xilinx_fpga is
52
   port (
53
   clock             : in bit
54
   );
55
end xilinx_fpga;
56
 
57
architecture structural of xilinx_fpga is
58
  -------------------------------------------------------------------
59
  --
60
  --  Design Under Test
61
  --
62
  -------------------------------------------------------------------
63
  component bench
64
  port (
65
  clock              : in  bit;
66
  reset              : in  bit;
67
  output_fm          : out bit_vector (11 downto 0);
68
  output_fmTri       : out bit_vector (11 downto 0)
69
  );
70
  end component;
71
 
72
  -------------------------------------------------------------------
73
  --
74
  --  DUT Signal declaration
75
  --
76
  -------------------------------------------------------------------
77
  signal reset          : bit;
78
  signal output_fm      : bit_vector       (11 downto 0);
79
  signal output_fmTri   : bit_vector       (11 downto 0);
80
 
81
  -------------------------------------------------------------------
82
  --
83
  --  ICON core component declaration
84
  --
85
  -------------------------------------------------------------------
86
  component icon
87
    port
88
    (
89
      control0    :   out std_logic_vector(35 downto 0);
90
      control1    :   out std_logic_vector(35 downto 0)
91
    );
92
  end component;
93
 
94
 
95
  -------------------------------------------------------------------
96
  --
97
  --  ICON core signal declarations
98
  --
99
  -------------------------------------------------------------------
100
  signal control0       : std_logic_vector(35 downto 0);
101
  signal control1       : std_logic_vector(35 downto 0);
102
 
103
 
104
  -------------------------------------------------------------------
105
  --
106
  --  ILA core component declaration
107
  --
108
  -------------------------------------------------------------------
109
  component ila
110
    port
111
    (
112
      control     : in    std_logic_vector(35 downto 0);
113
      clk         : in    std_logic;
114
      trig0       : in    std_logic_vector(11 downto 0);
115
      trig1       : in    std_logic_vector(11 downto 0)
116
    );
117
  end component;
118
 
119
 
120
  -------------------------------------------------------------------
121
  --
122
  --  ILA core signal declarations
123
  --
124
  -------------------------------------------------------------------
125
--  signal control    : std_logic_vector(35 downto 0);
126
  signal clk        : std_logic;
127
  signal trig0      : std_logic_vector(11 downto 0);
128
  signal trig1      : std_logic_vector(11 downto 0);
129
 
130
  -------------------------------------------------------------------
131
  --
132
  --  VIO core component declaration
133
  --
134
  -------------------------------------------------------------------
135
  component vio
136
    port
137
    (
138
      control     : in    std_logic_vector(35 downto 0);
139
      async_out   : out   std_logic_vector(0 downto 0)
140
    );
141
  end component;
142
 
143
 
144
  -------------------------------------------------------------------
145
  --
146
  --  VIO core signal declarations
147
  --
148
  -------------------------------------------------------------------
149
--  signal control    : std_logic_vector(35 downto 0);
150
  signal async_out    : std_logic_vector(0 downto 0);
151
 
152
 
153
begin
154
 
155
  -------------------------------------------------------------------
156
  --  Design Under Test 
157
  --  Design + Test bench to make easy input date (lazy person)
158
  -------------------------------------------------------------------
159
  my_design : bench
160
  port map
161
  (
162
  clock        => clock,
163
  reset        => reset,
164
  output_fm    => output_fm,
165
  output_fmTri => output_fmTri
166
  );
167
 
168
  -------------------------------------------------------------------
169
  --
170
  --  ICON core instance
171
  --
172
  -------------------------------------------------------------------
173
  i_icon : icon
174
    port map
175
    (
176
      control0    => control0,
177
      control1    => control1
178
    );
179
 
180
  -------------------------------------------------------------------
181
  --
182
  --  ILA core instance
183
  --
184
  -------------------------------------------------------------------
185
  i_ila : ila
186
    port map
187
    (
188
      control   => control0,
189
      clk       => clk,
190
      trig0     => trig0,
191
      trig1     => trig1
192
    );
193
 
194
  clk          <= to_stdulogic (clock);
195
  trig0        <= to_stdlogicvector (output_fm);
196
  trig1        <= to_stdlogicvector (output_fmTri);
197
 
198
  -------------------------------------------------------------------
199
  --
200
  --  VIO core instance
201
  --
202
  -------------------------------------------------------------------
203
  i_vio : vio
204
    port map
205
    (
206
      control   => control1,
207
      async_out => async_out
208
    );
209
  reset <= to_bit (async_out(0));
210
 
211
end structural;

powered by: WebSVN 2.1.0

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