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

📄 dial1.map.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]
--operation mode is normal

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


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

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


--A1L43 is data4[0]~160
--operation mode is normal

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


--A1L53 is data4[1]~161
--operation mode is normal

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


--A1L63 is data4[2]~162
--operation mode is normal

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


--A1L73 is data4[3]~163
--operation mode is normal

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


--A1L26 is Mux~112
--operation mode is normal

A1L26 = A1L43 & (A1L73 # A1L53 $ A1L63) # !A1L43 & (A1L53 # A1L63 $ A1L73);


--A1L36 is Mux~113
--operation mode is normal

A1L36 = A1L43 & (A1L73 $ (A1L53 # !A1L63)) # !A1L43 & A1L53 & !A1L63 & !A1L73;


--A1L46 is Mux~114
--operation mode is normal

A1L46 = A1L53 & A1L43 & (!A1L73) # !A1L53 & (A1L63 & (!A1L73) # !A1L63 & A1L43);


--A1L56 is Mux~115
--operation mode is normal

A1L56 = A1L43 & (A1L53 $ !A1L63) # !A1L43 & (A1L53 & !A1L63 & A1L73 # !A1L53 & A1L63 & !A1L73);


--A1L66 is Mux~116
--operation mode is normal

A1L66 = A1L63 & A1L73 & (A1L53 # !A1L43) # !A1L63 & !A1L43 & A1L53 & !A1L73;


--A1L76 is Mux~117
--operation mode is normal

A1L76 = A1L53 & (A1L43 & (A1L73) # !A1L43 & A1L63) # !A1L53 & A1L63 & (A1L43 $ A1L73);


--A1L86 is Mux~118
--operation mode is normal

A1L86 = A1L63 & !A1L53 & (A1L43 $ !A1L73) # !A1L63 & A1L43 & (A1L53 $ !A1L73);


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

cnt_scan[15]_carry_eqn = A1L23;
cnt_scan[15]_lut_out = cnt_scan[15] $ (cnt_scan[15]_carry_eqn);
cnt_scan[15] = DFFEAS(cnt_scan[15]_lut_out, clk, rst, , , , , , );


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

cnt_scan[14]_carry_eqn = A1L03;
cnt_scan[14]_lut_out = cnt_scan[14] $ (!cnt_scan[14]_carry_eqn);
cnt_scan[14] = DFFEAS(cnt_scan[14]_lut_out, clk, rst, , , , , , );

--A1L23 is cnt_scan[14]~117
--operation mode is arithmetic

A1L23 = CARRY(cnt_scan[14] & (!A1L03));


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

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

--A1L03 is cnt_scan[13]~121
--operation mode is arithmetic

A1L03 = CARRY(!A1L82 # !cnt_scan[13]);


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

cnt_scan[12]_carry_eqn = A1L62;
cnt_scan[12]_lut_out = cnt_scan[12] $ (!cnt_scan[12]_carry_eqn);
cnt_scan[12] = DFFEAS(cnt_scan[12]_lut_out, clk, rst, , , , , , );

--A1L82 is cnt_scan[12]~125
--operation mode is arithmetic

A1L82 = CARRY(cnt_scan[12] & (!A1L62));


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

cnt_scan[11]_carry_eqn = A1L42;
cnt_scan[11]_lut_out = cnt_scan[11] $ (cnt_scan[11]_carry_eqn);
cnt_scan[11] = DFFEAS(cnt_scan[11]_lut_out, clk, rst, , , , , , );

--A1L62 is cnt_scan[11]~129
--operation mode is arithmetic

A1L62 = CARRY(!A1L42 # !cnt_scan[11]);


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

cnt_scan[10]_carry_eqn = A1L22;
cnt_scan[10]_lut_out = cnt_scan[10] $ (!cnt_scan[10]_carry_eqn);
cnt_scan[10] = DFFEAS(cnt_scan[10]_lut_out, clk, rst, , , , , , );

--A1L42 is cnt_scan[10]~133
--operation mode is arithmetic

A1L42 = CARRY(cnt_scan[10] & (!A1L22));


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

cnt_scan[9]_carry_eqn = A1L02;
cnt_scan[9]_lut_out = cnt_scan[9] $ (cnt_scan[9]_carry_eqn);
cnt_scan[9] = DFFEAS(cnt_scan[9]_lut_out, clk, rst, , , , , , );

--A1L22 is cnt_scan[9]~137
--operation mode is arithmetic

A1L22 = CARRY(!A1L02 # !cnt_scan[9]);


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

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

--A1L02 is cnt_scan[8]~141
--operation mode is arithmetic

A1L02 = CARRY(cnt_scan[8] & (!A1L81));


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

cnt_scan[7]_carry_eqn = A1L61;
cnt_scan[7]_lut_out = cnt_scan[7] $ (cnt_scan[7]_carry_eqn);
cnt_scan[7] = DFFEAS(cnt_scan[7]_lut_out, clk, rst, , , , , , );

--A1L81 is cnt_scan[7]~145
--operation mode is arithmetic

A1L81 = CARRY(!A1L61 # !cnt_scan[7]);


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

cnt_scan[6]_carry_eqn = A1L41;
cnt_scan[6]_lut_out = cnt_scan[6] $ (!cnt_scan[6]_carry_eqn);
cnt_scan[6] = DFFEAS(cnt_scan[6]_lut_out, clk, rst, , , , , , );

--A1L61 is cnt_scan[6]~149
--operation mode is arithmetic

A1L61 = CARRY(cnt_scan[6] & (!A1L41));


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

cnt_scan[5]_carry_eqn = A1L21;
cnt_scan[5]_lut_out = cnt_scan[5] $ (cnt_scan[5]_carry_eqn);
cnt_scan[5] = DFFEAS(cnt_scan[5]_lut_out, clk, rst, , , , , , );

--A1L41 is cnt_scan[5]~153
--operation mode is arithmetic

A1L41 = CARRY(!A1L21 # !cnt_scan[5]);


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

cnt_scan[4]_carry_eqn = A1L01;
cnt_scan[4]_lut_out = cnt_scan[4] $ (!cnt_scan[4]_carry_eqn);
cnt_scan[4] = DFFEAS(cnt_scan[4]_lut_out, clk, rst, , , , , , );

--A1L21 is cnt_scan[4]~157
--operation mode is arithmetic

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


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

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

--A1L01 is cnt_scan[3]~161
--operation mode is arithmetic

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


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

cnt_scan[2]_carry_eqn = A1L6;
cnt_scan[2]_lut_out = cnt_scan[2] $ (!cnt_scan[2]_carry_eqn);
cnt_scan[2] = DFFEAS(cnt_scan[2]_lut_out, clk, rst, , , , , , );

--A1L8 is cnt_scan[2]~165
--operation mode is arithmetic

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


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

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

--A1L6 is cnt_scan[1]~169
--operation mode is arithmetic

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


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

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

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

A1L4 = CARRY(cnt_scan[0]);


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

datain[4] = INPUT();


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

datain[0] = INPUT();


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

datain[5] = INPUT();


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

datain[1] = INPUT();


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

datain[6] = INPUT();


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

datain[2] = INPUT();


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

datain[7] = INPUT();


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

datain[3] = INPUT();


--rst is rst
--operation mode is input

rst = INPUT();


--clk is clk
--operation mode is input

clk = INPUT();


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

dataout[0] = OUTPUT(VCC);


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

dataout[1] = OUTPUT(!A1L26);


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

dataout[2] = OUTPUT(A1L36);


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

dataout[3] = OUTPUT(A1L46);


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

dataout[4] = OUTPUT(A1L56);


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

dataout[5] = OUTPUT(A1L66);


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

dataout[6] = OUTPUT(A1L76);


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

dataout[7] = OUTPUT(A1L86);


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

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


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

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


⌨️ 快捷键说明

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