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

📄 seg70.map.eqn

📁 7 段数码管实验(包括两个实验) 7段数码管测试实验1:以动态扫描方式在8位数码管“同时”显示0—7
💻 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.
--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]~130
--operation mode is arithmetic

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


--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]~134
--operation mode is arithmetic

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


--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, , , , , , );


--A1L25 is Mux~453
--operation mode is normal

A1L25 = cnt_scan[14] & cnt_scan[13] & cnt_scan[15] # !cnt_scan[14] & (!cnt_scan[15]);


--A1L35 is Mux~454
--operation mode is normal

A1L35 = cnt_scan[14] & (cnt_scan[13] # !cnt_scan[15]) # !cnt_scan[14] & cnt_scan[13] & (!cnt_scan[15]);


--A1L45 is Mux~455
--operation mode is normal

A1L45 = cnt_scan[13] # cnt_scan[15] & (!cnt_scan[14]);


--A1L55 is Mux~456
--operation mode is normal

A1L55 = cnt_scan[15] & (cnt_scan[13] $ !cnt_scan[14]) # !cnt_scan[15] & cnt_scan[13] & !cnt_scan[14];


--A1L65 is Mux~457
--operation mode is normal

A1L65 = cnt_scan[14] & (!cnt_scan[15] & !cnt_scan[13]);


--A1L75 is Mux~458
--operation mode is normal

A1L75 = cnt_scan[15] & (cnt_scan[14] $ cnt_scan[13]);


--A1L85 is Mux~459
--operation mode is normal

A1L85 = !cnt_scan[14] & (cnt_scan[15] $ cnt_scan[13]);


--A1L95 is Mux~460
--operation mode is normal

A1L95 = !cnt_scan[14] & !cnt_scan[15] & !cnt_scan[13];


--A1L06 is Mux~461
--operation mode is normal

A1L06 = cnt_scan[13] & (!cnt_scan[14] & !cnt_scan[15]);


--A1L16 is Mux~462
--operation mode is normal

A1L16 = cnt_scan[14] & cnt_scan[13] & (!cnt_scan[15]);


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

A1L26 = cnt_scan[15] & (!cnt_scan[14] & !cnt_scan[13]);


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

A1L36 = cnt_scan[15] & cnt_scan[13] & (!cnt_scan[14]);


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

A1L46 = cnt_scan[14] & cnt_scan[15] & (!cnt_scan[13]);


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

A1L56 = cnt_scan[14] & cnt_scan[15] & 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]~142
--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]~146
--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]~150
--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]~154
--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]~158
--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]~162
--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]~166
--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]~170
--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]~174
--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]~178
--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]~182
--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]~186
--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]~190
--operation mode is arithmetic

A1L4 = CARRY(cnt_scan[0]);


--clk is clk
--operation mode is input

clk = INPUT();


--rst is rst
--operation mode is input

rst = 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(A1L25);


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

dataout[2] = OUTPUT(A1L35);


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

dataout[3] = OUTPUT(A1L45);


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

dataout[4] = OUTPUT(A1L55);


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

dataout[5] = OUTPUT(A1L65);


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

dataout[6] = OUTPUT(A1L75);


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

dataout[7] = OUTPUT(A1L85);


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

en[0] = OUTPUT(!A1L95);


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

en[1] = OUTPUT(!A1L06);


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

en[2] = OUTPUT(!A1L65);


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

en[3] = OUTPUT(!A1L16);


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

en[4] = OUTPUT(!A1L26);


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

en[5] = OUTPUT(!A1L36);


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

en[6] = OUTPUT(!A1L46);


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

en[7] = OUTPUT(!A1L56);


⌨️ 快捷键说明

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