1 |
2 |
smanz |
--------------------------------------------------------------------------------
|
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-2006 Xilinx, Inc. --
|
27 |
|
|
-- All rights reserved. --
|
28 |
|
|
--------------------------------------------------------------------------------
|
29 |
|
|
-- You must compile the wrapper file jpeg_input_fifo.vhd when simulating
|
30 |
|
|
-- the core, jpeg_input_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 |
|
|
LIBRARY ieee;
|
39 |
|
|
USE ieee.std_logic_1164.ALL;
|
40 |
|
|
-- synopsys translate_off
|
41 |
|
|
Library XilinxCoreLib;
|
42 |
|
|
-- synopsys translate_on
|
43 |
|
|
ENTITY jpeg_input_fifo IS
|
44 |
|
|
port (
|
45 |
|
|
din: IN std_logic_VECTOR(31 downto 0);
|
46 |
|
|
rd_clk: IN std_logic;
|
47 |
|
|
rd_en: IN std_logic;
|
48 |
|
|
rst: IN std_logic;
|
49 |
|
|
wr_clk: IN std_logic;
|
50 |
|
|
wr_en: IN std_logic;
|
51 |
|
|
almost_empty: OUT std_logic;
|
52 |
|
|
almost_full: OUT std_logic;
|
53 |
|
|
dout: OUT std_logic_VECTOR(7 downto 0);
|
54 |
|
|
empty: OUT std_logic;
|
55 |
|
|
full: OUT std_logic;
|
56 |
|
|
valid: OUT std_logic);
|
57 |
|
|
END jpeg_input_fifo;
|
58 |
|
|
|
59 |
|
|
ARCHITECTURE jpeg_input_fifo_a OF jpeg_input_fifo IS
|
60 |
|
|
-- synopsys translate_off
|
61 |
|
|
component wrapped_jpeg_input_fifo
|
62 |
|
|
port (
|
63 |
|
|
din: IN std_logic_VECTOR(31 downto 0);
|
64 |
|
|
rd_clk: IN std_logic;
|
65 |
|
|
rd_en: IN std_logic;
|
66 |
|
|
rst: IN std_logic;
|
67 |
|
|
wr_clk: IN std_logic;
|
68 |
|
|
wr_en: IN std_logic;
|
69 |
|
|
almost_full: OUT std_logic;
|
70 |
|
|
dout: OUT std_logic_VECTOR(7 downto 0);
|
71 |
|
|
empty: OUT std_logic;
|
72 |
|
|
full: OUT std_logic;
|
73 |
|
|
valid: OUT std_logic);
|
74 |
|
|
end component;
|
75 |
|
|
|
76 |
|
|
-- Configuration specification
|
77 |
|
|
for all : wrapped_jpeg_input_fifo use entity XilinxCoreLib.fifo_generator_v2_3(behavioral)
|
78 |
|
|
generic map(
|
79 |
|
|
c_wr_response_latency => 1,
|
80 |
|
|
c_has_rd_data_count => 0,
|
81 |
|
|
c_din_width => 32,
|
82 |
|
|
c_has_wr_data_count => 0,
|
83 |
|
|
c_implementation_type => 2,
|
84 |
|
|
c_family => "virtex2p",
|
85 |
|
|
c_has_wr_rst => 0,
|
86 |
|
|
c_underflow_low => 0,
|
87 |
|
|
c_has_meminit_file => 0,
|
88 |
|
|
c_has_overflow => 0,
|
89 |
|
|
c_preload_latency => 0,
|
90 |
|
|
c_dout_width => 8,
|
91 |
|
|
c_rd_depth => 2048,
|
92 |
|
|
c_default_value => "BlankString",
|
93 |
|
|
c_mif_file_name => "BlankString",
|
94 |
|
|
c_has_underflow => 0,
|
95 |
|
|
c_has_rd_rst => 0,
|
96 |
|
|
c_has_almost_full => 1,
|
97 |
|
|
c_has_rst => 1,
|
98 |
|
|
c_data_count_width => 2,
|
99 |
|
|
c_has_wr_ack => 0,
|
100 |
|
|
c_wr_ack_low => 0,
|
101 |
|
|
c_common_clock => 0,
|
102 |
|
|
c_rd_pntr_width => 11,
|
103 |
|
|
c_has_almost_empty => 0,
|
104 |
|
|
c_rd_data_count_width => 2,
|
105 |
|
|
c_enable_rlocs => 0,
|
106 |
|
|
c_wr_pntr_width => 9,
|
107 |
|
|
c_overflow_low => 0,
|
108 |
|
|
c_prog_empty_type => 0,
|
109 |
|
|
c_optimization_mode => 0,
|
110 |
|
|
c_wr_data_count_width => 2,
|
111 |
|
|
c_preload_regs => 1,
|
112 |
|
|
c_dout_rst_val => "0",
|
113 |
|
|
c_has_data_count => 0,
|
114 |
|
|
c_prog_full_thresh_negate_val => 510,
|
115 |
|
|
c_wr_depth => 512,
|
116 |
|
|
c_prog_empty_thresh_negate_val => 2046,
|
117 |
|
|
c_prog_empty_thresh_assert_val => 2046,
|
118 |
|
|
c_has_valid => 1,
|
119 |
|
|
c_init_wr_pntr_val => 0,
|
120 |
|
|
c_prog_full_thresh_assert_val => 510,
|
121 |
|
|
c_use_fifo16_flags => 0,
|
122 |
|
|
c_has_backup => 0,
|
123 |
|
|
c_valid_low => 0,
|
124 |
|
|
c_prim_fifo_type => 512,
|
125 |
|
|
c_count_type => 0,
|
126 |
|
|
c_prog_full_type => 0,
|
127 |
|
|
c_memory_type => 1);
|
128 |
|
|
-- synopsys translate_on
|
129 |
|
|
BEGIN
|
130 |
|
|
-- synopsys translate_off
|
131 |
|
|
U0 : wrapped_jpeg_input_fifo
|
132 |
|
|
port map (
|
133 |
|
|
din => din,
|
134 |
|
|
rd_clk => rd_clk,
|
135 |
|
|
rd_en => rd_en,
|
136 |
|
|
rst => rst,
|
137 |
|
|
wr_clk => wr_clk,
|
138 |
|
|
wr_en => wr_en,
|
139 |
|
|
almost_full => almost_full,
|
140 |
|
|
dout => dout,
|
141 |
|
|
empty => empty,
|
142 |
|
|
full => full,
|
143 |
|
|
valid => valid);
|
144 |
|
|
-- synopsys translate_on
|
145 |
|
|
|
146 |
|
|
END jpeg_input_fifo_a;
|
147 |
|
|
|