Skip to content

Commit 1af0816

Browse files
Temporarily changed dual port RAM into single port RAM
1 parent 124a1d4 commit 1af0816

File tree

12 files changed

+523
-620
lines changed

12 files changed

+523
-620
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<filters version="17.0" />
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<preferences>
3+
<debug showDebugMenu="0" />
4+
<systemtable filter="All Interfaces">
5+
<columns>
6+
<connections preferredWidth="31" />
7+
<irq preferredWidth="34" />
8+
</columns>
9+
</systemtable>
10+
<library expandedCategories="Library,Project" />
11+
<window width="1100" height="800" x="0" y="0" />
12+
</preferences>
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,18 @@
1-
ADDRESS_REG_B=CLOCK0
21
CLOCK_ENABLE_INPUT_A=BYPASS
3-
CLOCK_ENABLE_INPUT_B=BYPASS
42
CLOCK_ENABLE_OUTPUT_A=BYPASS
5-
CLOCK_ENABLE_OUTPUT_B=BYPASS
6-
INDATA_REG_B=CLOCK0
73
INIT_FILE=../../bin/onchip_mem.hex
84
INTENDED_DEVICE_FAMILY="Cyclone IV E"
9-
LPM_TYPE=altsyncram
105
NUMWORDS_A=2048
11-
NUMWORDS_B=2048
12-
OPERATION_MODE=BIDIR_DUAL_PORT
6+
OPERATION_MODE=SINGLE_PORT
137
OUTDATA_ACLR_A=NONE
14-
OUTDATA_ACLR_B=NONE
158
OUTDATA_REG_A=UNREGISTERED
16-
OUTDATA_REG_B=UNREGISTERED
179
POWER_UP_UNINITIALIZED=FALSE
18-
READ_DURING_WRITE_MODE_MIXED_PORTS=DONT_CARE
19-
READ_DURING_WRITE_MODE_PORT_A=NEW_DATA_WITH_NBE_READ
20-
READ_DURING_WRITE_MODE_PORT_B=NEW_DATA_WITH_NBE_READ
10+
READ_DURING_WRITE_MODE_PORT_A=NEW_DATA_NO_NBE_READ
2111
WIDTHAD_A=11
22-
WIDTHAD_B=11
2312
WIDTH_A=64
24-
WIDTH_B=64
2513
WIDTH_BYTEENA_A=1
26-
WIDTH_BYTEENA_B=1
27-
WRCONTROL_WRADDRESS_REG_B=CLOCK0
2814
DEVICE_FAMILY="Cyclone IV E"
2915
address_a
30-
address_b
3116
clock0
32-
data_a
33-
data_b
3417
rden_a
35-
rden_b
36-
wren_a
37-
wren_b
3818
q_a
39-
q_b
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
//altmem_init CBX_SINGLE_OUTPUT_FILE="ON" INIT_TO_ZERO="YES" INTENDED_DEVICE_FAMILY=""Cyclone IV E"" LPM_TYPE="altmem_init" NUMWORDS=16 PORT_ROM_DATA_READY="PORT_UNUSED" ROM_READ_LATENCY=1 WIDTH=1 WIDTHAD=4 clock dataout init init_busy ram_address ram_wren
2+
//VERSION_BEGIN 17.0 cbx_mgl 2017:04:25:18:09:28:SJ cbx_stratixii 2017:04:25:18:06:30:SJ cbx_util_mgl 2017:04:25:18:06:30:SJ VERSION_END
3+
// synthesis VERILOG_INPUT_VERSION VERILOG_2001
4+
// altera message_off 10463
5+
6+
7+
8+
// Copyright (C) 2017 Intel Corporation. All rights reserved.
9+
// Your use of Intel Corporation's design tools, logic functions
10+
// and other software and tools, and its AMPP partner logic
11+
// functions, and any output files from any of the foregoing
12+
// (including device programming or simulation files), and any
13+
// associated documentation or information are expressly subject
14+
// to the terms and conditions of the Intel Program License
15+
// Subscription Agreement, the Intel Quartus Prime License Agreement,
16+
// the Intel MegaCore Function License Agreement, or other
17+
// applicable license agreement, including, without limitation,
18+
// that your use is for the sole purpose of programming logic
19+
// devices manufactured by Intel and sold by Intel or its
20+
// authorized distributors. Please refer to the applicable
21+
// agreement for further details.
22+
23+
24+
25+
//synthesis_resources = altmem_init 1
26+
//synopsys translate_off
27+
`timescale 1 ps / 1 ps
28+
//synopsys translate_on
29+
module mg1pn
30+
(
31+
clock,
32+
dataout,
33+
init,
34+
init_busy,
35+
ram_address,
36+
ram_wren) /* synthesis synthesis_clearbox=1 */;
37+
input clock;
38+
output [0:0] dataout;
39+
input init;
40+
output init_busy;
41+
output [3:0] ram_address;
42+
output ram_wren;
43+
44+
wire [0:0] wire_mgl_prim1_dataout;
45+
wire wire_mgl_prim1_init_busy;
46+
wire [3:0] wire_mgl_prim1_ram_address;
47+
wire wire_mgl_prim1_ram_wren;
48+
49+
altmem_init mgl_prim1
50+
(
51+
.clock(clock),
52+
.dataout(wire_mgl_prim1_dataout),
53+
.init(init),
54+
.init_busy(wire_mgl_prim1_init_busy),
55+
.ram_address(wire_mgl_prim1_ram_address),
56+
.ram_wren(wire_mgl_prim1_ram_wren));
57+
defparam
58+
mgl_prim1.init_to_zero = "YES",
59+
mgl_prim1.intended_device_family = ""Cyclone IV E"",
60+
mgl_prim1.lpm_type = "altmem_init",
61+
mgl_prim1.numwords = 16,
62+
mgl_prim1.port_rom_data_ready = "PORT_UNUSED",
63+
mgl_prim1.rom_read_latency = 1,
64+
mgl_prim1.width = 1,
65+
mgl_prim1.widthad = 4;
66+
assign
67+
dataout = wire_mgl_prim1_dataout,
68+
init_busy = wire_mgl_prim1_init_busy,
69+
ram_address = wire_mgl_prim1_ram_address,
70+
ram_wren = wire_mgl_prim1_ram_wren;
71+
endmodule //mg1pn
72+
//VALID FILE
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
//altmem_init CBX_AUTO_BLACKBOX="ALL" CBX_SINGLE_OUTPUT_FILE="ON" INIT_TO_ZERO="YES" INTENDED_DEVICE_FAMILY=""Cyclone IV E"" LPM_TYPE="altmem_init" NUMWORDS=16 PORT_ROM_DATA_READY="PORT_UNUSED" ROM_READ_LATENCY=1 WIDTH=1 WIDTHAD=4 clock dataout init init_busy ram_address ram_wren
2+
//VERSION_BEGIN 17.0 cbx_mgl 2017:04:25:18:09:28:SJ cbx_stratixii 2017:04:25:18:06:30:SJ cbx_util_mgl 2017:04:25:18:06:30:SJ VERSION_END
3+
// synthesis VERILOG_INPUT_VERSION VERILOG_2001
4+
// altera message_off 10463
5+
6+
7+
8+
// Copyright (C) 2017 Intel Corporation. All rights reserved.
9+
// Your use of Intel Corporation's design tools, logic functions
10+
// and other software and tools, and its AMPP partner logic
11+
// functions, and any output files from any of the foregoing
12+
// (including device programming or simulation files), and any
13+
// associated documentation or information are expressly subject
14+
// to the terms and conditions of the Intel Program License
15+
// Subscription Agreement, the Intel Quartus Prime License Agreement,
16+
// the Intel MegaCore Function License Agreement, or other
17+
// applicable license agreement, including, without limitation,
18+
// that your use is for the sole purpose of programming logic
19+
// devices manufactured by Intel and sold by Intel or its
20+
// authorized distributors. Please refer to the applicable
21+
// agreement for further details.
22+
23+
24+
25+
//synthesis_resources = altmem_init 1
26+
//synopsys translate_off
27+
`timescale 1 ps / 1 ps
28+
//synopsys translate_on
29+
module mglvp
30+
(
31+
clock,
32+
dataout,
33+
init,
34+
init_busy,
35+
ram_address,
36+
ram_wren) /* synthesis synthesis_clearbox=1 */;
37+
input clock;
38+
output [0:0] dataout;
39+
input init;
40+
output init_busy;
41+
output [3:0] ram_address;
42+
output ram_wren;
43+
44+
wire [0:0] wire_mgl_prim1_dataout;
45+
wire wire_mgl_prim1_init_busy;
46+
wire [3:0] wire_mgl_prim1_ram_address;
47+
wire wire_mgl_prim1_ram_wren;
48+
49+
altmem_init mgl_prim1
50+
(
51+
.clock(clock),
52+
.dataout(wire_mgl_prim1_dataout),
53+
.init(init),
54+
.init_busy(wire_mgl_prim1_init_busy),
55+
.ram_address(wire_mgl_prim1_ram_address),
56+
.ram_wren(wire_mgl_prim1_ram_wren));
57+
defparam
58+
mgl_prim1.init_to_zero = "YES",
59+
mgl_prim1.intended_device_family = ""Cyclone IV E"",
60+
mgl_prim1.lpm_type = "altmem_init",
61+
mgl_prim1.numwords = 16,
62+
mgl_prim1.port_rom_data_ready = "PORT_UNUSED",
63+
mgl_prim1.rom_read_latency = 1,
64+
mgl_prim1.width = 1,
65+
mgl_prim1.widthad = 4;
66+
assign
67+
dataout = wire_mgl_prim1_dataout,
68+
init_busy = wire_mgl_prim1_init_busy,
69+
ram_address = wire_mgl_prim1_ram_address,
70+
ram_wren = wire_mgl_prim1_ram_wren;
71+
endmodule //mglvp
72+
//VALID FILE

0 commit comments

Comments
 (0)