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

📄 stop_watch.fit.eqn

📁 采用Quartus2编写的电子秒表电路 实现计时、暂停等功能
💻 EQN
📖 第 1 页 / 共 3 页
字号:
C1L21_carry_eqn = C1L61;
C1L21 = C1L24Q $ (!C1L21_carry_eqn);

--C1L31 is clkdiv5k:inst1|add~218 at LC_X37_Y11_N0
--operation mode is arithmetic

C1L31_cout_0 = C1L24Q & (!C1L61);
C1L31 = CARRY(C1L31_cout_0);

--C1L41 is clkdiv5k:inst1|add~218COUT1_266 at LC_X37_Y11_N0
--operation mode is arithmetic

C1L41_cout_1 = C1L24Q & (!C1L61);
C1L41 = CARRY(C1L41_cout_1);


--C1L51 is clkdiv5k:inst1|add~221 at LC_X37_Y12_N9
--operation mode is arithmetic

C1L51_carry_eqn = (!C1L33 & C1L81) # (C1L33 & C1L91);
C1L51 = C1L14Q $ (C1L51_carry_eqn);

--C1L61 is clkdiv5k:inst1|add~223 at LC_X37_Y12_N9
--operation mode is arithmetic

C1L61 = CARRY(!C1L91 # !C1L14Q);


--C1L71 is clkdiv5k:inst1|add~226 at LC_X37_Y12_N8
--operation mode is arithmetic

C1L71_carry_eqn = (!C1L33 & C1L42) # (C1L33 & C1L52);
C1L71 = C1L04Q $ (!C1L71_carry_eqn);

--C1L81 is clkdiv5k:inst1|add~228 at LC_X37_Y12_N8
--operation mode is arithmetic

C1L81_cout_0 = C1L04Q & (!C1L42);
C1L81 = CARRY(C1L81_cout_0);

--C1L91 is clkdiv5k:inst1|add~228COUT1_265 at LC_X37_Y12_N8
--operation mode is arithmetic

C1L91_cout_1 = C1L04Q & (!C1L52);
C1L91 = CARRY(C1L91_cout_1);


--C1L02 is clkdiv5k:inst1|add~231 at LC_X37_Y11_N1
--operation mode is arithmetic

C1L02_carry_eqn = (!C1L61 & C1L31) # (C1L61 & C1L41);
C1L02 = C1L34Q $ (C1L02_carry_eqn);

--C1L12 is clkdiv5k:inst1|add~233 at LC_X37_Y11_N1
--operation mode is arithmetic

C1L12_cout_0 = !C1L31 # !C1L34Q;
C1L12 = CARRY(C1L12_cout_0);

--C1L22 is clkdiv5k:inst1|add~233COUT1_267 at LC_X37_Y11_N1
--operation mode is arithmetic

C1L22_cout_1 = !C1L41 # !C1L34Q;
C1L22 = CARRY(C1L22_cout_1);


--C1L32 is clkdiv5k:inst1|add~236 at LC_X37_Y12_N7
--operation mode is arithmetic

C1L32_carry_eqn = (!C1L33 & C1L72) # (C1L33 & C1L82);
C1L32 = C1L93Q $ C1L32_carry_eqn;

--C1L42 is clkdiv5k:inst1|add~238 at LC_X37_Y12_N7
--operation mode is arithmetic

C1L42_cout_0 = !C1L72 # !C1L93Q;
C1L42 = CARRY(C1L42_cout_0);

--C1L52 is clkdiv5k:inst1|add~238COUT1_264 at LC_X37_Y12_N7
--operation mode is arithmetic

C1L52_cout_1 = !C1L82 # !C1L93Q;
C1L52 = CARRY(C1L52_cout_1);


--C1L62 is clkdiv5k:inst1|add~241 at LC_X37_Y12_N6
--operation mode is arithmetic

C1L62_carry_eqn = (!C1L33 & C1L03) # (C1L33 & C1L13);
C1L62 = C1L83Q $ (!C1L62_carry_eqn);

--C1L72 is clkdiv5k:inst1|add~243 at LC_X37_Y12_N6
--operation mode is arithmetic

C1L72_cout_0 = C1L83Q & (!C1L03);
C1L72 = CARRY(C1L72_cout_0);

--C1L82 is clkdiv5k:inst1|add~243COUT1_263 at LC_X37_Y12_N6
--operation mode is arithmetic

C1L82_cout_1 = C1L83Q & (!C1L13);
C1L82 = CARRY(C1L82_cout_1);


--C1L92 is clkdiv5k:inst1|add~246 at LC_X37_Y12_N5
--operation mode is arithmetic

C1L92_carry_eqn = C1L33;
C1L92 = C1L73Q $ C1L92_carry_eqn;

--C1L03 is clkdiv5k:inst1|add~248 at LC_X37_Y12_N5
--operation mode is arithmetic

C1L03_cout_0 = !C1L33 # !C1L73Q;
C1L03 = CARRY(C1L03_cout_0);

--C1L13 is clkdiv5k:inst1|add~248COUT1_262 at LC_X37_Y12_N5
--operation mode is arithmetic

C1L13_cout_1 = !C1L33 # !C1L73Q;
C1L13 = CARRY(C1L13_cout_1);


--C1L23 is clkdiv5k:inst1|add~251 at LC_X37_Y12_N4
--operation mode is arithmetic

C1L23 = !C1L63Q;

--C1L33 is clkdiv5k:inst1|add~253 at LC_X37_Y12_N4
--operation mode is arithmetic

C1L33 = CARRY(C1L63Q);


--C1L43 is clkdiv5k:inst1|add~256 at LC_X37_Y11_N6
--operation mode is normal

C1L43_carry_eqn = (!C1L5 & C1L2) # (C1L5 & C1L3);
C1L43 = C1L84Q $ (!C1L43_carry_eqn);


--B1L82 is button:inst|always0~0 at LC_X40_Y12_N6
--operation mode is normal

B1L82 = !B1_signal # !startstopn;


--E1L5Q is clkdiv10K_to_1K:inst27|count[2]~reg0 at LC_X44_Y13_N2
--operation mode is normal

E1L5Q_lut_out = !E1L5Q;
E1L5Q = DFFEAS(E1L5Q_lut_out, GLOBAL(C1_clkout), GLOBAL(clrn), , E1L1, , , , );


--E1L4Q is clkdiv10K_to_1K:inst27|count[1]~reg0 at LC_X44_Y13_N5
--operation mode is normal

E1L4Q_lut_out = E1L3Q & !E1L4Q & (E1L5Q # !E1L6Q) # !E1L3Q & E1L4Q;
E1L4Q = DFFEAS(E1L4Q_lut_out, GLOBAL(C1_clkout), GLOBAL(clrn), , , , , , );


--E1L3Q is clkdiv10K_to_1K:inst27|count[0]~reg0 at LC_X44_Y13_N6
--operation mode is normal

E1L3Q_lut_out = !E1L3Q;
E1L3Q = DFFEAS(E1L3Q_lut_out, GLOBAL(C1_clkout), GLOBAL(clrn), , , , , , );


--E1L6Q is clkdiv10K_to_1K:inst27|count[3]~reg0 at LC_X44_Y13_N0
--operation mode is normal

E1L6Q_lut_out = E1L3Q & (E1L4Q & (E1L5Q $ E1L6Q) # !E1L4Q & E1L5Q & E1L6Q) # !E1L3Q & (E1L6Q);
E1L6Q = DFFEAS(E1L6Q_lut_out, GLOBAL(C1_clkout), GLOBAL(clrn), , , , , , );


--E1L1 is clkdiv10K_to_1K:inst27|add~95 at LC_X44_Y13_N4
--operation mode is normal

E1L1 = E1L4Q & (E1L3Q);


--clrn is clrn at PIN_132
--operation mode is input

clrn = INPUT();


--clk is clk at PIN_28
--operation mode is input

clk = INPUT();


--startstopn is startstopn at PIN_128
--operation mode is input

startstopn = INPUT();


--clk0 is clk0 at PIN_23
--operation mode is output

clk0 = OUTPUT(G1_clkout);


--cn is cn at PIN_168
--operation mode is output

cn = OUTPUT(F1_cn);


--bin_dsec[3] is bin_dsec[3] at PIN_160
--operation mode is output

bin_dsec[3] = OUTPUT(F1_dsec[3]);


--bin_dsec[2] is bin_dsec[2] at PIN_159
--operation mode is output

bin_dsec[2] = OUTPUT(F1_dsec[2]);


--bin_dsec[1] is bin_dsec[1] at PIN_158
--operation mode is output

bin_dsec[1] = OUTPUT(F1_dsec[1]);


--bin_dsec[0] is bin_dsec[0] at PIN_141
--operation mode is output

bin_dsec[0] = OUTPUT(F1_dsec[0]);


--bin_sec[3] is bin_sec[3] at PIN_140
--operation mode is output

bin_sec[3] = OUTPUT(F1_sec[3]);


--bin_sec[2] is bin_sec[2] at PIN_139
--operation mode is output

bin_sec[2] = OUTPUT(F1_sec[2]);


--bin_sec[1] is bin_sec[1] at PIN_138
--operation mode is output

bin_sec[1] = OUTPUT(F1_sec[1]);


--bin_sec[0] is bin_sec[0] at PIN_137
--operation mode is output

bin_sec[0] = OUTPUT(F1_sec[0]);


--bin_secd[3] is bin_secd[3] at PIN_20
--operation mode is output

bin_secd[3] = OUTPUT(F1_secd[3]);


--bin_secd[2] is bin_secd[2] at PIN_19
--operation mode is output

bin_secd[2] = OUTPUT(F1_secd[2]);


--bin_secd[1] is bin_secd[1] at PIN_18
--operation mode is output

bin_secd[1] = OUTPUT(F1_secd[1]);


--bin_secd[0] is bin_secd[0] at PIN_17
--operation mode is output

bin_secd[0] = OUTPUT(F1_secd[0]);


--bin_secm[3] is bin_secm[3] at PIN_16
--operation mode is output

bin_secm[3] = OUTPUT(F1_secm[3]);


--bin_secm[2] is bin_secm[2] at PIN_15
--operation mode is output

bin_secm[2] = OUTPUT(F1_secm[2]);


--bin_secm[1] is bin_secm[1] at PIN_14
--operation mode is output

bin_secm[1] = OUTPUT(F1_secm[1]);


--bin_secm[0] is bin_secm[0] at PIN_13
--operation mode is output

bin_secm[0] = OUTPUT(F1_secm[0]);


--dsec[6] is dsec[6] at PIN_98
--operation mode is output

dsec[6] = OUTPUT(!D1L5);


--dsec[5] is dsec[5] at PIN_100
--operation mode is output

dsec[5] = OUTPUT(!D1L6);


--dsec[4] is dsec[4] at PIN_99
--operation mode is output

dsec[4] = OUTPUT(!D1L7);


--dsec[3] is dsec[3] at PIN_195
--operation mode is output

dsec[3] = OUTPUT(!D1L4);


--dsec[2] is dsec[2] at PIN_143
--operation mode is output

dsec[2] = OUTPUT(!D1L3);


--dsec[1] is dsec[1] at PIN_164
--operation mode is output

dsec[1] = OUTPUT(!D1L2);


--dsec[0] is dsec[0] at PIN_163
--operation mode is output

dsec[0] = OUTPUT(D1L1);


--sec[6] is sec[6] at PIN_94
--operation mode is output

sec[6] = OUTPUT(!D2L5);


--sec[5] is sec[5] at PIN_207
--operation mode is output

sec[5] = OUTPUT(!D2L6);


--sec[4] is sec[4] at PIN_95
--operation mode is output

sec[4] = OUTPUT(!D2L7);


--sec[3] is sec[3] at PIN_208
--operation mode is output

sec[3] = OUTPUT(!D2L4);


--sec[2] is sec[2] at PIN_206
--operation mode is output

sec[2] = OUTPUT(!D2L3);


--sec[1] is sec[1] at PIN_161
--operation mode is output

sec[1] = OUTPUT(!D2L2);


--sec[0] is sec[0] at PIN_156
--operation mode is output

sec[0] = OUTPUT(D2L1);


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

secd[6] = OUTPUT(!D3L5);


--secd[5] is secd[5] at PIN_215
--operation mode is output

secd[5] = OUTPUT(!D3L6);


--secd[4] is secd[4] at PIN_214
--operation mode is output

secd[4] = OUTPUT(!D3L7);


--secd[3] is secd[3] at PIN_216
--operation mode is output

secd[3] = OUTPUT(!D3L4);


--secd[2] is secd[2] at PIN_219
--operation mode is output

secd[2] = OUTPUT(!D3L3);


--secd[1] is secd[1] at PIN_12
--operation mode is output

secd[1] = OUTPUT(!D3L2);


--secd[0] is secd[0] at PIN_21
--operation mode is output

secd[0] = OUTPUT(D3L1);


--secm[6] is secm[6] at PIN_196
--operation mode is output

secm[6] = OUTPUT(!D4L5);


--secm[5] is secm[5] at PIN_213
--operation mode is output

secm[5] = OUTPUT(!D4L6);


--secm[4] is secm[4] at PIN_200
--operation mode is output

secm[4] = OUTPUT(!D4L7);


--secm[3] is secm[3] at PIN_203
--operation mode is output

secm[3] = OUTPUT(!D4L4);


--secm[2] is secm[2] at PIN_202
--operation mode is output

secm[2] = OUTPUT(!D4L3);


--secm[1] is secm[1] at PIN_201
--operation mode is output

secm[1] = OUTPUT(!D4L2);


--secm[0] is secm[0] at PIN_197
--operation mode is output

secm[0] = OUTPUT(D4L1);




⌨️ 快捷键说明

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