cdc_txfifo.v 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // megafunction wizard: %FIFO%
  2. // GENERATION: STANDARD
  3. // VERSION: WM1.0
  4. // MODULE: dcfifo
  5. // ============================================================
  6. // File Name: cdc_txfifo.v
  7. // Megafunction Name(s):
  8. // dcfifo
  9. //
  10. // Simulation Library Files(s):
  11. //
  12. // ============================================================
  13. // ************************************************************
  14. // THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
  15. //
  16. // 21.1.0 Build 842 10/21/2021 SJ Lite Edition
  17. // ************************************************************
  18. //Copyright (C) 2021 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 cdc_txfifo (
  36. aclr,
  37. data,
  38. rdclk,
  39. rdreq,
  40. wrclk,
  41. wrreq,
  42. q,
  43. rdempty,
  44. rdfull,
  45. rdusedw,
  46. wrempty,
  47. wrfull,
  48. wrusedw);
  49. input aclr;
  50. input [7:0] data;
  51. input rdclk;
  52. input rdreq;
  53. input wrclk;
  54. input wrreq;
  55. output [7:0] q;
  56. output rdempty;
  57. output rdfull;
  58. output [9:0] rdusedw;
  59. output wrempty;
  60. output wrfull;
  61. output [9:0] wrusedw;
  62. `ifndef ALTERA_RESERVED_QIS
  63. // synopsys translate_off
  64. `endif
  65. tri0 aclr;
  66. `ifndef ALTERA_RESERVED_QIS
  67. // synopsys translate_on
  68. `endif
  69. wire [7:0] sub_wire0;
  70. wire sub_wire1;
  71. wire sub_wire2;
  72. wire [9:0] sub_wire3;
  73. wire sub_wire4;
  74. wire sub_wire5;
  75. wire [9:0] sub_wire6;
  76. wire [7:0] q = sub_wire0[7:0];
  77. wire rdempty = sub_wire1;
  78. wire rdfull = sub_wire2;
  79. wire [9:0] rdusedw = sub_wire3[9:0];
  80. wire wrempty = sub_wire4;
  81. wire wrfull = sub_wire5;
  82. wire [9:0] wrusedw = sub_wire6[9:0];
  83. dcfifo dcfifo_component (
  84. .aclr (aclr),
  85. .data (data),
  86. .rdclk (rdclk),
  87. .rdreq (rdreq),
  88. .wrclk (wrclk),
  89. .wrreq (wrreq),
  90. .q (sub_wire0),
  91. .rdempty (sub_wire1),
  92. .rdfull (sub_wire2),
  93. .rdusedw (sub_wire3),
  94. .wrempty (sub_wire4),
  95. .wrfull (sub_wire5),
  96. .wrusedw (sub_wire6),
  97. .eccstatus ());
  98. defparam
  99. dcfifo_component.intended_device_family = "Cyclone IV E",
  100. dcfifo_component.lpm_numwords = 1024,
  101. dcfifo_component.lpm_showahead = "OFF",
  102. dcfifo_component.lpm_type = "dcfifo",
  103. dcfifo_component.lpm_width = 8,
  104. dcfifo_component.lpm_widthu = 10,
  105. dcfifo_component.overflow_checking = "ON",
  106. dcfifo_component.rdsync_delaypipe = 5,
  107. dcfifo_component.read_aclr_synch = "ON",
  108. dcfifo_component.underflow_checking = "ON",
  109. dcfifo_component.use_eab = "ON",
  110. dcfifo_component.write_aclr_synch = "OFF",
  111. dcfifo_component.wrsync_delaypipe = 5;
  112. endmodule
  113. // ============================================================
  114. // CNX file retrieval info
  115. // ============================================================
  116. // Retrieval info: PRIVATE: AlmostEmpty NUMERIC "0"
  117. // Retrieval info: PRIVATE: AlmostEmptyThr NUMERIC "-1"
  118. // Retrieval info: PRIVATE: AlmostFull NUMERIC "0"
  119. // Retrieval info: PRIVATE: AlmostFullThr NUMERIC "-1"
  120. // Retrieval info: PRIVATE: CLOCKS_ARE_SYNCHRONIZED NUMERIC "0"
  121. // Retrieval info: PRIVATE: Clock NUMERIC "4"
  122. // Retrieval info: PRIVATE: Depth NUMERIC "1024"
  123. // Retrieval info: PRIVATE: Empty NUMERIC "1"
  124. // Retrieval info: PRIVATE: Full NUMERIC "1"
  125. // Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
  126. // Retrieval info: PRIVATE: LE_BasedFIFO NUMERIC "0"
  127. // Retrieval info: PRIVATE: LegacyRREQ NUMERIC "1"
  128. // Retrieval info: PRIVATE: MAX_DEPTH_BY_9 NUMERIC "0"
  129. // Retrieval info: PRIVATE: OVERFLOW_CHECKING NUMERIC "0"
  130. // Retrieval info: PRIVATE: Optimize NUMERIC "2"
  131. // Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0"
  132. // Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
  133. // Retrieval info: PRIVATE: UNDERFLOW_CHECKING NUMERIC "0"
  134. // Retrieval info: PRIVATE: UsedW NUMERIC "1"
  135. // Retrieval info: PRIVATE: Width NUMERIC "8"
  136. // Retrieval info: PRIVATE: dc_aclr NUMERIC "1"
  137. // Retrieval info: PRIVATE: diff_widths NUMERIC "0"
  138. // Retrieval info: PRIVATE: msb_usedw NUMERIC "0"
  139. // Retrieval info: PRIVATE: output_width NUMERIC "8"
  140. // Retrieval info: PRIVATE: rsEmpty NUMERIC "1"
  141. // Retrieval info: PRIVATE: rsFull NUMERIC "1"
  142. // Retrieval info: PRIVATE: rsUsedW NUMERIC "1"
  143. // Retrieval info: PRIVATE: sc_aclr NUMERIC "0"
  144. // Retrieval info: PRIVATE: sc_sclr NUMERIC "0"
  145. // Retrieval info: PRIVATE: wsEmpty NUMERIC "1"
  146. // Retrieval info: PRIVATE: wsFull NUMERIC "1"
  147. // Retrieval info: PRIVATE: wsUsedW NUMERIC "1"
  148. // Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
  149. // Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
  150. // Retrieval info: CONSTANT: LPM_NUMWORDS NUMERIC "1024"
  151. // Retrieval info: CONSTANT: LPM_SHOWAHEAD STRING "OFF"
  152. // Retrieval info: CONSTANT: LPM_TYPE STRING "dcfifo"
  153. // Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "8"
  154. // Retrieval info: CONSTANT: LPM_WIDTHU NUMERIC "10"
  155. // Retrieval info: CONSTANT: OVERFLOW_CHECKING STRING "ON"
  156. // Retrieval info: CONSTANT: RDSYNC_DELAYPIPE NUMERIC "5"
  157. // Retrieval info: CONSTANT: READ_ACLR_SYNCH STRING "ON"
  158. // Retrieval info: CONSTANT: UNDERFLOW_CHECKING STRING "ON"
  159. // Retrieval info: CONSTANT: USE_EAB STRING "ON"
  160. // Retrieval info: CONSTANT: WRITE_ACLR_SYNCH STRING "OFF"
  161. // Retrieval info: CONSTANT: WRSYNC_DELAYPIPE NUMERIC "5"
  162. // Retrieval info: USED_PORT: aclr 0 0 0 0 INPUT GND "aclr"
  163. // Retrieval info: USED_PORT: data 0 0 8 0 INPUT NODEFVAL "data[7..0]"
  164. // Retrieval info: USED_PORT: q 0 0 8 0 OUTPUT NODEFVAL "q[7..0]"
  165. // Retrieval info: USED_PORT: rdclk 0 0 0 0 INPUT NODEFVAL "rdclk"
  166. // Retrieval info: USED_PORT: rdempty 0 0 0 0 OUTPUT NODEFVAL "rdempty"
  167. // Retrieval info: USED_PORT: rdfull 0 0 0 0 OUTPUT NODEFVAL "rdfull"
  168. // Retrieval info: USED_PORT: rdreq 0 0 0 0 INPUT NODEFVAL "rdreq"
  169. // Retrieval info: USED_PORT: rdusedw 0 0 10 0 OUTPUT NODEFVAL "rdusedw[9..0]"
  170. // Retrieval info: USED_PORT: wrclk 0 0 0 0 INPUT NODEFVAL "wrclk"
  171. // Retrieval info: USED_PORT: wrempty 0 0 0 0 OUTPUT NODEFVAL "wrempty"
  172. // Retrieval info: USED_PORT: wrfull 0 0 0 0 OUTPUT NODEFVAL "wrfull"
  173. // Retrieval info: USED_PORT: wrreq 0 0 0 0 INPUT NODEFVAL "wrreq"
  174. // Retrieval info: USED_PORT: wrusedw 0 0 10 0 OUTPUT NODEFVAL "wrusedw[9..0]"
  175. // Retrieval info: CONNECT: @aclr 0 0 0 0 aclr 0 0 0 0
  176. // Retrieval info: CONNECT: @data 0 0 8 0 data 0 0 8 0
  177. // Retrieval info: CONNECT: @rdclk 0 0 0 0 rdclk 0 0 0 0
  178. // Retrieval info: CONNECT: @rdreq 0 0 0 0 rdreq 0 0 0 0
  179. // Retrieval info: CONNECT: @wrclk 0 0 0 0 wrclk 0 0 0 0
  180. // Retrieval info: CONNECT: @wrreq 0 0 0 0 wrreq 0 0 0 0
  181. // Retrieval info: CONNECT: q 0 0 8 0 @q 0 0 8 0
  182. // Retrieval info: CONNECT: rdempty 0 0 0 0 @rdempty 0 0 0 0
  183. // Retrieval info: CONNECT: rdfull 0 0 0 0 @rdfull 0 0 0 0
  184. // Retrieval info: CONNECT: rdusedw 0 0 10 0 @rdusedw 0 0 10 0
  185. // Retrieval info: CONNECT: wrempty 0 0 0 0 @wrempty 0 0 0 0
  186. // Retrieval info: CONNECT: wrfull 0 0 0 0 @wrfull 0 0 0 0
  187. // Retrieval info: CONNECT: wrusedw 0 0 10 0 @wrusedw 0 0 10 0
  188. // Retrieval info: GEN_FILE: TYPE_NORMAL cdc_txfifo.v TRUE
  189. // Retrieval info: GEN_FILE: TYPE_NORMAL cdc_txfifo.inc FALSE
  190. // Retrieval info: GEN_FILE: TYPE_NORMAL cdc_txfifo.cmp FALSE
  191. // Retrieval info: GEN_FILE: TYPE_NORMAL cdc_txfifo.bsf FALSE
  192. // Retrieval info: GEN_FILE: TYPE_NORMAL cdc_txfifo_inst.v FALSE
  193. // Retrieval info: GEN_FILE: TYPE_NORMAL cdc_txfifo_bb.v TRUE