1 |
46 |
rrred |
--altsyncram ADDRESS_REG_B="CLOCK1" CBX_DECLARE_ALL_CONNECTED_PORTS="OFF" CLOCK_ENABLE_INPUT_A="BYPASS" CLOCK_ENABLE_INPUT_B="BYPASS" CLOCK_ENABLE_OUTPUT_A="BYPASS" CLOCK_ENABLE_OUTPUT_B="BYPASS" CYCLONEII_M4K_COMPATIBILITY="ON" DEVICE_FAMILY="Cyclone II" INIT_FILE="./ROMdata/lat9-08.mif" LOW_POWER_MODE="AUTO" NUMWORDS_A=2048 NUMWORDS_B=2048 OPERATION_MODE="DUAL_PORT" OUTDATA_ACLR_B="NONE" OUTDATA_REG_B="UNREGISTERED" POWER_UP_UNINITIALIZED="FALSE" WIDTH_A=8 WIDTH_B=8 WIDTH_BYTEENA_A=1 WIDTHAD_A=11 WIDTHAD_B=11 address_a address_b clock0 clock1 data_a q_b wren_a CARRY_CHAIN="MANUAL" CARRY_CHAIN_LENGTH=48
|
2 |
|
|
--VERSION_BEGIN 13.0 cbx_altsyncram 2013:06:12:18:03:43:SJ cbx_cycloneii 2013:06:12:18:03:43:SJ cbx_lpm_add_sub 2013:06:12:18:03:43:SJ cbx_lpm_compare 2013:06:12:18:03:43:SJ cbx_lpm_decode 2013:06:12:18:03:43:SJ cbx_lpm_mux 2013:06:12:18:03:43:SJ cbx_mgl 2013:06:12:18:05:10:SJ cbx_stratix 2013:06:12:18:03:43:SJ cbx_stratixii 2013:06:12:18:03:43:SJ cbx_stratixiii 2013:06:12:18:03:43:SJ cbx_stratixv 2013:06:12:18:03:43:SJ cbx_util_mgl 2013:06:12:18:03:43:SJ VERSION_END
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
-- Copyright (C) 1991-2013 Altera Corporation
|
6 |
|
|
-- Your use of Altera Corporation's design tools, logic functions
|
7 |
|
|
-- and other software and tools, and its AMPP partner logic
|
8 |
|
|
-- functions, and any output files from any of the foregoing
|
9 |
|
|
-- (including device programming or simulation files), and any
|
10 |
|
|
-- associated documentation or information are expressly subject
|
11 |
|
|
-- to the terms and conditions of the Altera Program License
|
12 |
|
|
-- Subscription Agreement, Altera MegaCore Function License
|
13 |
|
|
-- Agreement, or other applicable license agreement, including,
|
14 |
|
|
-- without limitation, that your use is for the sole purpose of
|
15 |
|
|
-- programming logic devices manufactured by Altera and sold by
|
16 |
|
|
-- Altera or its authorized distributors. Please refer to the
|
17 |
|
|
-- applicable agreement for further details.
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
FUNCTION altsyncram_m4o1 (address_a[10..0], address_b[10..0], clock0, clock1, clocken1, data_a[7..0], data_b[7..0], wren_a, wren_b)
|
21 |
|
|
RETURNS ( q_a[7..0], q_b[7..0]);
|
22 |
|
|
|
23 |
|
|
--synthesis_resources = M4K 4
|
24 |
|
|
OPTIONS ALTERA_INTERNAL_OPTION = "OPTIMIZE_POWER_DURING_SYNTHESIS=NORMAL_COMPILATION";
|
25 |
|
|
|
26 |
|
|
SUBDESIGN altsyncram_30o1
|
27 |
|
|
(
|
28 |
|
|
address_a[10..0] : input;
|
29 |
|
|
address_b[10..0] : input;
|
30 |
|
|
clock0 : input;
|
31 |
|
|
clock1 : input;
|
32 |
|
|
data_a[7..0] : input;
|
33 |
|
|
q_b[7..0] : output;
|
34 |
|
|
wren_a : input;
|
35 |
|
|
)
|
36 |
|
|
VARIABLE
|
37 |
|
|
altsyncram1 : altsyncram_m4o1;
|
38 |
|
|
|
39 |
|
|
BEGIN
|
40 |
|
|
altsyncram1.address_a[] = address_b[];
|
41 |
|
|
altsyncram1.address_b[] = address_a[];
|
42 |
|
|
altsyncram1.clock0 = clock1;
|
43 |
|
|
altsyncram1.clock1 = clock0;
|
44 |
|
|
altsyncram1.clocken1 = wren_a;
|
45 |
|
|
altsyncram1.data_a[] = B"11111111";
|
46 |
|
|
altsyncram1.data_b[] = data_a[];
|
47 |
|
|
altsyncram1.wren_a = B"0";
|
48 |
|
|
altsyncram1.wren_b = wren_a;
|
49 |
|
|
q_b[] = altsyncram1.q_a[];
|
50 |
|
|
END;
|
51 |
|
|
--VALID FILE
|