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

📄 seg73.map.eqn

📁 递增方式在4位数码管上向上计数显示从0000-0001->0002……..9999….0000….0001…. -- 利用CPLD设计了一个4位十进制计数器
💻 EQN
📖 第 1 页 / 共 2 页
字号:
-- 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.
--cntthird[0] is cntthird[0]
--operation mode is normal

cntthird[0]_lut_out = !cntthird[0];
cntthird[0] = DFFEAS(cntthird[0]_lut_out, second_over, rst, , , , , , );


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

en_xhdl[3]_lut_out = div_cnt[18] & div_cnt[19];
en_xhdl[3] = DFFEAS(en_xhdl[3]_lut_out, clk, rst, , , , , , );


--cntlast[0] is cntlast[0]
--operation mode is normal

cntlast[0]_lut_out = !cntlast[0];
cntlast[0] = DFFEAS(cntlast[0]_lut_out, third_over, rst, , , , , , );


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

en_xhdl[0]_lut_out = div_cnt[18] # div_cnt[19];
en_xhdl[0] = DFFEAS(en_xhdl[0]_lut_out, clk, rst, , , , , , );


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

en_xhdl[1]_lut_out = !div_cnt[19] & (div_cnt[18]);
en_xhdl[1] = DFFEAS(en_xhdl[1]_lut_out, clk, rst, , , , , , );


--A1L23 is data4[0]~362
--operation mode is normal

A1L23 = en_xhdl[0] & (!en_xhdl[1]);


--cntfirst[0] is cntfirst[0]
--operation mode is normal

cntfirst[0]_lut_out = !cntfirst[0] & !last_over;
cntfirst[0] = DFFEAS(cntfirst[0]_lut_out, div_cnt[24], rst, , , , , , );


--cntsecond[0] is cntsecond[0]
--operation mode is normal

cntsecond[0]_lut_out = !cntsecond[0];
cntsecond[0] = DFFEAS(cntsecond[0]_lut_out, first_over, rst, , , , , , );


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

en_xhdl[2]_lut_out = !div_cnt[18] & (div_cnt[19]);
en_xhdl[2] = DFFEAS(en_xhdl[2]_lut_out, clk, rst, , , , , , );


--A1L24 is data4[0]~363
--operation mode is normal

A1L24 = cntsecond[0] & (!en_xhdl[3] & !en_xhdl[2]);


--A1L25 is data4[0]~364
--operation mode is normal

A1L25 = en_xhdl[1] & en_xhdl[0] # !en_xhdl[1] & !en_xhdl[0] & !en_xhdl[3] & !en_xhdl[2];


--A1L26 is data4[0]~365
--operation mode is normal

A1L26 = en_xhdl[0] & (en_xhdl[1] # !en_xhdl[2]);


--A1L27 is data4[0]~366
--operation mode is normal

A1L27 = A1L25 & (A1L26 & (A1L24) # !A1L26 & cntfirst[0]) # !A1L25 & (A1L26);


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

cntthird[1]_lut_out = cntthird[1] & (!cntthird[0]) # !cntthird[1] & cntthird[0] & (cntthird[2] # !cntthird[3]);
cntthird[1] = DFFEAS(cntthird[1]_lut_out, second_over, rst, , , , , , );


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

cntlast[1]_lut_out = cntlast[1] & (!cntlast[0]) # !cntlast[1] & cntlast[0] & (cntlast[2] # !cntlast[3]);
cntlast[1] = DFFEAS(cntlast[1]_lut_out, third_over, rst, , , , , , );


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

cntfirst[1]_lut_out = !A1L120 & (cntfirst[0] $ cntfirst[1]);
cntfirst[1] = DFFEAS(cntfirst[1]_lut_out, div_cnt[24], rst, , , , , , );


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

cntsecond[1]_lut_out = cntsecond[1] & (!cntsecond[0]) # !cntsecond[1] & cntsecond[0] & (cntsecond[2] # !cntsecond[3]);
cntsecond[1] = DFFEAS(cntsecond[1]_lut_out, first_over, rst, , , , , , );


--A1L30 is data4[1]~367
--operation mode is normal

A1L30 = en_xhdl[3] # en_xhdl[2] # cntsecond[1];


--A1L31 is data4[1]~368
--operation mode is normal

A1L31 = A1L25 & (A1L26 & (A1L30) # !A1L26 & cntfirst[1]) # !A1L25 & (!A1L26);


--cntthird[2] is cntthird[2]
--operation mode is normal

cntthird[2]_lut_out = cntthird[2] $ (cntthird[0] & cntthird[1]);
cntthird[2] = DFFEAS(cntthird[2]_lut_out, second_over, rst, , , , , , );


--cntlast[2] is cntlast[2]
--operation mode is normal

cntlast[2]_lut_out = cntlast[2] $ (cntlast[0] & cntlast[1]);
cntlast[2] = DFFEAS(cntlast[2]_lut_out, third_over, rst, , , , , , );


--cntfirst[2] is cntfirst[2]
--operation mode is normal

cntfirst[2]_lut_out = !A1L120 & (cntfirst[2] $ (cntfirst[0] & cntfirst[1]));
cntfirst[2] = DFFEAS(cntfirst[2]_lut_out, div_cnt[24], rst, , , , , , );


--cntsecond[2] is cntsecond[2]
--operation mode is normal

cntsecond[2]_lut_out = cntsecond[2] $ (cntsecond[0] & cntsecond[1]);
cntsecond[2] = DFFEAS(cntsecond[2]_lut_out, first_over, rst, , , , , , );


--A1L34 is data4[2]~369
--operation mode is normal

A1L34 = cntsecond[2] & (!en_xhdl[3] & !en_xhdl[2]);


--A1L35 is data4[2]~370
--operation mode is normal

A1L35 = A1L25 & (A1L26 & (A1L34) # !A1L26 & cntfirst[2]) # !A1L25 & (A1L26);


--cntthird[3] is cntthird[3]
--operation mode is normal

cntthird[3]_lut_out = cntthird[3] & (cntthird[1] $ cntthird[2] # !cntthird[0]) # !cntthird[3] & cntthird[1] & cntthird[2] & cntthird[0];
cntthird[3] = DFFEAS(cntthird[3]_lut_out, second_over, rst, , , , , , );


--cntlast[3] is cntlast[3]
--operation mode is normal

cntlast[3]_lut_out = cntlast[3] & (cntlast[1] $ cntlast[2] # !cntlast[0]) # !cntlast[3] & cntlast[1] & cntlast[2] & cntlast[0];
cntlast[3] = DFFEAS(cntlast[3]_lut_out, third_over, rst, , , , , , );


--cntfirst[3] is cntfirst[3]
--operation mode is normal

cntfirst[3]_lut_out = !A1L120 & (cntfirst[3] $ (cntfirst[2] & A1L1));
cntfirst[3] = DFFEAS(cntfirst[3]_lut_out, div_cnt[24], rst, , , , , , );


--cntsecond[3] is cntsecond[3]
--operation mode is normal

cntsecond[3]_lut_out = cntsecond[3] & (cntsecond[1] $ cntsecond[2] # !cntsecond[0]) # !cntsecond[3] & cntsecond[1] & cntsecond[2] & cntsecond[0];
cntsecond[3] = DFFEAS(cntsecond[3]_lut_out, first_over, rst, , , , , , );


--A1L38 is data4[3]~371
--operation mode is normal

A1L38 = en_xhdl[3] # en_xhdl[2] # cntsecond[3];


--A1L39 is data4[3]~372
--operation mode is normal

A1L39 = A1L25 & (A1L26 & (A1L38) # !A1L26 & cntfirst[3]) # !A1L25 & (!A1L26);


--A1L113 is Mux~188
--operation mode is normal

A1L113 = A1L29 & (A1L41 # A1L33 $ A1L37) # !A1L29 & (A1L33 # A1L37 $ A1L41);


--A1L114 is Mux~189
--operation mode is normal

A1L114 = A1L29 & (A1L41 $ (A1L33 # !A1L37)) # !A1L29 & A1L33 & !A1L37 & !A1L41;


--A1L115 is Mux~190
--operation mode is normal

A1L115 = A1L33 & A1L29 & (!A1L41) # !A1L33 & (A1L37 & (!A1L41) # !A1L37 & A1L29);


--A1L116 is Mux~191
--operation mode is normal

A1L116 = A1L29 & (A1L33 $ !A1L37) # !A1L29 & (A1L33 & !A1L37 & A1L41 # !A1L33 & A1L37 & !A1L41);


--A1L117 is Mux~192
--operation mode is normal

A1L117 = A1L37 & A1L41 & (A1L33 # !A1L29) # !A1L37 & !A1L29 & A1L33 & !A1L41;


--A1L118 is Mux~193
--operation mode is normal

A1L118 = A1L33 & (A1L29 & (A1L41) # !A1L29 & A1L37) # !A1L33 & A1L37 & (A1L29 $ A1L41);


--A1L119 is Mux~194
--operation mode is normal

A1L119 = A1L37 & !A1L33 & (A1L29 $ !A1L41) # !A1L37 & A1L29 & (A1L33 $ !A1L41);


--second_over is second_over
--operation mode is normal

second_over_lut_out = cntsecond[0] & cntsecond[3] & !cntsecond[1] & !cntsecond[2];
second_over = DFFEAS(second_over_lut_out, first_over, rst, , , , , , );


--div_cnt[18] is div_cnt[18]
--operation mode is arithmetic

div_cnt[18]_carry_eqn = A1L87;
div_cnt[18]_lut_out = div_cnt[18] $ (!div_cnt[18]_carry_eqn);
div_cnt[18] = DFFEAS(div_cnt[18]_lut_out, clk, rst, , , , , , );

--A1L89 is div_cnt[18]~208
--operation mode is arithmetic

A1L89 = CARRY(div_cnt[18] & (!A1L87));


--div_cnt[19] is div_cnt[19]
--operation mode is arithmetic

div_cnt[19]_carry_eqn = A1L89;
div_cnt[19]_lut_out = div_cnt[19] $ (div_cnt[19]_carry_eqn);
div_cnt[19] = DFFEAS(div_cnt[19]_lut_out, clk, rst, , , , , , );

--A1L91 is div_cnt[19]~212
--operation mode is arithmetic

A1L91 = CARRY(!A1L89 # !div_cnt[19]);


--third_over is third_over
--operation mode is normal

third_over_lut_out = cntthird[0] & cntthird[3] & !cntthird[1] & !cntthird[2];
third_over = DFFEAS(third_over_lut_out, second_over, rst, , , , , , );


--last_over is last_over
--operation mode is normal

last_over_lut_out = cntlast[0] & cntlast[3] & !cntlast[1] & !cntlast[2];
last_over = DFFEAS(last_over_lut_out, third_over, rst, , , , , , );


--div_cnt[24] is div_cnt[24]
--operation mode is normal

div_cnt[24]_carry_eqn = A1L99;
div_cnt[24]_lut_out = div_cnt[24] $ (!div_cnt[24]_carry_eqn);
div_cnt[24] = DFFEAS(div_cnt[24]_lut_out, clk, rst, , , , , , );


--first_over is first_over
--operation mode is normal

first_over_lut_out = A1L120;
first_over = DFFEAS(first_over_lut_out, div_cnt[24], rst, , , , , , );


--A1L122 is rtl~93
--operation mode is normal

A1L122 = cntfirst[0] & (!cntfirst[1]);


--A1L120 is process1~0
--operation mode is normal

A1L120 = last_over # cntfirst[3] & A1L122 & !cntfirst[2];


--A1L1 is add~647
--operation mode is normal

A1L1 = cntfirst[0] & cntfirst[1];


--div_cnt[17] is div_cnt[17]
--operation mode is arithmetic

div_cnt[17]_carry_eqn = A1L85;
div_cnt[17]_lut_out = div_cnt[17] $ (div_cnt[17]_carry_eqn);
div_cnt[17] = DFFEAS(div_cnt[17]_lut_out, clk, rst, , , , , , );

--A1L87 is div_cnt[17]~220
--operation mode is arithmetic

A1L87 = CARRY(!A1L85 # !div_cnt[17]);


--div_cnt[23] is div_cnt[23]
--operation mode is arithmetic

div_cnt[23]_carry_eqn = A1L97;
div_cnt[23]_lut_out = div_cnt[23] $ (div_cnt[23]_carry_eqn);
div_cnt[23] = DFFEAS(div_cnt[23]_lut_out, clk, rst, , , , , , );

--A1L99 is div_cnt[23]~224
--operation mode is arithmetic

A1L99 = CARRY(!A1L97 # !div_cnt[23]);


--div_cnt[16] is div_cnt[16]
--operation mode is arithmetic

div_cnt[16]_carry_eqn = A1L83;
div_cnt[16]_lut_out = div_cnt[16] $ (!div_cnt[16]_carry_eqn);
div_cnt[16] = DFFEAS(div_cnt[16]_lut_out, clk, rst, , , , , , );

--A1L85 is div_cnt[16]~228
--operation mode is arithmetic

A1L85 = CARRY(div_cnt[16] & (!A1L83));


⌨️ 快捷键说明

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