source: XOpenSparcT1/trunk/Xilinx/pcx_fifo.v @ 6

Revision 6, 5.2 KB checked in by pntsvt00, 13 years ago (diff)

versione iniziale opensparc

Line 
1/*******************************************************************************
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-2009 Xilinx, Inc.                                     *
27*     All rights reserved.                                                     *
28*******************************************************************************/
29// The synthesis directives "translate_off/translate_on" specified below are
30// supported by Xilinx, Mentor Graphics and Synplicity synthesis
31// tools. Ensure they are correct for your synthesis tool(s).
32
33// You must compile the wrapper file pcx_fifo.v when simulating
34// the core, pcx_fifo. When compiling the wrapper file, be sure to
35// reference the XilinxCoreLib Verilog simulation library. For detailed
36// instructions, please refer to the "CORE Generator Help".
37
38`timescale 1ns/1ps
39
40module pcx_fifo(
41        clk,
42        rst,
43        din,
44        wr_en,
45        rd_en,
46        dout,
47        full,
48        empty);
49
50
51input clk;
52input rst;
53input [129 : 0] din;
54input wr_en;
55input rd_en;
56output [129 : 0] dout;
57output full;
58output empty;
59
60// synthesis translate_off
61
62      FIFO_GENERATOR_V6_2 #(
63                .C_COMMON_CLOCK(1),
64                .C_COUNT_TYPE(0),
65                .C_DATA_COUNT_WIDTH(6),
66                .C_DEFAULT_VALUE("BlankString"),
67                .C_DIN_WIDTH(130),
68                .C_DOUT_RST_VAL("0"),
69                .C_DOUT_WIDTH(130),
70                .C_ENABLE_RLOCS(0),
71                .C_ENABLE_RST_SYNC(1),
72                .C_ERROR_INJECTION_TYPE(0),
73                .C_FAMILY("virtex5"),
74                .C_FULL_FLAGS_RST_VAL(1),
75                .C_HAS_ALMOST_EMPTY(0),
76                .C_HAS_ALMOST_FULL(0),
77                .C_HAS_BACKUP(0),
78                .C_HAS_DATA_COUNT(0),
79                .C_HAS_INT_CLK(0),
80                .C_HAS_MEMINIT_FILE(0),
81                .C_HAS_OVERFLOW(0),
82                .C_HAS_RD_DATA_COUNT(0),
83                .C_HAS_RD_RST(0),
84                .C_HAS_RST(1),
85                .C_HAS_SRST(0),
86                .C_HAS_UNDERFLOW(0),
87                .C_HAS_VALID(0),
88                .C_HAS_WR_ACK(0),
89                .C_HAS_WR_DATA_COUNT(0),
90                .C_HAS_WR_RST(0),
91                .C_IMPLEMENTATION_TYPE(0),
92                .C_INIT_WR_PNTR_VAL(0),
93                .C_MEMORY_TYPE(1),
94                .C_MIF_FILE_NAME("BlankString"),
95                .C_MSGON_VAL(1),
96                .C_OPTIMIZATION_MODE(0),
97                .C_OVERFLOW_LOW(0),
98                .C_PRELOAD_LATENCY(0),
99                .C_PRELOAD_REGS(1),
100                .C_PRIM_FIFO_TYPE("512x72"),
101                .C_PROG_EMPTY_THRESH_ASSERT_VAL(4),
102                .C_PROG_EMPTY_THRESH_NEGATE_VAL(5),
103                .C_PROG_EMPTY_TYPE(0),
104                .C_PROG_FULL_THRESH_ASSERT_VAL(31),
105                .C_PROG_FULL_THRESH_NEGATE_VAL(30),
106                .C_PROG_FULL_TYPE(0),
107                .C_RD_DATA_COUNT_WIDTH(6),
108                .C_RD_DEPTH(32),
109                .C_RD_FREQ(1),
110                .C_RD_PNTR_WIDTH(5),
111                .C_UNDERFLOW_LOW(0),
112                .C_USE_DOUT_RST(1),
113                .C_USE_ECC(0),
114                .C_USE_EMBEDDED_REG(0),
115                .C_USE_FIFO16_FLAGS(0),
116                .C_USE_FWFT_DATA_COUNT(1),
117                .C_VALID_LOW(0),
118                .C_WR_ACK_LOW(0),
119                .C_WR_DATA_COUNT_WIDTH(6),
120                .C_WR_DEPTH(32),
121                .C_WR_FREQ(1),
122                .C_WR_PNTR_WIDTH(5),
123                .C_WR_RESPONSE_LATENCY(1))
124        inst (
125                .CLK(clk),
126                .RST(rst),
127                .DIN(din),
128                .WR_EN(wr_en),
129                .RD_EN(rd_en),
130                .DOUT(dout),
131                .FULL(full),
132                .EMPTY(empty),
133                .BACKUP(),
134                .BACKUP_MARKER(),
135                .SRST(),
136                .WR_CLK(),
137                .WR_RST(),
138                .RD_CLK(),
139                .RD_RST(),
140                .PROG_EMPTY_THRESH(),
141                .PROG_EMPTY_THRESH_ASSERT(),
142                .PROG_EMPTY_THRESH_NEGATE(),
143                .PROG_FULL_THRESH(),
144                .PROG_FULL_THRESH_ASSERT(),
145                .PROG_FULL_THRESH_NEGATE(),
146                .INT_CLK(),
147                .INJECTDBITERR(),
148                .INJECTSBITERR(),
149                .ALMOST_FULL(),
150                .WR_ACK(),
151                .OVERFLOW(),
152                .ALMOST_EMPTY(),
153                .VALID(),
154                .UNDERFLOW(),
155                .DATA_COUNT(),
156                .RD_DATA_COUNT(),
157                .WR_DATA_COUNT(),
158                .PROG_FULL(),
159                .PROG_EMPTY(),
160                .SBITERR(),
161                .DBITERR());
162
163
164// synthesis translate_on
165
166// XST black box declaration
167// box_type "black_box"
168// synthesis attribute box_type of pcx_fifo is "black_box"
169
170endmodule
171
Note: See TracBrowser for help on using the repository browser.