1 |
2 |
tak.sugawa |
--------------------------------------------------------------------------------
|
2 |
|
|
-- This file is owned and controlled by Xilinx and must be used --
|
3 |
|
|
-- solely for design, simulation, implementation and creation of --
|
4 |
|
|
-- design files limited to Xilinx devices or technologies. Use --
|
5 |
|
|
-- with non-Xilinx devices or technologies is expressly prohibited --
|
6 |
|
|
-- and immediately terminates your license. --
|
7 |
|
|
-- --
|
8 |
|
|
-- XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" --
|
9 |
|
|
-- SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR --
|
10 |
|
|
-- XILINX DEVICES. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION --
|
11 |
|
|
-- AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION --
|
12 |
|
|
-- OR STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS --
|
13 |
|
|
-- IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT, --
|
14 |
|
|
-- AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE --
|
15 |
|
|
-- FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY DISCLAIMS ANY --
|
16 |
|
|
-- WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE --
|
17 |
|
|
-- IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR --
|
18 |
|
|
-- REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF --
|
19 |
|
|
-- INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS --
|
20 |
|
|
-- FOR A PARTICULAR PURPOSE. --
|
21 |
|
|
-- --
|
22 |
|
|
-- Xilinx products are not intended for use in life support --
|
23 |
|
|
-- appliances, devices, or systems. Use in such applications are --
|
24 |
|
|
-- expressly prohibited. --
|
25 |
|
|
-- --
|
26 |
|
|
-- (c) Copyright 1995-2004 Xilinx, Inc. --
|
27 |
|
|
-- All rights reserved. --
|
28 |
|
|
--------------------------------------------------------------------------------
|
29 |
|
|
-- You must compile the wrapper file fifo.vhd when simulating
|
30 |
|
|
-- the core, fifo. When compiling the wrapper file, be sure to
|
31 |
|
|
-- reference the XilinxCoreLib VHDL simulation library. For detailed
|
32 |
|
|
-- instructions, please refer to the "CORE Generator Help".
|
33 |
|
|
|
34 |
|
|
-- The synopsys directives "translate_off/translate_on" specified
|
35 |
|
|
-- below are supported by XST, FPGA Compiler II, Mentor Graphics and Synplicity
|
36 |
|
|
-- synthesis tools. Ensure they are correct for your synthesis tool(s).
|
37 |
|
|
|
38 |
|
|
-- synopsys translate_off
|
39 |
|
|
LIBRARY ieee;
|
40 |
|
|
USE ieee.std_logic_1164.ALL;
|
41 |
|
|
|
42 |
|
|
Library XilinxCoreLib;
|
43 |
|
|
ENTITY fifo IS
|
44 |
|
|
port (
|
45 |
|
|
clk: IN std_logic;
|
46 |
|
|
sinit: IN std_logic;
|
47 |
|
|
din: IN std_logic_VECTOR(7 downto 0);
|
48 |
|
|
wr_en: IN std_logic;
|
49 |
|
|
rd_en: IN std_logic;
|
50 |
|
|
dout: OUT std_logic_VECTOR(7 downto 0);
|
51 |
|
|
full: OUT std_logic;
|
52 |
|
|
empty: OUT std_logic);
|
53 |
|
|
END fifo;
|
54 |
|
|
|
55 |
|
|
ARCHITECTURE fifo_a OF fifo IS
|
56 |
|
|
|
57 |
|
|
component wrapped_fifo
|
58 |
|
|
port (
|
59 |
|
|
clk: IN std_logic;
|
60 |
|
|
sinit: IN std_logic;
|
61 |
|
|
din: IN std_logic_VECTOR(7 downto 0);
|
62 |
|
|
wr_en: IN std_logic;
|
63 |
|
|
rd_en: IN std_logic;
|
64 |
|
|
dout: OUT std_logic_VECTOR(7 downto 0);
|
65 |
|
|
full: OUT std_logic;
|
66 |
|
|
empty: OUT std_logic);
|
67 |
|
|
end component;
|
68 |
|
|
|
69 |
|
|
-- Configuration specification
|
70 |
|
|
for all : wrapped_fifo use entity XilinxCoreLib.sync_fifo_v5_0(behavioral)
|
71 |
|
|
generic map(
|
72 |
|
|
c_read_data_width => 8,
|
73 |
|
|
c_has_wr_ack => 0,
|
74 |
|
|
c_dcount_width => 1,
|
75 |
|
|
c_has_wr_err => 0,
|
76 |
|
|
c_wr_err_low => 1,
|
77 |
|
|
c_wr_ack_low => 1,
|
78 |
|
|
c_enable_rlocs => 0,
|
79 |
|
|
c_has_dcount => 0,
|
80 |
|
|
c_rd_err_low => 1,
|
81 |
|
|
c_rd_ack_low => 1,
|
82 |
|
|
c_read_depth => 512,
|
83 |
|
|
c_has_rd_ack => 0,
|
84 |
|
|
c_write_depth => 512,
|
85 |
|
|
c_ports_differ => 0,
|
86 |
|
|
c_memory_type => 1,
|
87 |
|
|
c_write_data_width => 8,
|
88 |
|
|
c_has_rd_err => 0);
|
89 |
|
|
BEGIN
|
90 |
|
|
|
91 |
|
|
U0 : wrapped_fifo
|
92 |
|
|
port map (
|
93 |
|
|
clk => clk,
|
94 |
|
|
sinit => sinit,
|
95 |
|
|
din => din,
|
96 |
|
|
wr_en => wr_en,
|
97 |
|
|
rd_en => rd_en,
|
98 |
|
|
dout => dout,
|
99 |
|
|
full => full,
|
100 |
|
|
empty => empty);
|
101 |
|
|
END fifo_a;
|
102 |
|
|
|
103 |
|
|
-- synopsys translate_on
|
104 |
|
|
|