aboutsummaryrefslogtreecommitdiff
path: root/src/ct_core_mem.v
blob: 293081ed361489875aa09a1dcfb92da48768ddfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module ct_core_mem (
	address,
	clock,
	data,
	wren,
	q
);

	input [7:0] address;
	input clock;
	input [7:0] data;
	input wren;
	output [7:0] q;
`ifndef ALTERA_RESERVED_QIS
// synopsys translate_off
`endif
	tri1 clock;
`ifndef ALTERA_RESERVED_QIS
// synopsys translate_on
`endif

	wire [7:0] sub_wire0;
	wire [7:0] q = sub_wire0[7:0];

	altsyncram altsyncram_component (
		.address_a(address),
		.clock0(clock),
		.data_a(data),
		.wren_a(wren),
		.q_a(sub_wire0),
		.aclr0(1'b0),
		.aclr1(1'b0),
		.address_b(1'b1),
		.addressstall_a(1'b0),
		.addressstall_b(1'b0),
		.byteena_a(1'b1),
		.byteena_b(1'b1),
		.clock1(1'b1),
		.clocken0(1'b1),
		.clocken1(1'b1),
		.clocken2(1'b1),
		.clocken3(1'b1),
		.data_b(1'b1),
		.eccstatus(),
		.q_b(),
		.rden_a(1'b1),
		.rden_b(1'b1),
		.wren_b(1'b0)
	);
	defparam
		altsyncram_component.clock_enable_input_a = "BYPASS",
		altsyncram_component.clock_enable_output_a = "BYPASS",
		altsyncram_component.init_file = "message.mif",
		altsyncram_component.intended_device_family = "Cyclone V",
		altsyncram_component.lpm_type = "altsyncram",
		altsyncram_component.numwords_a = 256,
		altsyncram_component.operation_mode = "SINGLE_PORT",
		altsyncram_component.outdata_aclr_a = "NONE",
		altsyncram_component.outdata_reg_a = "UNREGISTERED",
		altsyncram_component.power_up_uninitialized = "FALSE",
		altsyncram_component.ram_block_type = "M10K",
		altsyncram_component.read_during_write_mode_port_a = "NEW_DATA_NO_NBE_READ",
		altsyncram_component.widthad_a = 8,
		altsyncram_component.width_a = 8,
		altsyncram_component.width_byteena_a = 1;

endmodule