2
0

fifo.v 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. // megafunction wizard: %FIFO%
  2. // GENERATION: STANDARD
  3. // VERSION: WM1.0
  4. // MODULE: dcfifo
  5. // ============================================================
  6. // File Name: fifo.v
  7. // Megafunction Name(s):
  8. // dcfifo
  9. //
  10. // Simulation Library Files(s):
  11. // altera_mf
  12. // ============================================================
  13. // ************************************************************
  14. // THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
  15. //
  16. // 20.1.1 Build 720 11/11/2020 SJ Lite Edition
  17. // ************************************************************
  18. //Copyright (C) 2020 Intel Corporation. All rights reserved.
  19. //Your use of Intel Corporation's design tools, logic functions
  20. //and other software and tools, and any partner logic
  21. //functions, and any output files from any of the foregoing
  22. //(including device programming or simulation files), and any
  23. //associated documentation or information are expressly subject
  24. //to the terms and conditions of the Intel Program License
  25. //Subscription Agreement, the Intel Quartus Prime License Agreement,
  26. //the Intel FPGA IP License Agreement, or other applicable license
  27. //agreement, including, without limitation, that your use is for
  28. //the sole purpose of programming logic devices manufactured by
  29. //Intel and sold by Intel or its authorized distributors. Please
  30. //refer to the applicable agreement for further details, at
  31. //https://fpgasoftware.intel.com/eula.
  32. // synopsys translate_off
  33. `timescale 1 ps / 1 ps
  34. // synopsys translate_on
  35. module fifo (
  36. aclr,
  37. data,
  38. rdclk,
  39. rdreq,
  40. wrclk,
  41. wrreq,
  42. q,
  43. rdempty,
  44. rdusedw,
  45. wrfull,
  46. wrusedw);
  47. input aclr;
  48. input [7:0] data;
  49. input rdclk;
  50. input rdreq;
  51. input wrclk;
  52. input wrreq;
  53. output [7:0] q;
  54. output rdempty;
  55. output [8:0] rdusedw;
  56. output wrfull;
  57. output [8:0] wrusedw;
  58. `ifndef ALTERA_RESERVED_QIS
  59. // synopsys translate_off
  60. `endif
  61. tri0 aclr;
  62. `ifndef ALTERA_RESERVED_QIS
  63. // synopsys translate_on
  64. `endif
  65. wire [7:0] sub_wire0;
  66. wire sub_wire1;
  67. wire [8:0] sub_wire2;
  68. wire sub_wire3;
  69. wire [8:0] sub_wire4;
  70. wire [7:0] q = sub_wire0[7:0];
  71. wire rdempty = sub_wire1;
  72. wire [8:0] rdusedw = sub_wire2[8:0];
  73. wire wrfull = sub_wire3;
  74. wire [8:0] wrusedw = sub_wire4[8:0];
  75. dcfifo dcfifo_component (
  76. .aclr (aclr),
  77. .data (data),
  78. .rdclk (rdclk),
  79. .rdreq (rdreq),
  80. .wrclk (wrclk),
  81. .wrreq (wrreq),
  82. .q (sub_wire0),
  83. .rdempty (sub_wire1),
  84. .rdusedw (sub_wire2),
  85. .wrfull (sub_wire3),
  86. .wrusedw (sub_wire4),
  87. .eccstatus (),
  88. .rdfull (),
  89. .wrempty ());
  90. defparam
  91. dcfifo_component.intended_device_family = "Cyclone IV E",
  92. dcfifo_component.lpm_numwords = 512,
  93. dcfifo_component.lpm_showahead = "ON",
  94. dcfifo_component.lpm_type = "dcfifo",
  95. dcfifo_component.lpm_width = 8,
  96. dcfifo_component.lpm_widthu = 9,
  97. dcfifo_component.overflow_checking = "ON",
  98. dcfifo_component.rdsync_delaypipe = 4,
  99. dcfifo_component.read_aclr_synch = "OFF",
  100. dcfifo_component.underflow_checking = "ON",
  101. dcfifo_component.use_eab = "ON",
  102. dcfifo_component.write_aclr_synch = "OFF",
  103. dcfifo_component.wrsync_delaypipe = 4;
  104. endmodule
  105. // ============================================================
  106. // CNX file retrieval info
  107. // ============================================================
  108. // Retrieval info: PRIVATE: AlmostEmpty NUMERIC "0"
  109. // Retrieval info: PRIVATE: AlmostEmptyThr NUMERIC "-1"
  110. // Retrieval info: PRIVATE: AlmostFull NUMERIC "0"
  111. // Retrieval info: PRIVATE: AlmostFullThr NUMERIC "-1"
  112. // Retrieval info: PRIVATE: CLOCKS_ARE_SYNCHRONIZED NUMERIC "0"
  113. // Retrieval info: PRIVATE: Clock NUMERIC "4"
  114. // Retrieval info: PRIVATE: Depth NUMERIC "512"
  115. // Retrieval info: PRIVATE: Empty NUMERIC "1"
  116. // Retrieval info: PRIVATE: Full NUMERIC "1"
  117. // Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
  118. // Retrieval info: PRIVATE: LE_BasedFIFO NUMERIC "0"
  119. // Retrieval info: PRIVATE: LegacyRREQ NUMERIC "0"
  120. // Retrieval info: PRIVATE: MAX_DEPTH_BY_9 NUMERIC "0"
  121. // Retrieval info: PRIVATE: OVERFLOW_CHECKING NUMERIC "0"
  122. // Retrieval info: PRIVATE: Optimize NUMERIC "0"
  123. // Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0"
  124. // Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
  125. // Retrieval info: PRIVATE: UNDERFLOW_CHECKING NUMERIC "0"
  126. // Retrieval info: PRIVATE: UsedW NUMERIC "1"
  127. // Retrieval info: PRIVATE: Width NUMERIC "8"
  128. // Retrieval info: PRIVATE: dc_aclr NUMERIC "1"
  129. // Retrieval info: PRIVATE: diff_widths NUMERIC "0"
  130. // Retrieval info: PRIVATE: msb_usedw NUMERIC "0"
  131. // Retrieval info: PRIVATE: output_width NUMERIC "8"
  132. // Retrieval info: PRIVATE: rsEmpty NUMERIC "1"
  133. // Retrieval info: PRIVATE: rsFull NUMERIC "0"
  134. // Retrieval info: PRIVATE: rsUsedW NUMERIC "1"
  135. // Retrieval info: PRIVATE: sc_aclr NUMERIC "0"
  136. // Retrieval info: PRIVATE: sc_sclr NUMERIC "0"
  137. // Retrieval info: PRIVATE: wsEmpty NUMERIC "0"
  138. // Retrieval info: PRIVATE: wsFull NUMERIC "1"
  139. // Retrieval info: PRIVATE: wsUsedW NUMERIC "1"
  140. // Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
  141. // Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
  142. // Retrieval info: CONSTANT: LPM_NUMWORDS NUMERIC "512"
  143. // Retrieval info: CONSTANT: LPM_SHOWAHEAD STRING "ON"
  144. // Retrieval info: CONSTANT: LPM_TYPE STRING "dcfifo"
  145. // Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "8"
  146. // Retrieval info: CONSTANT: LPM_WIDTHU NUMERIC "9"
  147. // Retrieval info: CONSTANT: OVERFLOW_CHECKING STRING "ON"
  148. // Retrieval info: CONSTANT: RDSYNC_DELAYPIPE NUMERIC "4"
  149. // Retrieval info: CONSTANT: READ_ACLR_SYNCH STRING "OFF"
  150. // Retrieval info: CONSTANT: UNDERFLOW_CHECKING STRING "ON"
  151. // Retrieval info: CONSTANT: USE_EAB STRING "ON"
  152. // Retrieval info: CONSTANT: WRITE_ACLR_SYNCH STRING "OFF"
  153. // Retrieval info: CONSTANT: WRSYNC_DELAYPIPE NUMERIC "4"
  154. // Retrieval info: USED_PORT: aclr 0 0 0 0 INPUT GND "aclr"
  155. // Retrieval info: USED_PORT: data 0 0 8 0 INPUT NODEFVAL "data[7..0]"
  156. // Retrieval info: USED_PORT: q 0 0 8 0 OUTPUT NODEFVAL "q[7..0]"
  157. // Retrieval info: USED_PORT: rdclk 0 0 0 0 INPUT NODEFVAL "rdclk"
  158. // Retrieval info: USED_PORT: rdempty 0 0 0 0 OUTPUT NODEFVAL "rdempty"
  159. // Retrieval info: USED_PORT: rdreq 0 0 0 0 INPUT NODEFVAL "rdreq"
  160. // Retrieval info: USED_PORT: rdusedw 0 0 9 0 OUTPUT NODEFVAL "rdusedw[8..0]"
  161. // Retrieval info: USED_PORT: wrclk 0 0 0 0 INPUT NODEFVAL "wrclk"
  162. // Retrieval info: USED_PORT: wrfull 0 0 0 0 OUTPUT NODEFVAL "wrfull"
  163. // Retrieval info: USED_PORT: wrreq 0 0 0 0 INPUT NODEFVAL "wrreq"
  164. // Retrieval info: USED_PORT: wrusedw 0 0 9 0 OUTPUT NODEFVAL "wrusedw[8..0]"
  165. // Retrieval info: CONNECT: @aclr 0 0 0 0 aclr 0 0 0 0
  166. // Retrieval info: CONNECT: @data 0 0 8 0 data 0 0 8 0
  167. // Retrieval info: CONNECT: @rdclk 0 0 0 0 rdclk 0 0 0 0
  168. // Retrieval info: CONNECT: @rdreq 0 0 0 0 rdreq 0 0 0 0
  169. // Retrieval info: CONNECT: @wrclk 0 0 0 0 wrclk 0 0 0 0
  170. // Retrieval info: CONNECT: @wrreq 0 0 0 0 wrreq 0 0 0 0
  171. // Retrieval info: CONNECT: q 0 0 8 0 @q 0 0 8 0
  172. // Retrieval info: CONNECT: rdempty 0 0 0 0 @rdempty 0 0 0 0
  173. // Retrieval info: CONNECT: rdusedw 0 0 9 0 @rdusedw 0 0 9 0
  174. // Retrieval info: CONNECT: wrfull 0 0 0 0 @wrfull 0 0 0 0
  175. // Retrieval info: CONNECT: wrusedw 0 0 9 0 @wrusedw 0 0 9 0
  176. // Retrieval info: GEN_FILE: TYPE_NORMAL fifo.v TRUE
  177. // Retrieval info: GEN_FILE: TYPE_NORMAL fifo.inc FALSE
  178. // Retrieval info: GEN_FILE: TYPE_NORMAL fifo.cmp FALSE
  179. // Retrieval info: GEN_FILE: TYPE_NORMAL fifo.bsf FALSE
  180. // Retrieval info: GEN_FILE: TYPE_NORMAL fifo_inst.v TRUE
  181. // Retrieval info: GEN_FILE: TYPE_NORMAL fifo_bb.v TRUE
  182. // Retrieval info: LIB_FILE: altera_mf