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

📄 segment7.map.eqn

📁 7段数码管译码器,用VHDL在FPGA2000上显示
💻 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.
--A1L121Q is TEMP[0]~273
A1L121Q = DFFEAS(A1L321, count[24], !key3,  ,  ,  ,  ,  ,  );


--A1L221 is TEMP[0]~275
A1L221 = key3 & (A1L121Q $ A1L021) # !key3 & !sw17;


--A1L421Q is TEMP[1]~276
A1L421Q = DFFEAS(A1L621, count[24], !key3,  ,  ,  ,  ,  ,  );


--A1L521 is TEMP[1]~277
A1L521 = key3 & (A1L021 $ A1L421Q) # !key3 & !sw17;


--A1L721Q is TEMP[2]~278
A1L721Q = DFFEAS(A1L921, count[24], !key3,  ,  ,  ,  ,  ,  );


--A1L821 is TEMP[2]~279
A1L821 = key3 & (A1L021 $ A1L721Q) # !key3 & !sw17;


--A1L031Q is TEMP[3]~280
A1L031Q = DFFEAS(A1L231, count[24], !key3,  ,  ,  ,  ,  ,  );


--A1L131 is TEMP[3]~281
A1L131 = key3 & (A1L021 $ A1L031Q) # !key3 & !sw17;


--A1L601 is Mux~165
A1L601 = A1L221 & !A1L821 & (A1L521 $ !A1L131) # !A1L221 & A1L821 & (A1L521 $ !A1L131);


--A1L701 is Mux~166
A1L701 = A1L821 & (A1L221 & (A1L521 $ !A1L131) # !A1L221 & A1L521 & !A1L131);


--A1L801 is Mux~167
A1L801 = !A1L221 & (A1L521 & !A1L821 & !A1L131 # !A1L521 & A1L821 & A1L131);


--A1L901 is Mux~168
A1L901 = A1L221 & (A1L521 & (A1L821 $ A1L131) # !A1L521 & !A1L821 & !A1L131) # !A1L221 & A1L821 & (A1L521 $ !A1L131);


--A1L011 is Mux~169
A1L011 = A1L221 # A1L821 & (A1L521 $ !A1L131);


--A1L111 is Mux~170
A1L111 = A1L521 & (A1L221 & (!A1L131 # !A1L821) # !A1L221 & !A1L821 & !A1L131) # !A1L521 & (A1L821 & (A1L131) # !A1L821 & A1L221 & !A1L131);


--A1L211 is Mux~171
A1L211 = A1L821 & (A1L131 # !A1L521 # !A1L221) # !A1L821 & (A1L521 $ A1L131);


--A1L311 is Mux~172
A1L311 = !A1L521 & !A1L821 # !A1L131;


--A1L2 is add~371
A1L2 = CARRY(!sw17);


--A1L3 is add~372
A1L3 = sw17 & (A1L221 & A1L2 & VCC # !A1L221 & !A1L2) # !sw17 & (A1L221 & !A1L2 # !A1L221 & (A1L2 # GND));

--A1L4 is add~373
A1L4 = CARRY(sw17 & !A1L221 & !A1L2 # !sw17 & (!A1L2 # !A1L221));


--A1L321 is TEMP[0]~282
A1L321 = A1L021 $ A1L3;


--count[24] is count[24]
count[24] = DFFEAS(A1L68, clk,  ,  ,  ,  ,  ,  ,  );


--A1L021 is TEMP[0]~37
A1L021 = key3 & (A1L021) # !key3 & !sw17;


--A1L5 is add~374
A1L5 = (sw17 $ A1L521 $ A1L4) # GND;

--A1L6 is add~375
A1L6 = CARRY(sw17 & A1L521 & !A1L4 # !sw17 & (A1L521 # !A1L4));


--A1L621 is TEMP[1]~283
A1L621 = A1L021 $ A1L5;


--A1L7 is add~376
A1L7 = sw17 & (A1L821 & !A1L6 # !A1L821 & (A1L6 # GND)) # !sw17 & (A1L821 & A1L6 & VCC # !A1L821 & !A1L6);

--A1L8 is add~377
A1L8 = CARRY(sw17 & (!A1L6 # !A1L821) # !sw17 & !A1L821 & !A1L6);


--A1L921 is TEMP[2]~284
A1L921 = A1L021 $ A1L7;


--A1L9 is add~378
A1L9 = sw17 $ A1L131 $ A1L8;


--A1L231 is TEMP[3]~285
A1L231 = A1L9 $ A1L021;


--count[23] is count[23]
count[23] = DFFEAS(A1L38, clk,  ,  ,  ,  ,  ,  ,  );


--count[22] is count[22]
count[22] = DFFEAS(A1L08, clk,  ,  ,  ,  ,  ,  ,  );


--count[21] is count[21]
count[21] = DFFEAS(A1L77, clk,  ,  ,  ,  ,  ,  ,  );


--count[20] is count[20]
count[20] = DFFEAS(A1L47, clk,  ,  ,  ,  ,  ,  ,  );


--count[19] is count[19]
count[19] = DFFEAS(A1L17, clk,  ,  ,  ,  ,  ,  ,  );


--count[18] is count[18]
count[18] = DFFEAS(A1L86, clk,  ,  ,  ,  ,  ,  ,  );


--count[17] is count[17]
count[17] = DFFEAS(A1L56, clk,  ,  ,  ,  ,  ,  ,  );


--count[16] is count[16]
count[16] = DFFEAS(A1L26, clk,  ,  ,  ,  ,  ,  ,  );


--count[15] is count[15]
count[15] = DFFEAS(A1L95, clk,  ,  ,  ,  ,  ,  ,  );


--count[14] is count[14]
count[14] = DFFEAS(A1L65, clk,  ,  ,  ,  ,  ,  ,  );


--count[13] is count[13]
count[13] = DFFEAS(A1L35, clk,  ,  ,  ,  ,  ,  ,  );


--count[12] is count[12]
count[12] = DFFEAS(A1L05, clk,  ,  ,  ,  ,  ,  ,  );


--count[11] is count[11]
count[11] = DFFEAS(A1L74, clk,  ,  ,  ,  ,  ,  ,  );


--count[10] is count[10]
count[10] = DFFEAS(A1L44, clk,  ,  ,  ,  ,  ,  ,  );


--count[9] is count[9]
count[9] = DFFEAS(A1L14, clk,  ,  ,  ,  ,  ,  ,  );


--count[8] is count[8]
count[8] = DFFEAS(A1L83, clk,  ,  ,  ,  ,  ,  ,  );


--count[7] is count[7]
count[7] = DFFEAS(A1L53, clk,  ,  ,  ,  ,  ,  ,  );


--count[6] is count[6]
count[6] = DFFEAS(A1L23, clk,  ,  ,  ,  ,  ,  ,  );


--count[5] is count[5]
count[5] = DFFEAS(A1L92, clk,  ,  ,  ,  ,  ,  ,  );


--count[4] is count[4]
count[4] = DFFEAS(A1L62, clk,  ,  ,  ,  ,  ,  ,  );


--count[3] is count[3]
count[3] = DFFEAS(A1L32, clk,  ,  ,  ,  ,  ,  ,  );


--count[2] is count[2]
count[2] = DFFEAS(A1L02, clk,  ,  ,  ,  ,  ,  ,  );


--count[1] is count[1]
count[1] = DFFEAS(A1L71, clk,  ,  ,  ,  ,  ,  ,  );


--count[0] is count[0]
count[0] = DFFEAS(A1L41, clk,  ,  ,  ,  ,  ,  ,  );


--A1L41 is count[0]~200
A1L41 = count[0] $ VCC;

--A1L51 is count[0]~201
A1L51 = CARRY(count[0]);


--A1L71 is count[1]~202
A1L71 = count[1] & !A1L51 # !count[1] & (A1L51 # GND);

--A1L81 is count[1]~203
A1L81 = CARRY(!A1L51 # !count[1]);


--A1L02 is count[2]~204
A1L02 = count[2] & (A1L81 $ GND) # !count[2] & !A1L81 & VCC;

--A1L12 is count[2]~205
A1L12 = CARRY(count[2] & !A1L81);


--A1L32 is count[3]~206
A1L32 = count[3] & !A1L12 # !count[3] & (A1L12 # GND);

--A1L42 is count[3]~207
A1L42 = CARRY(!A1L12 # !count[3]);


--A1L62 is count[4]~208
A1L62 = count[4] & (A1L42 $ GND) # !count[4] & !A1L42 & VCC;

--A1L72 is count[4]~209
A1L72 = CARRY(count[4] & !A1L42);


--A1L92 is count[5]~210
A1L92 = count[5] & !A1L72 # !count[5] & (A1L72 # GND);

--A1L03 is count[5]~211
A1L03 = CARRY(!A1L72 # !count[5]);


--A1L23 is count[6]~212
A1L23 = count[6] & (A1L03 $ GND) # !count[6] & !A1L03 & VCC;

--A1L33 is count[6]~213
A1L33 = CARRY(count[6] & !A1L03);


--A1L53 is count[7]~214
A1L53 = count[7] & !A1L33 # !count[7] & (A1L33 # GND);

--A1L63 is count[7]~215
A1L63 = CARRY(!A1L33 # !count[7]);


--A1L83 is count[8]~216
A1L83 = count[8] & (A1L63 $ GND) # !count[8] & !A1L63 & VCC;

--A1L93 is count[8]~217
A1L93 = CARRY(count[8] & !A1L63);


--A1L14 is count[9]~218
A1L14 = count[9] & !A1L93 # !count[9] & (A1L93 # GND);

--A1L24 is count[9]~219
A1L24 = CARRY(!A1L93 # !count[9]);


--A1L44 is count[10]~220
A1L44 = count[10] & (A1L24 $ GND) # !count[10] & !A1L24 & VCC;

--A1L54 is count[10]~221
A1L54 = CARRY(count[10] & !A1L24);


--A1L74 is count[11]~222
A1L74 = count[11] & !A1L54 # !count[11] & (A1L54 # GND);

--A1L84 is count[11]~223
A1L84 = CARRY(!A1L54 # !count[11]);


--A1L05 is count[12]~224
A1L05 = count[12] & (A1L84 $ GND) # !count[12] & !A1L84 & VCC;

--A1L15 is count[12]~225
A1L15 = CARRY(count[12] & !A1L84);


--A1L35 is count[13]~226
A1L35 = count[13] & !A1L15 # !count[13] & (A1L15 # GND);

--A1L45 is count[13]~227
A1L45 = CARRY(!A1L15 # !count[13]);


--A1L65 is count[14]~228
A1L65 = count[14] & (A1L45 $ GND) # !count[14] & !A1L45 & VCC;

--A1L75 is count[14]~229
A1L75 = CARRY(count[14] & !A1L45);


--A1L95 is count[15]~230
A1L95 = count[15] & !A1L75 # !count[15] & (A1L75 # GND);

--A1L06 is count[15]~231
A1L06 = CARRY(!A1L75 # !count[15]);


--A1L26 is count[16]~232
A1L26 = count[16] & (A1L06 $ GND) # !count[16] & !A1L06 & VCC;

--A1L36 is count[16]~233
A1L36 = CARRY(count[16] & !A1L06);


--A1L56 is count[17]~234
A1L56 = count[17] & !A1L36 # !count[17] & (A1L36 # GND);

--A1L66 is count[17]~235
A1L66 = CARRY(!A1L36 # !count[17]);


--A1L86 is count[18]~236
A1L86 = count[18] & (A1L66 $ GND) # !count[18] & !A1L66 & VCC;

--A1L96 is count[18]~237
A1L96 = CARRY(count[18] & !A1L66);


--A1L17 is count[19]~238
A1L17 = count[19] & !A1L96 # !count[19] & (A1L96 # GND);

--A1L27 is count[19]~239
A1L27 = CARRY(!A1L96 # !count[19]);


--A1L47 is count[20]~240
A1L47 = count[20] & (A1L27 $ GND) # !count[20] & !A1L27 & VCC;

--A1L57 is count[20]~241
A1L57 = CARRY(count[20] & !A1L27);


--A1L77 is count[21]~242
A1L77 = count[21] & !A1L57 # !count[21] & (A1L57 # GND);

--A1L87 is count[21]~243
A1L87 = CARRY(!A1L57 # !count[21]);


--A1L08 is count[22]~244
A1L08 = count[22] & (A1L87 $ GND) # !count[22] & !A1L87 & VCC;

--A1L18 is count[22]~245
A1L18 = CARRY(count[22] & !A1L87);


--A1L38 is count[23]~246
A1L38 = count[23] & !A1L18 # !count[23] & (A1L18 # GND);

--A1L48 is count[23]~247
A1L48 = CARRY(!A1L18 # !count[23]);


--A1L68 is count[24]~248
A1L68 = count[24] $ !A1L48;


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

sw[0] = INPUT();


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

sw[1] = INPUT();


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

sw[2] = INPUT();


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

sw[3] = INPUT();


--key3 is key3
--operation mode is input

key3 = INPUT();


--sw17 is sw17
--operation mode is input

sw17 = INPUT();


--clk is clk
--operation mode is input

clk = INPUT();


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

hex0[0] = OUTPUT(A1L601);


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

hex0[1] = OUTPUT(A1L701);


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

hex0[2] = OUTPUT(A1L801);


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

hex0[3] = OUTPUT(A1L901);


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

hex0[4] = OUTPUT(A1L011);


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

hex0[5] = OUTPUT(A1L111);


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

hex0[6] = OUTPUT(!A1L211);


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

hex1[0] = OUTPUT(!A1L311);


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

hex1[1] = OUTPUT(GND);


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

hex1[2] = OUTPUT(GND);


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

hex1[3] = OUTPUT(!A1L311);


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

hex1[4] = OUTPUT(!A1L311);


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

hex1[5] = OUTPUT(!A1L311);


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

hex1[6] = OUTPUT(VCC);


--led17 is led17
--operation mode is output

led17 = OUTPUT(sw17);


⌨️ 快捷键说明

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