| 1 |
// megafunction wizard: %FIFO% |
| 2 |
// GENERATION: STANDARD |
| 3 |
// VERSION: WM1.0 |
| 4 |
// MODULE: dcfifo |
| 5 |
|
| 6 |
// ============================================================ |
| 7 |
// File Name: kfifo.v |
| 8 |
// Megafunction Name(s): |
| 9 |
// dcfifo |
| 10 |
// ============================================================ |
| 11 |
// ************************************************************ |
| 12 |
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE! |
| 13 |
// ************************************************************ |
| 14 |
|
| 15 |
|
| 16 |
//Copyright (C) 1991-2003 Altera Corporation |
| 17 |
//Any megafunction design, and related netlist (encrypted or decrypted), |
| 18 |
//support information, device programming or simulation file, and any other |
| 19 |
//associated documentation or information provided by Altera or a partner |
| 20 |
//under Altera's Megafunction Partnership Program may be used only |
| 21 |
//to program PLD devices (but not masked PLD devices) from Altera. Any |
| 22 |
//other use of such megafunction design, netlist, support information, |
| 23 |
//device programming or simulation file, or any other related documentation |
| 24 |
//or information is prohibited for any other purpose, including, but not |
| 25 |
//limited to modification, reverse engineering, de-compiling, or use with |
| 26 |
//any other silicon devices, unless such use is explicitly licensed under |
| 27 |
//a separate agreement with Altera or a megafunction partner. Title to the |
| 28 |
//intellectual property, including patents, copyrights, trademarks, trade |
| 29 |
//secrets, or maskworks, embodied in any such megafunction design, netlist, |
| 30 |
//support information, device programming or simulation file, or any other |
| 31 |
//related documentation or information provided by Altera or a megafunction |
| 32 |
//partner, remains with Altera, the megafunction partner, or their respective |
| 33 |
//licensors. No other licenses, including any licenses needed under any third |
| 34 |
//party's intellectual property, are provided herein. |
| 35 |
|
| 36 |
|
| 37 |
module kfifo ( |
| 38 |
data, |
| 39 |
wrreq, |
| 40 |
rdreq, |
| 41 |
rdclk, |
| 42 |
wrclk, |
| 43 |
aclr, |
| 44 |
q, |
| 45 |
rdempty, |
| 46 |
rdusedw, |
| 47 |
wrfull); |
| 48 |
|
| 49 |
input [55:0] data; |
| 50 |
input wrreq; |
| 51 |
input rdreq; |
| 52 |
input rdclk; |
| 53 |
input wrclk; |
| 54 |
input aclr; |
| 55 |
output [55:0] q; |
| 56 |
output rdempty; |
| 57 |
output [12:0] rdusedw; |
| 58 |
output wrfull; |
| 59 |
|
| 60 |
wire sub_wire0; |
| 61 |
wire sub_wire1; |
| 62 |
wire [55:0] sub_wire2; |
| 63 |
wire [12:0] sub_wire3; |
| 64 |
wire rdempty = sub_wire0; |
| 65 |
wire wrfull = sub_wire1; |
| 66 |
wire [55:0] q = sub_wire2[55:0]; |
| 67 |
wire [12:0] rdusedw = sub_wire3[12:0]; |
| 68 |
|
| 69 |
dcfifo dcfifo_component ( |
| 70 |
.wrclk (wrclk), |
| 71 |
.rdreq (rdreq), |
| 72 |
.aclr (aclr), |
| 73 |
.rdclk (rdclk), |
| 74 |
.wrreq (wrreq), |
| 75 |
.data (data), |
| 76 |
.rdempty (sub_wire0), |
| 77 |
.wrfull (sub_wire1), |
| 78 |
.q (sub_wire2), |
| 79 |
.rdusedw (sub_wire3)); |
| 80 |
defparam |
| 81 |
dcfifo_component.intended_device_family = "Stratix", |
| 82 |
dcfifo_component.lpm_width = 56, |
| 83 |
dcfifo_component.lpm_numwords = 8192, |
| 84 |
dcfifo_component.lpm_widthu = 13, |
| 85 |
dcfifo_component.clocks_are_synchronized = "FALSE", |
| 86 |
dcfifo_component.lpm_type = "dcfifo", |
| 87 |
dcfifo_component.lpm_showahead = "OFF", |
| 88 |
dcfifo_component.overflow_checking = "ON", |
| 89 |
dcfifo_component.underflow_checking = "ON", |
| 90 |
dcfifo_component.use_eab = "ON", |
| 91 |
dcfifo_component.add_ram_output_register = "OFF", |
| 92 |
dcfifo_component.lpm_hint = "RAM_BLOCK_TYPE=M-RAM"; |
| 93 |
|
| 94 |
|
| 95 |
endmodule |
| 96 |
|
| 97 |
// ============================================================ |
| 98 |
// CNX file retrieval info |
| 99 |
// ============================================================ |
| 100 |
// Retrieval info: PRIVATE: Width NUMERIC "56" |
| 101 |
// Retrieval info: PRIVATE: Depth NUMERIC "8192" |
| 102 |
// Retrieval info: PRIVATE: Clock NUMERIC "4" |
| 103 |
// Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Stratix" |
| 104 |
// Retrieval info: PRIVATE: CLOCKS_ARE_SYNCHRONIZED NUMERIC "0" |
| 105 |
// Retrieval info: PRIVATE: Full NUMERIC "1" |
| 106 |
// Retrieval info: PRIVATE: Empty NUMERIC "1" |
| 107 |
// Retrieval info: PRIVATE: UsedW NUMERIC "1" |
| 108 |
// Retrieval info: PRIVATE: AlmostFull NUMERIC "0" |
| 109 |
// Retrieval info: PRIVATE: AlmostEmpty NUMERIC "0" |
| 110 |
// Retrieval info: PRIVATE: AlmostFullThr NUMERIC "-1" |
| 111 |
// Retrieval info: PRIVATE: AlmostEmptyThr NUMERIC "-1" |
| 112 |
// Retrieval info: PRIVATE: sc_aclr NUMERIC "0" |
| 113 |
// Retrieval info: PRIVATE: sc_sclr NUMERIC "0" |
| 114 |
// Retrieval info: PRIVATE: rsFull NUMERIC "0" |
| 115 |
// Retrieval info: PRIVATE: rsEmpty NUMERIC "1" |
| 116 |
// Retrieval info: PRIVATE: rsUsedW NUMERIC "1" |
| 117 |
// Retrieval info: PRIVATE: wsFull NUMERIC "1" |
| 118 |
// Retrieval info: PRIVATE: wsEmpty NUMERIC "0" |
| 119 |
// Retrieval info: PRIVATE: wsUsedW NUMERIC "0" |
| 120 |
// Retrieval info: PRIVATE: dc_aclr NUMERIC "1" |
| 121 |
// Retrieval info: PRIVATE: LegacyRREQ NUMERIC "1" |
| 122 |
// Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "3" |
| 123 |
// Retrieval info: PRIVATE: MAXIMUM_DEPTH NUMERIC "512" |
| 124 |
// Retrieval info: PRIVATE: LE_BasedFIFO NUMERIC "0" |
| 125 |
// Retrieval info: PRIVATE: Optimize NUMERIC "2" |
| 126 |
// Retrieval info: PRIVATE: OVERFLOW_CHECKING NUMERIC "0" |
| 127 |
// Retrieval info: PRIVATE: UNDERFLOW_CHECKING NUMERIC "0" |
| 128 |
// Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Stratix" |
| 129 |
// Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "56" |
| 130 |
// Retrieval info: CONSTANT: LPM_NUMWORDS NUMERIC "8192" |
| 131 |
// Retrieval info: CONSTANT: LPM_WIDTHU NUMERIC "13" |
| 132 |
// Retrieval info: CONSTANT: CLOCKS_ARE_SYNCHRONIZED STRING "FALSE" |
| 133 |
// Retrieval info: CONSTANT: LPM_TYPE STRING "dcfifo" |
| 134 |
// Retrieval info: CONSTANT: LPM_SHOWAHEAD STRING "OFF" |
| 135 |
// Retrieval info: CONSTANT: OVERFLOW_CHECKING STRING "ON" |
| 136 |
// Retrieval info: CONSTANT: UNDERFLOW_CHECKING STRING "ON" |
| 137 |
// Retrieval info: CONSTANT: USE_EAB STRING "ON" |
| 138 |
// Retrieval info: CONSTANT: ADD_RAM_OUTPUT_REGISTER STRING "OFF" |
| 139 |
// Retrieval info: CONSTANT: LPM_HINT STRING "RAM_BLOCK_TYPE=M-RAM" |
| 140 |
// Retrieval info: USED_PORT: data 0 0 56 0 INPUT NODEFVAL data[55..0] |
| 141 |
// Retrieval info: USED_PORT: q 0 0 56 0 OUTPUT NODEFVAL q[55..0] |
| 142 |
// Retrieval info: USED_PORT: wrreq 0 0 0 0 INPUT NODEFVAL wrreq |
| 143 |
// Retrieval info: USED_PORT: rdreq 0 0 0 0 INPUT NODEFVAL rdreq |
| 144 |
// Retrieval info: USED_PORT: rdclk 0 0 0 0 INPUT NODEFVAL rdclk |
| 145 |
// Retrieval info: USED_PORT: wrclk 0 0 0 0 INPUT NODEFVAL wrclk |
| 146 |
// Retrieval info: USED_PORT: rdempty 0 0 0 0 OUTPUT NODEFVAL rdempty |
| 147 |
// Retrieval info: USED_PORT: rdusedw 0 0 13 0 OUTPUT NODEFVAL rdusedw[12..0] |
| 148 |
// Retrieval info: USED_PORT: wrfull 0 0 0 0 OUTPUT NODEFVAL wrfull |
| 149 |
// Retrieval info: USED_PORT: aclr 0 0 0 0 INPUT GND aclr |
| 150 |
// Retrieval info: CONNECT: @data 0 0 56 0 data 0 0 56 0 |
| 151 |
// Retrieval info: CONNECT: q 0 0 56 0 @q 0 0 56 0 |
| 152 |
// Retrieval info: CONNECT: @wrreq 0 0 0 0 wrreq 0 0 0 0 |
| 153 |
// Retrieval info: CONNECT: @rdreq 0 0 0 0 rdreq 0 0 0 0 |
| 154 |
// Retrieval info: CONNECT: @rdclk 0 0 0 0 rdclk 0 0 0 0 |
| 155 |
// Retrieval info: CONNECT: @wrclk 0 0 0 0 wrclk 0 0 0 0 |
| 156 |
// Retrieval info: CONNECT: rdempty 0 0 0 0 @rdempty 0 0 0 0 |
| 157 |
// Retrieval info: CONNECT: rdusedw 0 0 13 0 @rdusedw 0 0 13 0 |
| 158 |
// Retrieval info: CONNECT: wrfull 0 0 0 0 @wrfull 0 0 0 0 |
| 159 |
// Retrieval info: CONNECT: @aclr 0 0 0 0 aclr 0 0 0 0 |
| 160 |
// Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all |