⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsai.fit.eqn

📁 基于北京革新公司出品的EDA实验工具箱的LED扫描显示程序。能够显示8位数字。编译环境为quartusll.5.1版本。fpga芯片为EP18CQ240C6
💻 EQN
字号:
-- Copyright (C) 1991-2005 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions 
-- and other software and tools, and its AMPP partner logic 
-- functions, and any output files any of the foregoing 
-- (including device programming or simulation files), and any 
-- associated documentation or information are expressly subject 
-- to the terms and conditions of the Altera Program License 
-- Subscription Agreement, Altera MegaCore Function License 
-- Agreement, or other applicable license agreement, including, 
-- without limitation, that your use is for the sole purpose of 
-- programming logic devices manufactured by Altera and sold by 
-- Altera or its authorized distributors.  Please refer to the 
-- applicable agreement for further details.
--count[1] is count[1] at LC_X34_Y20_N3
--operation mode is normal

count[1]_lut_out = count[0] $ (count[1]);
count[1] = DFFEAS(count[1]_lut_out, GLOBAL(q1), VCC, , , , , , );


--count[2] is count[2] at LC_X34_Y20_N7
--operation mode is normal

count[2]_lut_out = count[2] $ (count[0] & count[1]);
count[2] = DFFEAS(count[2]_lut_out, GLOBAL(q1), VCC, , , , , , );


--count[0] is count[0] at LC_X34_Y20_N5
--operation mode is normal

count[0]_lut_out = !count[0];
count[0] = DFFEAS(count[0]_lut_out, GLOBAL(q1), VCC, , , , , , );


--A1L37 is Mux~441 at LC_X34_Y20_N6
--operation mode is normal

A1L37 = count[1] # count[0] $ !count[2];


--A1L38 is Mux~442 at LC_X34_Y20_N8
--operation mode is normal

A1L38 = count[0] $ !count[1] # !count[2];


--A1L39 is Mux~443 at LC_X34_Y20_N0
--operation mode is normal

A1L39 = !count[0] & !count[2] & count[1];


--A1L40 is Mux~444 at LC_X34_Y20_N2
--operation mode is normal

A1L40 = count[0] & (count[2] $ !count[1]) # !count[0] & count[2] & !count[1];


--A1L41 is Mux~445 at LC_X34_Y20_N1
--operation mode is normal

A1L41 = count[0] # count[2] & !count[1];


--A1L42 is Mux~446 at LC_X34_Y20_N9
--operation mode is normal

A1L42 = count[0] & (count[1] # !count[2]) # !count[0] & !count[2] & count[1];


--A1L43 is Mux~447 at LC_X34_Y20_N4
--operation mode is normal

A1L43 = count[2] & (!count[1] # !count[0]) # !count[2] & (count[1]);


--A1L44 is Mux~448 at LC_X19_Y1_N8
--operation mode is normal

A1L44 = !count[2] & (!count[0] & !count[1]);


--A1L45 is Mux~449 at LC_X19_Y1_N9
--operation mode is normal

A1L45 = !count[2] & (count[0] & !count[1]);


--A1L46 is Mux~450 at LC_X19_Y1_N6
--operation mode is normal

A1L46 = !count[2] & (count[0] & count[1]);


--A1L47 is Mux~451 at LC_X19_Y1_N4
--operation mode is normal

A1L47 = count[2] & (!count[0] & !count[1]);


--A1L48 is Mux~452 at LC_X19_Y1_N5
--operation mode is normal

A1L48 = count[2] & (count[0] & !count[1]);


--A1L49 is Mux~453 at LC_X19_Y1_N7
--operation mode is normal

A1L49 = count[2] & (!count[0] & count[1]);


--A1L50 is Mux~454 at LC_X19_Y1_N2
--operation mode is normal

A1L50 = count[2] & (count[0] & count[1]);


--fcount[6] is fcount[6] at LC_X24_Y4_N9
--operation mode is normal

fcount[6]_lut_out = A1L2;
fcount[6] = DFFEAS(fcount[6]_lut_out, GLOBAL(SysClk), VCC, , , , , , );


--A1L54 is rtl~47 at LC_X24_Y4_N2
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

fcount[7]_qfbk = fcount[7];
A1L54 = !fcount[6] & (!fcount[7]_qfbk);

--fcount[7] is fcount[7] at LC_X24_Y4_N2
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

fcount[7] = DFFEAS(A1L54, GLOBAL(SysClk), VCC, , , A1L1, , , VCC);


--fcount[2] is fcount[2] at LC_X24_Y4_N4
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

fcount[2]_lut_out = GND;
fcount[2] = DFFEAS(fcount[2]_lut_out, GLOBAL(SysClk), VCC, , , A1L8, , , VCC);


--fcount[1] is fcount[1] at LC_X24_Y4_N8
--operation mode is normal

fcount[1]_lut_out = A1L11;
fcount[1] = DFFEAS(fcount[1]_lut_out, GLOBAL(SysClk), VCC, , , , , , );


--fcount[0] is fcount[0] at LC_X25_Y4_N8
--operation mode is normal

fcount[0]_lut_out = A1L14;
fcount[0] = DFFEAS(fcount[0]_lut_out, GLOBAL(SysClk), VCC, , , , , , );


--A1L55 is rtl~48 at LC_X24_Y4_N5
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

fcount[3]_qfbk = fcount[3];
A1L55 = fcount[1] & fcount[2] & fcount[3]_qfbk & fcount[0];

--fcount[3] is fcount[3] at LC_X24_Y4_N5
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

fcount[3] = DFFEAS(A1L55, GLOBAL(SysClk), VCC, , , A1L5, , , VCC);


--fcount[5] is fcount[5] at LC_X24_Y4_N6
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

fcount[5]_lut_out = GND;
fcount[5] = DFFEAS(fcount[5]_lut_out, GLOBAL(SysClk), VCC, , , A1L17, , , VCC);


--fcount[4] is fcount[4] at LC_X25_Y4_N9
--operation mode is normal

fcount[4]_lut_out = A1L53 $ A1L20;
fcount[4] = DFFEAS(fcount[4]_lut_out, GLOBAL(SysClk), VCC, , , , , , );


--A1L53 is rtl~0 at LC_X24_Y4_N7
--operation mode is normal

A1L53 = !fcount[5] & A1L55 & A1L54 & !fcount[4];

--q1 is q1 at LC_X24_Y4_N7
--operation mode is normal

q1 = DFFEAS(A1L53, GLOBAL(SysClk), VCC, , , , , , );


--A1L1 is add~152 at LC_X25_Y4_N7
--operation mode is normal

A1L1_carry_eqn = (!A1L21 & A1L3) # (A1L21 & A1L4);
A1L1 = A1L1_carry_eqn $ fcount[7];


--A1L2 is add~157 at LC_X25_Y4_N6
--operation mode is arithmetic

A1L2_carry_eqn = (!A1L21 & A1L18) # (A1L21 & A1L19);
A1L2 = fcount[6] $ !A1L2_carry_eqn;

--A1L3 is add~159 at LC_X25_Y4_N6
--operation mode is arithmetic

A1L3_cout_0 = fcount[6] & !A1L18;
A1L3 = CARRY(A1L3_cout_0);

--A1L4 is add~159COUT1_197 at LC_X25_Y4_N6
--operation mode is arithmetic

A1L4_cout_1 = fcount[6] & !A1L19;
A1L4 = CARRY(A1L4_cout_1);


--A1L5 is add~162 at LC_X25_Y4_N3
--operation mode is arithmetic

A1L5 = fcount[3] $ A1L9;

--A1L6 is add~164 at LC_X25_Y4_N3
--operation mode is arithmetic

A1L6_cout_0 = !A1L9 # !fcount[3];
A1L6 = CARRY(A1L6_cout_0);

--A1L7 is add~164COUT1 at LC_X25_Y4_N3
--operation mode is arithmetic

A1L7_cout_1 = !A1L10 # !fcount[3];
A1L7 = CARRY(A1L7_cout_1);


--A1L8 is add~167 at LC_X25_Y4_N2
--operation mode is arithmetic

A1L8 = fcount[2] $ !A1L12;

--A1L9 is add~169 at LC_X25_Y4_N2
--operation mode is arithmetic

A1L9_cout_0 = fcount[2] & !A1L12;
A1L9 = CARRY(A1L9_cout_0);

--A1L10 is add~169COUT1_195 at LC_X25_Y4_N2
--operation mode is arithmetic

A1L10_cout_1 = fcount[2] & !A1L13;
A1L10 = CARRY(A1L10_cout_1);


--A1L11 is add~172 at LC_X25_Y4_N1
--operation mode is arithmetic

A1L11 = fcount[1] $ (A1L15);

--A1L12 is add~174 at LC_X25_Y4_N1
--operation mode is arithmetic

A1L12_cout_0 = !A1L15 # !fcount[1];
A1L12 = CARRY(A1L12_cout_0);

--A1L13 is add~174COUT1_194 at LC_X25_Y4_N1
--operation mode is arithmetic

A1L13_cout_1 = !A1L16 # !fcount[1];
A1L13 = CARRY(A1L13_cout_1);


--A1L14 is add~177 at LC_X25_Y4_N0
--operation mode is arithmetic

A1L14 = !fcount[0];

--A1L15 is add~179 at LC_X25_Y4_N0
--operation mode is arithmetic

A1L15_cout_0 = fcount[0];
A1L15 = CARRY(A1L15_cout_0);

--A1L16 is add~179COUT1_193 at LC_X25_Y4_N0
--operation mode is arithmetic

A1L16_cout_1 = fcount[0];
A1L16 = CARRY(A1L16_cout_1);


--A1L17 is add~182 at LC_X25_Y4_N5
--operation mode is arithmetic

A1L17_carry_eqn = (!A1L21 & GND) # (A1L21 & VCC);
A1L17 = fcount[5] $ (A1L17_carry_eqn);

--A1L18 is add~184 at LC_X25_Y4_N5
--operation mode is arithmetic

A1L18_cout_0 = !A1L21 # !fcount[5];
A1L18 = CARRY(A1L18_cout_0);

--A1L19 is add~184COUT1_196 at LC_X25_Y4_N5
--operation mode is arithmetic

A1L19_cout_1 = !A1L21 # !fcount[5];
A1L19 = CARRY(A1L19_cout_1);


--A1L20 is add~187 at LC_X25_Y4_N4
--operation mode is arithmetic

A1L20 = fcount[4] $ (!A1L6);

--A1L21 is add~189 at LC_X25_Y4_N4
--operation mode is arithmetic

A1L21 = A1L22;


--SysClk is SysClk at PIN_152
--operation mode is input

SysClk = INPUT();


--SEG7[0] is SEG7[0] at PIN_178
--operation mode is output

SEG7[0] = OUTPUT(A1L37);


--SEG7[1] is SEG7[1] at PIN_179
--operation mode is output

SEG7[1] = OUTPUT(A1L38);


--SEG7[2] is SEG7[2] at PIN_180
--operation mode is output

SEG7[2] = OUTPUT(!A1L39);


--SEG7[3] is SEG7[3] at PIN_181
--operation mode is output

SEG7[3] = OUTPUT(!A1L40);


--SEG7[4] is SEG7[4] at PIN_182
--operation mode is output

SEG7[4] = OUTPUT(!A1L41);


--SEG7[5] is SEG7[5] at PIN_183
--operation mode is output

SEG7[5] = OUTPUT(!A1L42);


--SEG7[6] is SEG7[6] at PIN_184
--operation mode is output

SEG7[6] = OUTPUT(A1L43);


--SEG7[7] is SEG7[7] at PIN_185
--operation mode is output

SEG7[7] = OUTPUT(GND);


--SCAN[0] is SCAN[0] at PIN_83
--operation mode is output

SCAN[0] = OUTPUT(A1L44);


--SCAN[1] is SCAN[1] at PIN_84
--operation mode is output

SCAN[1] = OUTPUT(A1L45);


--SCAN[2] is SCAN[2] at PIN_85
--operation mode is output

SCAN[2] = OUTPUT(A1L39);


--SCAN[3] is SCAN[3] at PIN_86
--operation mode is output

SCAN[3] = OUTPUT(A1L46);


--SCAN[4] is SCAN[4] at PIN_87
--operation mode is output

SCAN[4] = OUTPUT(A1L47);


--SCAN[5] is SCAN[5] at PIN_88
--operation mode is output

SCAN[5] = OUTPUT(A1L48);


--SCAN[6] is SCAN[6] at PIN_93
--operation mode is output

SCAN[6] = OUTPUT(A1L49);


--SCAN[7] is SCAN[7] at PIN_94
--operation mode is output

SCAN[7] = OUTPUT(A1L50);


--q is q at PIN_43
--operation mode is output

q = OUTPUT(q1);




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -