dirtyram.v 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. // megafunction wizard: %RAM: 2-PORT%
  2. // GENERATION: STANDARD
  3. // VERSION: WM1.0
  4. // MODULE: altsyncram
  5. // ============================================================
  6. // File Name: dirtyram.v
  7. // Megafunction Name(s):
  8. // altsyncram
  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. // 22.1std.2 Build 922 07/20/2023 SC Lite Edition
  17. // ************************************************************
  18. //Copyright (C) 2023 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 dirtyram (
  36. address_a,
  37. address_b,
  38. clock,
  39. data_a,
  40. data_b,
  41. rden_a,
  42. rden_b,
  43. wren_a,
  44. wren_b,
  45. q_a,
  46. q_b);
  47. input [12:0] address_a;
  48. input [12:0] address_b;
  49. input clock;
  50. input [0:0] data_a;
  51. input [0:0] data_b;
  52. input rden_a;
  53. input rden_b;
  54. input wren_a;
  55. input wren_b;
  56. output [0:0] q_a;
  57. output [0:0] q_b;
  58. `ifndef ALTERA_RESERVED_QIS
  59. // synopsys translate_off
  60. `endif
  61. tri1 clock;
  62. tri1 rden_a;
  63. tri1 rden_b;
  64. tri0 wren_a;
  65. tri0 wren_b;
  66. `ifndef ALTERA_RESERVED_QIS
  67. // synopsys translate_on
  68. `endif
  69. wire [0:0] sub_wire0;
  70. wire [0:0] sub_wire1;
  71. wire [0:0] q_a = sub_wire0[0:0];
  72. wire [0:0] q_b = sub_wire1[0:0];
  73. altsyncram altsyncram_component (
  74. .address_a (address_a),
  75. .address_b (address_b),
  76. .clock0 (clock),
  77. .data_a (data_a),
  78. .data_b (data_b),
  79. .rden_a (rden_a),
  80. .rden_b (rden_b),
  81. .wren_a (wren_a),
  82. .wren_b (wren_b),
  83. .q_a (sub_wire0),
  84. .q_b (sub_wire1),
  85. .aclr0 (1'b0),
  86. .aclr1 (1'b0),
  87. .addressstall_a (1'b0),
  88. .addressstall_b (1'b0),
  89. .byteena_a (1'b1),
  90. .byteena_b (1'b1),
  91. .clock1 (1'b1),
  92. .clocken0 (1'b1),
  93. .clocken1 (1'b1),
  94. .clocken2 (1'b1),
  95. .clocken3 (1'b1),
  96. .eccstatus ());
  97. defparam
  98. altsyncram_component.address_reg_b = "CLOCK0",
  99. altsyncram_component.clock_enable_input_a = "BYPASS",
  100. altsyncram_component.clock_enable_input_b = "BYPASS",
  101. altsyncram_component.clock_enable_output_a = "BYPASS",
  102. altsyncram_component.clock_enable_output_b = "BYPASS",
  103. altsyncram_component.indata_reg_b = "CLOCK0",
  104. altsyncram_component.intended_device_family = "Cyclone IV E",
  105. altsyncram_component.lpm_type = "altsyncram",
  106. altsyncram_component.numwords_a = 8192,
  107. altsyncram_component.numwords_b = 8192,
  108. altsyncram_component.operation_mode = "BIDIR_DUAL_PORT",
  109. altsyncram_component.outdata_aclr_a = "NONE",
  110. altsyncram_component.outdata_aclr_b = "NONE",
  111. altsyncram_component.outdata_reg_a = "CLOCK0",
  112. altsyncram_component.outdata_reg_b = "CLOCK0",
  113. altsyncram_component.power_up_uninitialized = "FALSE",
  114. altsyncram_component.read_during_write_mode_mixed_ports = "OLD_DATA",
  115. altsyncram_component.read_during_write_mode_port_a = "OLD_DATA",
  116. altsyncram_component.read_during_write_mode_port_b = "OLD_DATA",
  117. altsyncram_component.widthad_a = 13,
  118. altsyncram_component.widthad_b = 13,
  119. altsyncram_component.width_a = 1,
  120. altsyncram_component.width_b = 1,
  121. altsyncram_component.width_byteena_a = 1,
  122. altsyncram_component.width_byteena_b = 1,
  123. altsyncram_component.wrcontrol_wraddress_reg_b = "CLOCK0";
  124. endmodule
  125. // ============================================================
  126. // CNX file retrieval info
  127. // ============================================================
  128. // Retrieval info: PRIVATE: ADDRESSSTALL_A NUMERIC "0"
  129. // Retrieval info: PRIVATE: ADDRESSSTALL_B NUMERIC "0"
  130. // Retrieval info: PRIVATE: BYTEENA_ACLR_A NUMERIC "0"
  131. // Retrieval info: PRIVATE: BYTEENA_ACLR_B NUMERIC "0"
  132. // Retrieval info: PRIVATE: BYTE_ENABLE_A NUMERIC "0"
  133. // Retrieval info: PRIVATE: BYTE_ENABLE_B NUMERIC "0"
  134. // Retrieval info: PRIVATE: BYTE_SIZE NUMERIC "8"
  135. // Retrieval info: PRIVATE: BlankMemory NUMERIC "1"
  136. // Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_A NUMERIC "0"
  137. // Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_B NUMERIC "0"
  138. // Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_A NUMERIC "0"
  139. // Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_B NUMERIC "0"
  140. // Retrieval info: PRIVATE: CLRdata NUMERIC "0"
  141. // Retrieval info: PRIVATE: CLRq NUMERIC "0"
  142. // Retrieval info: PRIVATE: CLRrdaddress NUMERIC "0"
  143. // Retrieval info: PRIVATE: CLRrren NUMERIC "0"
  144. // Retrieval info: PRIVATE: CLRwraddress NUMERIC "0"
  145. // Retrieval info: PRIVATE: CLRwren NUMERIC "0"
  146. // Retrieval info: PRIVATE: Clock NUMERIC "0"
  147. // Retrieval info: PRIVATE: Clock_A NUMERIC "0"
  148. // Retrieval info: PRIVATE: Clock_B NUMERIC "0"
  149. // Retrieval info: PRIVATE: IMPLEMENT_IN_LES NUMERIC "0"
  150. // Retrieval info: PRIVATE: INDATA_ACLR_B NUMERIC "0"
  151. // Retrieval info: PRIVATE: INDATA_REG_B NUMERIC "1"
  152. // Retrieval info: PRIVATE: INIT_FILE_LAYOUT STRING "PORT_A"
  153. // Retrieval info: PRIVATE: INIT_TO_SIM_X NUMERIC "0"
  154. // Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
  155. // Retrieval info: PRIVATE: JTAG_ENABLED NUMERIC "0"
  156. // Retrieval info: PRIVATE: JTAG_ID STRING "NONE"
  157. // Retrieval info: PRIVATE: MAXIMUM_DEPTH NUMERIC "0"
  158. // Retrieval info: PRIVATE: MEMSIZE NUMERIC "8192"
  159. // Retrieval info: PRIVATE: MEM_IN_BITS NUMERIC "0"
  160. // Retrieval info: PRIVATE: MIFfilename STRING ""
  161. // Retrieval info: PRIVATE: OPERATION_MODE NUMERIC "3"
  162. // Retrieval info: PRIVATE: OUTDATA_ACLR_B NUMERIC "0"
  163. // Retrieval info: PRIVATE: OUTDATA_REG_B NUMERIC "1"
  164. // Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0"
  165. // Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_MIXED_PORTS NUMERIC "1"
  166. // Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_PORT_A NUMERIC "1"
  167. // Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_PORT_B NUMERIC "1"
  168. // Retrieval info: PRIVATE: REGdata NUMERIC "1"
  169. // Retrieval info: PRIVATE: REGq NUMERIC "1"
  170. // Retrieval info: PRIVATE: REGrdaddress NUMERIC "0"
  171. // Retrieval info: PRIVATE: REGrren NUMERIC "1"
  172. // Retrieval info: PRIVATE: REGwraddress NUMERIC "1"
  173. // Retrieval info: PRIVATE: REGwren NUMERIC "1"
  174. // Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
  175. // Retrieval info: PRIVATE: USE_DIFF_CLKEN NUMERIC "0"
  176. // Retrieval info: PRIVATE: UseDPRAM NUMERIC "1"
  177. // Retrieval info: PRIVATE: VarWidth NUMERIC "0"
  178. // Retrieval info: PRIVATE: WIDTH_READ_A NUMERIC "1"
  179. // Retrieval info: PRIVATE: WIDTH_READ_B NUMERIC "1"
  180. // Retrieval info: PRIVATE: WIDTH_WRITE_A NUMERIC "1"
  181. // Retrieval info: PRIVATE: WIDTH_WRITE_B NUMERIC "1"
  182. // Retrieval info: PRIVATE: WRADDR_ACLR_B NUMERIC "0"
  183. // Retrieval info: PRIVATE: WRADDR_REG_B NUMERIC "1"
  184. // Retrieval info: PRIVATE: WRCTRL_ACLR_B NUMERIC "0"
  185. // Retrieval info: PRIVATE: enable NUMERIC "0"
  186. // Retrieval info: PRIVATE: rden NUMERIC "1"
  187. // Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
  188. // Retrieval info: CONSTANT: ADDRESS_REG_B STRING "CLOCK0"
  189. // Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_A STRING "BYPASS"
  190. // Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_B STRING "BYPASS"
  191. // Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_A STRING "BYPASS"
  192. // Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_B STRING "BYPASS"
  193. // Retrieval info: CONSTANT: INDATA_REG_B STRING "CLOCK0"
  194. // Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
  195. // Retrieval info: CONSTANT: LPM_TYPE STRING "altsyncram"
  196. // Retrieval info: CONSTANT: NUMWORDS_A NUMERIC "8192"
  197. // Retrieval info: CONSTANT: NUMWORDS_B NUMERIC "8192"
  198. // Retrieval info: CONSTANT: OPERATION_MODE STRING "BIDIR_DUAL_PORT"
  199. // Retrieval info: CONSTANT: OUTDATA_ACLR_A STRING "NONE"
  200. // Retrieval info: CONSTANT: OUTDATA_ACLR_B STRING "NONE"
  201. // Retrieval info: CONSTANT: OUTDATA_REG_A STRING "CLOCK0"
  202. // Retrieval info: CONSTANT: OUTDATA_REG_B STRING "CLOCK0"
  203. // Retrieval info: CONSTANT: POWER_UP_UNINITIALIZED STRING "FALSE"
  204. // Retrieval info: CONSTANT: READ_DURING_WRITE_MODE_MIXED_PORTS STRING "OLD_DATA"
  205. // Retrieval info: CONSTANT: READ_DURING_WRITE_MODE_PORT_A STRING "OLD_DATA"
  206. // Retrieval info: CONSTANT: READ_DURING_WRITE_MODE_PORT_B STRING "OLD_DATA"
  207. // Retrieval info: CONSTANT: WIDTHAD_A NUMERIC "13"
  208. // Retrieval info: CONSTANT: WIDTHAD_B NUMERIC "13"
  209. // Retrieval info: CONSTANT: WIDTH_A NUMERIC "1"
  210. // Retrieval info: CONSTANT: WIDTH_B NUMERIC "1"
  211. // Retrieval info: CONSTANT: WIDTH_BYTEENA_A NUMERIC "1"
  212. // Retrieval info: CONSTANT: WIDTH_BYTEENA_B NUMERIC "1"
  213. // Retrieval info: CONSTANT: WRCONTROL_WRADDRESS_REG_B STRING "CLOCK0"
  214. // Retrieval info: USED_PORT: address_a 0 0 13 0 INPUT NODEFVAL "address_a[12..0]"
  215. // Retrieval info: USED_PORT: address_b 0 0 13 0 INPUT NODEFVAL "address_b[12..0]"
  216. // Retrieval info: USED_PORT: clock 0 0 0 0 INPUT VCC "clock"
  217. // Retrieval info: USED_PORT: data_a 0 0 1 0 INPUT NODEFVAL "data_a[0..0]"
  218. // Retrieval info: USED_PORT: data_b 0 0 1 0 INPUT NODEFVAL "data_b[0..0]"
  219. // Retrieval info: USED_PORT: q_a 0 0 1 0 OUTPUT NODEFVAL "q_a[0..0]"
  220. // Retrieval info: USED_PORT: q_b 0 0 1 0 OUTPUT NODEFVAL "q_b[0..0]"
  221. // Retrieval info: USED_PORT: rden_a 0 0 0 0 INPUT VCC "rden_a"
  222. // Retrieval info: USED_PORT: rden_b 0 0 0 0 INPUT VCC "rden_b"
  223. // Retrieval info: USED_PORT: wren_a 0 0 0 0 INPUT GND "wren_a"
  224. // Retrieval info: USED_PORT: wren_b 0 0 0 0 INPUT GND "wren_b"
  225. // Retrieval info: CONNECT: @address_a 0 0 13 0 address_a 0 0 13 0
  226. // Retrieval info: CONNECT: @address_b 0 0 13 0 address_b 0 0 13 0
  227. // Retrieval info: CONNECT: @clock0 0 0 0 0 clock 0 0 0 0
  228. // Retrieval info: CONNECT: @data_a 0 0 1 0 data_a 0 0 1 0
  229. // Retrieval info: CONNECT: @data_b 0 0 1 0 data_b 0 0 1 0
  230. // Retrieval info: CONNECT: @rden_a 0 0 0 0 rden_a 0 0 0 0
  231. // Retrieval info: CONNECT: @rden_b 0 0 0 0 rden_b 0 0 0 0
  232. // Retrieval info: CONNECT: @wren_a 0 0 0 0 wren_a 0 0 0 0
  233. // Retrieval info: CONNECT: @wren_b 0 0 0 0 wren_b 0 0 0 0
  234. // Retrieval info: CONNECT: q_a 0 0 1 0 @q_a 0 0 1 0
  235. // Retrieval info: CONNECT: q_b 0 0 1 0 @q_b 0 0 1 0
  236. // Retrieval info: GEN_FILE: TYPE_NORMAL dirtyram.v TRUE
  237. // Retrieval info: GEN_FILE: TYPE_NORMAL dirtyram.inc FALSE
  238. // Retrieval info: GEN_FILE: TYPE_NORMAL dirtyram.cmp FALSE
  239. // Retrieval info: GEN_FILE: TYPE_NORMAL dirtyram.bsf FALSE
  240. // Retrieval info: GEN_FILE: TYPE_NORMAL dirtyram_inst.v TRUE
  241. // Retrieval info: GEN_FILE: TYPE_NORMAL dirtyram_bb.v FALSE
  242. // Retrieval info: LIB_FILE: altera_mf