1 |
2 |
lucas.vbal |
--altshift_taps CBX_DECLARE_ALL_CONNECTED_PORTS="OFF" DEVICE_FAMILY="Cyclone IV E" NUMBER_OF_TAPS=1 TAP_DISTANCE=8 WIDTH=4 clock shiftin taps CARRY_CHAIN="MANUAL" CARRY_CHAIN_LENGTH=48 CYCLONEII_M4K_COMPATIBILITY="ON" LOW_POWER_MODE="AUTO" lpm_hint="LPM_REMAINDERPOSITIVE=FALSE"
|
2 |
|
|
--VERSION_BEGIN 17.0 cbx_altdpram 2017:04:25:18:06:29:SJ cbx_altera_counter 2017:04:25:18:06:29:SJ cbx_altera_syncram 2017:04:25:18:06:29:SJ cbx_altera_syncram_nd_impl 2017:04:25:18:06:29:SJ cbx_altshift_taps 2017:04:25:18:06:29:SJ cbx_altsyncram 2017:04:25:18:06:29:SJ cbx_cycloneii 2017:04:25:18:06:29:SJ cbx_lpm_add_sub 2017:04:25:18:06:29:SJ cbx_lpm_compare 2017:04:25:18:06:29:SJ cbx_lpm_counter 2017:04:25:18:06:29:SJ cbx_lpm_decode 2017:04:25:18:06:29:SJ cbx_lpm_mux 2017:04:25:18:06:30:SJ cbx_mgl 2017:04:25:18:09:28:SJ cbx_nadder 2017:04:25:18:06:30:SJ cbx_stratix 2017:04:25:18:06:30:SJ cbx_stratixii 2017:04:25:18:06:30:SJ cbx_stratixiii 2017:04:25:18:06:30:SJ cbx_stratixv 2017:04:25:18:06:30:SJ cbx_util_mgl 2017:04:25:18:06:30:SJ VERSION_END
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
-- Copyright (C) 2017 Intel Corporation. All rights reserved.
|
6 |
|
|
-- Your use of Intel 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 Intel Program License
|
12 |
|
|
-- Subscription Agreement, the Intel Quartus Prime License Agreement,
|
13 |
|
|
-- the Intel MegaCore Function License Agreement, or other
|
14 |
|
|
-- applicable license agreement, including, without limitation,
|
15 |
|
|
-- that your use is for the sole purpose of programming logic
|
16 |
|
|
-- devices manufactured by Intel and sold by Intel or its
|
17 |
|
|
-- authorized distributors. Please refer to the applicable
|
18 |
|
|
-- agreement for further details.
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
FUNCTION altsyncram_4b81 (address_a[2..0], address_b[2..0], clock0, clocken0, data_a[3..0], wren_a)
|
22 |
|
|
RETURNS ( q_b[3..0]);
|
23 |
|
|
FUNCTION cntr_apf (clk_en, clock)
|
24 |
|
|
RETURNS ( q[2..0]);
|
25 |
|
|
|
26 |
|
|
--synthesis_resources = lut 3 M9K 1 reg 3
|
27 |
|
|
SUBDESIGN shift_taps_ktp
|
28 |
|
|
(
|
29 |
|
|
clock : input;
|
30 |
|
|
shiftin[3..0] : input;
|
31 |
|
|
shiftout[3..0] : output;
|
32 |
|
|
taps[3..0] : output;
|
33 |
|
|
)
|
34 |
|
|
VARIABLE
|
35 |
|
|
altsyncram2 : altsyncram_4b81;
|
36 |
|
|
cntr1 : cntr_apf;
|
37 |
|
|
clken : NODE;
|
38 |
|
|
|
39 |
|
|
BEGIN
|
40 |
|
|
altsyncram2.address_a[] = cntr1.q[];
|
41 |
|
|
altsyncram2.address_b[] = cntr1.q[];
|
42 |
|
|
altsyncram2.clock0 = clock;
|
43 |
|
|
altsyncram2.clocken0 = clken;
|
44 |
|
|
altsyncram2.data_a[] = ( shiftin[]);
|
45 |
|
|
altsyncram2.wren_a = B"1";
|
46 |
|
|
cntr1.clk_en = clken;
|
47 |
|
|
cntr1.clock = clock;
|
48 |
|
|
clken = VCC;
|
49 |
|
|
shiftout[3..0] = altsyncram2.q_b[3..0];
|
50 |
|
|
taps[] = altsyncram2.q_b[];
|
51 |
|
|
END;
|
52 |
|
|
--VALID FILE
|