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

📄 dial1.fit.eqn

📁 拨码开关实验 拨码开关8 位0 1 状态在8 位7 段数码管相应位上显示0 或1。
💻 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.
--en_xhdl[0] is en_xhdl[0] at LC_X13_Y4_N8
--operation mode is normal

en_xhdl[0]_lut_out = !en_xhdl[0];
en_xhdl[0] = DFFEAS(en_xhdl[0]_lut_out, GLOBAL(cnt_scan[15]), GLOBAL(rst), , , , , , );


--en_xhdl[1] is en_xhdl[1] at LC_X13_Y4_N0
--operation mode is normal

en_xhdl[1]_lut_out = !en_xhdl[1];
en_xhdl[1] = DFFEAS(en_xhdl[1]_lut_out, GLOBAL(cnt_scan[15]), GLOBAL(rst), , , , , , );


--A1L64 is data4[0]~160 at LC_X13_Y4_N7
--operation mode is normal

A1L64 = en_xhdl[1] & (datain[4]) # !en_xhdl[1] & (en_xhdl[0] & (datain[4]) # !en_xhdl[0] & datain[0]);


--A1L74 is data4[1]~161 at LC_X13_Y4_N9
--operation mode is normal

A1L74 = en_xhdl[1] & datain[5] # !en_xhdl[1] & (en_xhdl[0] & datain[5] # !en_xhdl[0] & (datain[1]));


--A1L84 is data4[2]~162 at LC_X13_Y4_N5
--operation mode is normal

A1L84 = en_xhdl[1] & (datain[6]) # !en_xhdl[1] & (en_xhdl[0] & (datain[6]) # !en_xhdl[0] & datain[2]);


--A1L94 is data4[3]~163 at LC_X13_Y4_N3
--operation mode is normal

A1L94 = en_xhdl[1] & (datain[7]) # !en_xhdl[1] & (en_xhdl[0] & (datain[7]) # !en_xhdl[0] & datain[3]);


--A1L47 is Mux~112 at LC_X12_Y4_N4
--operation mode is normal

A1L47 = A1L64 & (A1L94 # A1L84 $ A1L74) # !A1L64 & (A1L74 # A1L94 $ A1L84);


--A1L57 is Mux~113 at LC_X12_Y4_N0
--operation mode is normal

A1L57 = A1L84 & A1L64 & (A1L94 $ A1L74) # !A1L84 & !A1L94 & (A1L74 # A1L64);


--A1L67 is Mux~114 at LC_X13_Y4_N2
--operation mode is normal

A1L67 = A1L74 & !A1L94 & A1L64 # !A1L74 & (A1L84 & !A1L94 # !A1L84 & (A1L64));


--A1L77 is Mux~115 at LC_X12_Y4_N7
--operation mode is normal

A1L77 = A1L64 & (A1L84 $ !A1L74) # !A1L64 & (A1L94 & !A1L84 & A1L74 # !A1L94 & A1L84 & !A1L74);


--A1L87 is Mux~116 at LC_X13_Y4_N1
--operation mode is normal

A1L87 = A1L84 & A1L94 & (A1L74 # !A1L64) # !A1L84 & A1L74 & !A1L64 & !A1L94;


--A1L97 is Mux~117 at LC_X13_Y4_N4
--operation mode is normal

A1L97 = A1L74 & (A1L64 & (A1L94) # !A1L64 & A1L84) # !A1L74 & A1L84 & (A1L64 $ A1L94);


--A1L08 is Mux~118 at LC_X13_Y4_N6
--operation mode is normal

A1L08 = A1L84 & !A1L74 & (A1L64 $ !A1L94) # !A1L84 & A1L64 & (A1L74 $ !A1L94);


--cnt_scan[15] is cnt_scan[15] at LC_X13_Y3_N7
--operation mode is normal

cnt_scan[15]_carry_eqn = (!A1L83 & A1L34) # (A1L83 & A1L44);
cnt_scan[15]_lut_out = cnt_scan[15] $ cnt_scan[15]_carry_eqn;
cnt_scan[15] = DFFEAS(cnt_scan[15]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );


--cnt_scan[14] is cnt_scan[14] at LC_X13_Y3_N6
--operation mode is arithmetic

cnt_scan[14]_carry_eqn = (!A1L83 & A1L04) # (A1L83 & A1L14);
cnt_scan[14]_lut_out = cnt_scan[14] $ (!cnt_scan[14]_carry_eqn);
cnt_scan[14] = DFFEAS(cnt_scan[14]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L34 is cnt_scan[14]~117 at LC_X13_Y3_N6
--operation mode is arithmetic

A1L34_cout_0 = cnt_scan[14] & (!A1L04);
A1L34 = CARRY(A1L34_cout_0);

--A1L44 is cnt_scan[14]~117COUT1_212 at LC_X13_Y3_N6
--operation mode is arithmetic

A1L44_cout_1 = cnt_scan[14] & (!A1L14);
A1L44 = CARRY(A1L44_cout_1);


--cnt_scan[13] is cnt_scan[13] at LC_X13_Y3_N5
--operation mode is arithmetic

cnt_scan[13]_carry_eqn = A1L83;
cnt_scan[13]_lut_out = cnt_scan[13] $ (cnt_scan[13]_carry_eqn);
cnt_scan[13] = DFFEAS(cnt_scan[13]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L04 is cnt_scan[13]~121 at LC_X13_Y3_N5
--operation mode is arithmetic

A1L04_cout_0 = !A1L83 # !cnt_scan[13];
A1L04 = CARRY(A1L04_cout_0);

--A1L14 is cnt_scan[13]~121COUT1_210 at LC_X13_Y3_N5
--operation mode is arithmetic

A1L14_cout_1 = !A1L83 # !cnt_scan[13];
A1L14 = CARRY(A1L14_cout_1);


--cnt_scan[12] is cnt_scan[12] at LC_X13_Y3_N4
--operation mode is arithmetic

cnt_scan[12]_carry_eqn = (!A1L42 & A1L53) # (A1L42 & A1L63);
cnt_scan[12]_lut_out = cnt_scan[12] $ (!cnt_scan[12]_carry_eqn);
cnt_scan[12] = DFFEAS(cnt_scan[12]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L83 is cnt_scan[12]~125 at LC_X13_Y3_N4
--operation mode is arithmetic

A1L83 = CARRY(cnt_scan[12] & (!A1L63));


--cnt_scan[11] is cnt_scan[11] at LC_X13_Y3_N3
--operation mode is arithmetic

cnt_scan[11]_carry_eqn = (!A1L42 & A1L23) # (A1L42 & A1L33);
cnt_scan[11]_lut_out = cnt_scan[11] $ (cnt_scan[11]_carry_eqn);
cnt_scan[11] = DFFEAS(cnt_scan[11]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L53 is cnt_scan[11]~129 at LC_X13_Y3_N3
--operation mode is arithmetic

A1L53_cout_0 = !A1L23 # !cnt_scan[11];
A1L53 = CARRY(A1L53_cout_0);

--A1L63 is cnt_scan[11]~129COUT1_208 at LC_X13_Y3_N3
--operation mode is arithmetic

A1L63_cout_1 = !A1L33 # !cnt_scan[11];
A1L63 = CARRY(A1L63_cout_1);


--cnt_scan[10] is cnt_scan[10] at LC_X13_Y3_N2
--operation mode is arithmetic

cnt_scan[10]_carry_eqn = (!A1L42 & A1L92) # (A1L42 & A1L03);
cnt_scan[10]_lut_out = cnt_scan[10] $ !cnt_scan[10]_carry_eqn;
cnt_scan[10] = DFFEAS(cnt_scan[10]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L23 is cnt_scan[10]~133 at LC_X13_Y3_N2
--operation mode is arithmetic

A1L23_cout_0 = cnt_scan[10] & !A1L92;
A1L23 = CARRY(A1L23_cout_0);

--A1L33 is cnt_scan[10]~133COUT1_206 at LC_X13_Y3_N2
--operation mode is arithmetic

A1L33_cout_1 = cnt_scan[10] & !A1L03;
A1L33 = CARRY(A1L33_cout_1);


--cnt_scan[9] is cnt_scan[9] at LC_X13_Y3_N1
--operation mode is arithmetic

cnt_scan[9]_carry_eqn = (!A1L42 & A1L62) # (A1L42 & A1L72);
cnt_scan[9]_lut_out = cnt_scan[9] $ cnt_scan[9]_carry_eqn;
cnt_scan[9] = DFFEAS(cnt_scan[9]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L92 is cnt_scan[9]~137 at LC_X13_Y3_N1
--operation mode is arithmetic

A1L92_cout_0 = !A1L62 # !cnt_scan[9];
A1L92 = CARRY(A1L92_cout_0);

--A1L03 is cnt_scan[9]~137COUT1_204 at LC_X13_Y3_N1
--operation mode is arithmetic

A1L03_cout_1 = !A1L72 # !cnt_scan[9];
A1L03 = CARRY(A1L03_cout_1);


--cnt_scan[8] is cnt_scan[8] at LC_X13_Y3_N0
--operation mode is arithmetic

cnt_scan[8]_carry_eqn = A1L42;
cnt_scan[8]_lut_out = cnt_scan[8] $ !cnt_scan[8]_carry_eqn;
cnt_scan[8] = DFFEAS(cnt_scan[8]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L62 is cnt_scan[8]~141 at LC_X13_Y3_N0
--operation mode is arithmetic

A1L62_cout_0 = cnt_scan[8] & !A1L42;
A1L62 = CARRY(A1L62_cout_0);

--A1L72 is cnt_scan[8]~141COUT1_202 at LC_X13_Y3_N0
--operation mode is arithmetic

A1L72_cout_1 = cnt_scan[8] & !A1L42;
A1L72 = CARRY(A1L72_cout_1);


--cnt_scan[7] is cnt_scan[7] at LC_X12_Y3_N9
--operation mode is arithmetic

cnt_scan[7]_carry_eqn = (!A1L01 & A1L12) # (A1L01 & A1L22);
cnt_scan[7]_lut_out = cnt_scan[7] $ cnt_scan[7]_carry_eqn;
cnt_scan[7] = DFFEAS(cnt_scan[7]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L42 is cnt_scan[7]~145 at LC_X12_Y3_N9
--operation mode is arithmetic

A1L42 = CARRY(!A1L22 # !cnt_scan[7]);


--cnt_scan[6] is cnt_scan[6] at LC_X12_Y3_N8
--operation mode is arithmetic

cnt_scan[6]_carry_eqn = (!A1L01 & A1L81) # (A1L01 & A1L91);
cnt_scan[6]_lut_out = cnt_scan[6] $ (!cnt_scan[6]_carry_eqn);
cnt_scan[6] = DFFEAS(cnt_scan[6]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L12 is cnt_scan[6]~149 at LC_X12_Y3_N8
--operation mode is arithmetic

A1L12_cout_0 = cnt_scan[6] & (!A1L81);
A1L12 = CARRY(A1L12_cout_0);

--A1L22 is cnt_scan[6]~149COUT1_200 at LC_X12_Y3_N8
--operation mode is arithmetic

A1L22_cout_1 = cnt_scan[6] & (!A1L91);
A1L22 = CARRY(A1L22_cout_1);


--cnt_scan[5] is cnt_scan[5] at LC_X12_Y3_N7
--operation mode is arithmetic

cnt_scan[5]_carry_eqn = (!A1L01 & A1L51) # (A1L01 & A1L61);
cnt_scan[5]_lut_out = cnt_scan[5] $ cnt_scan[5]_carry_eqn;
cnt_scan[5] = DFFEAS(cnt_scan[5]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L81 is cnt_scan[5]~153 at LC_X12_Y3_N7
--operation mode is arithmetic

A1L81_cout_0 = !A1L51 # !cnt_scan[5];
A1L81 = CARRY(A1L81_cout_0);

--A1L91 is cnt_scan[5]~153COUT1_198 at LC_X12_Y3_N7
--operation mode is arithmetic

A1L91_cout_1 = !A1L61 # !cnt_scan[5];
A1L91 = CARRY(A1L91_cout_1);


--cnt_scan[4] is cnt_scan[4] at LC_X12_Y3_N6
--operation mode is arithmetic

cnt_scan[4]_carry_eqn = (!A1L01 & A1L21) # (A1L01 & A1L31);
cnt_scan[4]_lut_out = cnt_scan[4] $ (!cnt_scan[4]_carry_eqn);
cnt_scan[4] = DFFEAS(cnt_scan[4]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L51 is cnt_scan[4]~157 at LC_X12_Y3_N6
--operation mode is arithmetic

A1L51_cout_0 = cnt_scan[4] & (!A1L21);
A1L51 = CARRY(A1L51_cout_0);

--A1L61 is cnt_scan[4]~157COUT1_196 at LC_X12_Y3_N6
--operation mode is arithmetic

A1L61_cout_1 = cnt_scan[4] & (!A1L31);
A1L61 = CARRY(A1L61_cout_1);


--cnt_scan[3] is cnt_scan[3] at LC_X12_Y3_N5
--operation mode is arithmetic

cnt_scan[3]_carry_eqn = A1L01;
cnt_scan[3]_lut_out = cnt_scan[3] $ (cnt_scan[3]_carry_eqn);
cnt_scan[3] = DFFEAS(cnt_scan[3]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L21 is cnt_scan[3]~161 at LC_X12_Y3_N5
--operation mode is arithmetic

A1L21_cout_0 = !A1L01 # !cnt_scan[3];
A1L21 = CARRY(A1L21_cout_0);

--A1L31 is cnt_scan[3]~161COUT1_194 at LC_X12_Y3_N5
--operation mode is arithmetic

A1L31_cout_1 = !A1L01 # !cnt_scan[3];
A1L31 = CARRY(A1L31_cout_1);


--cnt_scan[2] is cnt_scan[2] at LC_X12_Y3_N4
--operation mode is arithmetic

cnt_scan[2]_lut_out = cnt_scan[2] $ (!A1L7);
cnt_scan[2] = DFFEAS(cnt_scan[2]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L01 is cnt_scan[2]~165 at LC_X12_Y3_N4
--operation mode is arithmetic

A1L01 = CARRY(cnt_scan[2] & (!A1L8));


--cnt_scan[1] is cnt_scan[1] at LC_X12_Y3_N3
--operation mode is arithmetic

cnt_scan[1]_lut_out = cnt_scan[1] $ (A1L4);
cnt_scan[1] = DFFEAS(cnt_scan[1]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L7 is cnt_scan[1]~169 at LC_X12_Y3_N3
--operation mode is arithmetic

A1L7_cout_0 = !A1L4 # !cnt_scan[1];
A1L7 = CARRY(A1L7_cout_0);

--A1L8 is cnt_scan[1]~169COUT1_192 at LC_X12_Y3_N3
--operation mode is arithmetic

A1L8_cout_1 = !A1L5 # !cnt_scan[1];
A1L8 = CARRY(A1L8_cout_1);


--cnt_scan[0] is cnt_scan[0] at LC_X12_Y3_N2
--operation mode is arithmetic

cnt_scan[0]_lut_out = !cnt_scan[0];
cnt_scan[0] = DFFEAS(cnt_scan[0]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L4 is cnt_scan[0]~173 at LC_X12_Y3_N2
--operation mode is arithmetic

A1L4_cout_0 = cnt_scan[0];
A1L4 = CARRY(A1L4_cout_0);

--A1L5 is cnt_scan[0]~173COUT1_190 at LC_X12_Y3_N2
--operation mode is arithmetic

A1L5_cout_1 = cnt_scan[0];
A1L5 = CARRY(A1L5_cout_1);


--datain[4] is datain[4] at PIN_63
--operation mode is input

datain[4] = INPUT();


--datain[0] is datain[0] at PIN_71
--operation mode is input

datain[0] = INPUT();


--datain[5] is datain[5] at PIN_62
--operation mode is input

datain[5] = INPUT();


--datain[1] is datain[1] at PIN_69
--operation mode is input

datain[1] = INPUT();


--datain[6] is datain[6] at PIN_61
--operation mode is input

datain[6] = INPUT();


--datain[2] is datain[2] at PIN_68
--operation mode is input

datain[2] = INPUT();


--datain[7] is datain[7] at PIN_60
--operation mode is input

datain[7] = INPUT();


--datain[3] is datain[3] at PIN_67
--operation mode is input

datain[3] = INPUT();


--rst is rst at PIN_110
--operation mode is input

rst = INPUT();


--clk is clk at PIN_127
--operation mode is input

clk = INPUT();


--dataout[0] is dataout[0] at PIN_120
--operation mode is output

dataout[0] = OUTPUT(VCC);


--dataout[1] is dataout[1] at PIN_119
--operation mode is output

dataout[1] = OUTPUT(!A1L47);


--dataout[2] is dataout[2] at PIN_117
--operation mode is output

dataout[2] = OUTPUT(A1L57);


--dataout[3] is dataout[3] at PIN_114
--operation mode is output

dataout[3] = OUTPUT(A1L67);


--dataout[4] is dataout[4] at PIN_113
--operation mode is output

dataout[4] = OUTPUT(A1L77);


--dataout[5] is dataout[5] at PIN_111
--operation mode is output

dataout[5] = OUTPUT(A1L87);


--dataout[6] is dataout[6] at PIN_108
--operation mode is output

dataout[6] = OUTPUT(A1L97);


--dataout[7] is dataout[7] at PIN_109
--operation mode is output

dataout[7] = OUTPUT(A1L08);


--en[0] is en[0] at PIN_134
--operation mode is output

en[0] = OUTPUT(en_xhdl[0]);


--en[1] is en[1] at PIN_133
--operation mode is output

en[1] = OUTPUT(!en_xhdl[1]);


⌨️ 快捷键说明

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