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

📄 state_machine.map.eqn

📁 FPGA 开发板源码。芯片为Mars EP1C6F.VHDL语言。可实现一些基本的功能。如乘法器、加法器、多路选择器等。
💻 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.
--state[0] is state[0]
--operation mode is normal

state[0]_lut_out = state[0] $ (A1L81 & A1L82 & A1L83);
state[0] = DFFEAS(state[0]_lut_out, clk, rst, , , , , , );


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

state[1]_lut_out = state[1] $ (state[0] & A1L76);
state[1] = DFFEAS(state[1]_lut_out, clk, rst, , , , , , );


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

state[2]_lut_out = state[2] $ (state[1] & state[0] & A1L76);
state[2] = DFFEAS(state[2]_lut_out, clk, rst, , , , , , );


--A1L68 is Mux~286
--operation mode is normal

A1L68 = state[1] & state[0] & state[2] # !state[1] & (!state[2]);


--A1L69 is Mux~287
--operation mode is normal

A1L69 = state[1] & (state[0] # !state[2]) # !state[1] & state[0] & (!state[2]);


--A1L70 is Mux~288
--operation mode is normal

A1L70 = state[0] # state[2] & (!state[1]);


--A1L71 is Mux~289
--operation mode is normal

A1L71 = state[2] & (state[0] $ !state[1]) # !state[2] & state[0] & !state[1];


--A1L72 is Mux~290
--operation mode is normal

A1L72 = state[1] & (!state[2] & !state[0]);


--A1L73 is Mux~291
--operation mode is normal

A1L73 = state[1] $ !state[0] # !state[2];


--A1L74 is Mux~292
--operation mode is normal

A1L74 = !state[1] & (state[2] $ state[0]);


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

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

--A1L13 is cnt[0]~169
--operation mode is arithmetic

A1L13 = CARRY(cnt[0]);


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

cnt[1]_carry_eqn = A1L13;
cnt[1]_lut_out = cnt[1] $ (cnt[1]_carry_eqn);
cnt[1] = DFFEAS(cnt[1]_lut_out, clk, rst, , , , , , );

--A1L15 is cnt[1]~173
--operation mode is arithmetic

A1L15 = CARRY(!A1L13 # !cnt[1]);


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

cnt[2]_carry_eqn = A1L15;
cnt[2]_lut_out = cnt[2] $ (!cnt[2]_carry_eqn);
cnt[2] = DFFEAS(cnt[2]_lut_out, clk, rst, , , , , , );

--A1L17 is cnt[2]~177
--operation mode is arithmetic

A1L17 = CARRY(cnt[2] & (!A1L15));


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

cnt[3]_carry_eqn = A1L17;
cnt[3]_lut_out = cnt[3] $ (cnt[3]_carry_eqn);
cnt[3] = DFFEAS(cnt[3]_lut_out, clk, rst, , , , , , );

--A1L19 is cnt[3]~181
--operation mode is arithmetic

A1L19 = CARRY(!A1L17 # !cnt[3]);


--A1L77 is rtl~191
--operation mode is normal

A1L77 = cnt[0] & cnt[1] & cnt[2] & cnt[3];


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

cnt[4]_carry_eqn = A1L19;
cnt[4]_lut_out = cnt[4] $ (!cnt[4]_carry_eqn);
cnt[4] = DFFEAS(cnt[4]_lut_out, clk, rst, , , , , , );

--A1L21 is cnt[4]~185
--operation mode is arithmetic

A1L21 = CARRY(cnt[4] & (!A1L19));


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

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

--A1L23 is cnt[5]~189
--operation mode is arithmetic

A1L23 = CARRY(!A1L21 # !cnt[5]);


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

cnt[6]_carry_eqn = A1L23;
cnt[6]_lut_out = cnt[6] $ (!cnt[6]_carry_eqn);
cnt[6] = DFFEAS(cnt[6]_lut_out, clk, rst, , , , , , );

--A1L25 is cnt[6]~193
--operation mode is arithmetic

A1L25 = CARRY(cnt[6] & (!A1L23));


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

cnt[7]_carry_eqn = A1L25;
cnt[7]_lut_out = cnt[7] $ (cnt[7]_carry_eqn);
cnt[7] = DFFEAS(cnt[7]_lut_out, clk, rst, , , , , , );

--A1L27 is cnt[7]~197
--operation mode is arithmetic

A1L27 = CARRY(!A1L25 # !cnt[7]);


--A1L78 is rtl~192
--operation mode is normal

A1L78 = cnt[4] & cnt[5] & cnt[6] & cnt[7];


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

cnt[8]_carry_eqn = A1L27;
cnt[8]_lut_out = cnt[8] $ (!cnt[8]_carry_eqn);
cnt[8] = DFFEAS(cnt[8]_lut_out, clk, rst, , , , , , );

--A1L29 is cnt[8]~201
--operation mode is arithmetic

A1L29 = CARRY(cnt[8] & (!A1L27));


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

cnt[9]_carry_eqn = A1L29;
cnt[9]_lut_out = cnt[9] $ (cnt[9]_carry_eqn);
cnt[9] = DFFEAS(cnt[9]_lut_out, clk, rst, , , , , , );

--A1L31 is cnt[9]~205
--operation mode is arithmetic

A1L31 = CARRY(!A1L29 # !cnt[9]);


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

cnt[10]_carry_eqn = A1L31;
cnt[10]_lut_out = cnt[10] $ (!cnt[10]_carry_eqn);
cnt[10] = DFFEAS(cnt[10]_lut_out, clk, rst, , , , , , );

--A1L33 is cnt[10]~209
--operation mode is arithmetic

A1L33 = CARRY(cnt[10] & (!A1L31));


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

cnt[11]_carry_eqn = A1L33;
cnt[11]_lut_out = cnt[11] $ (cnt[11]_carry_eqn);
cnt[11] = DFFEAS(cnt[11]_lut_out, clk, rst, , , , , , );

--A1L35 is cnt[11]~213
--operation mode is arithmetic

A1L35 = CARRY(!A1L33 # !cnt[11]);


--A1L79 is rtl~193
--operation mode is normal

A1L79 = cnt[8] & cnt[9] & cnt[10] & cnt[11];


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

cnt[12]_carry_eqn = A1L35;
cnt[12]_lut_out = cnt[12] $ (!cnt[12]_carry_eqn);
cnt[12] = DFFEAS(cnt[12]_lut_out, clk, rst, , , , , , );

--A1L37 is cnt[12]~217
--operation mode is arithmetic

A1L37 = CARRY(cnt[12] & (!A1L35));


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

cnt[13]_carry_eqn = A1L37;
cnt[13]_lut_out = cnt[13] $ (cnt[13]_carry_eqn);
cnt[13] = DFFEAS(cnt[13]_lut_out, clk, rst, , , , , , );

--A1L39 is cnt[13]~221
--operation mode is arithmetic

A1L39 = CARRY(!A1L37 # !cnt[13]);


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

cnt[14]_carry_eqn = A1L39;
cnt[14]_lut_out = cnt[14] $ (!cnt[14]_carry_eqn);
cnt[14] = DFFEAS(cnt[14]_lut_out, clk, rst, , , , , , );

--A1L41 is cnt[14]~225
--operation mode is arithmetic

A1L41 = CARRY(cnt[14] & (!A1L39));


--cnt[15] is cnt[15]
--operation mode is arithmetic

cnt[15]_carry_eqn = A1L41;
cnt[15]_lut_out = cnt[15] $ (cnt[15]_carry_eqn);
cnt[15] = DFFEAS(cnt[15]_lut_out, clk, rst, , , , , , );

--A1L43 is cnt[15]~229
--operation mode is arithmetic

A1L43 = CARRY(!A1L41 # !cnt[15]);


--A1L80 is rtl~194
--operation mode is normal

A1L80 = cnt[12] & cnt[13] & cnt[14] & cnt[15];


--A1L81 is rtl~195
--operation mode is normal

A1L81 = A1L77 & A1L78 & A1L79 & A1L80;


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

cnt[16]_carry_eqn = A1L43;
cnt[16]_lut_out = cnt[16] $ (!cnt[16]_carry_eqn);
cnt[16] = DFFEAS(cnt[16]_lut_out, clk, rst, , , , , , );

--A1L45 is cnt[16]~233
--operation mode is arithmetic

A1L45 = CARRY(cnt[16] & (!A1L43));


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

cnt[17]_carry_eqn = A1L45;
cnt[17]_lut_out = cnt[17] $ (cnt[17]_carry_eqn);
cnt[17] = DFFEAS(cnt[17]_lut_out, clk, rst, , , , , , );

--A1L47 is cnt[17]~237
--operation mode is arithmetic

A1L47 = CARRY(!A1L45 # !cnt[17]);


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

cnt[18]_carry_eqn = A1L47;
cnt[18]_lut_out = cnt[18] $ (!cnt[18]_carry_eqn);
cnt[18] = DFFEAS(cnt[18]_lut_out, clk, rst, , , , , , );

--A1L49 is cnt[18]~241
--operation mode is arithmetic

A1L49 = CARRY(cnt[18] & (!A1L47));


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

cnt[19]_carry_eqn = A1L49;
cnt[19]_lut_out = cnt[19] $ (cnt[19]_carry_eqn);
cnt[19] = DFFEAS(cnt[19]_lut_out, clk, rst, , , , , , );

--A1L51 is cnt[19]~245
--operation mode is arithmetic

A1L51 = CARRY(!A1L49 # !cnt[19]);


--A1L82 is rtl~196
--operation mode is normal

A1L82 = cnt[16] & cnt[17] & cnt[18] & cnt[19];


--cnt[20] is cnt[20]
--operation mode is arithmetic

cnt[20]_carry_eqn = A1L51;
cnt[20]_lut_out = cnt[20] $ (!cnt[20]_carry_eqn);
cnt[20] = DFFEAS(cnt[20]_lut_out, clk, rst, , , , , , );

--A1L53 is cnt[20]~249
--operation mode is arithmetic

A1L53 = CARRY(cnt[20] & (!A1L51));


--cnt[21] is cnt[21]
--operation mode is arithmetic

cnt[21]_carry_eqn = A1L53;
cnt[21]_lut_out = cnt[21] $ (cnt[21]_carry_eqn);
cnt[21] = DFFEAS(cnt[21]_lut_out, clk, rst, , , , , , );

--A1L55 is cnt[21]~253
--operation mode is arithmetic

A1L55 = CARRY(!A1L53 # !cnt[21]);


--cnt[22] is cnt[22]
--operation mode is arithmetic

cnt[22]_carry_eqn = A1L55;
cnt[22]_lut_out = cnt[22] $ (!cnt[22]_carry_eqn);
cnt[22] = DFFEAS(cnt[22]_lut_out, clk, rst, , , , , , );

--A1L57 is cnt[22]~257
--operation mode is arithmetic

A1L57 = CARRY(cnt[22] & (!A1L55));


--cnt[23] is cnt[23]
--operation mode is normal

cnt[23]_carry_eqn = A1L57;
cnt[23]_lut_out = cnt[23] $ (cnt[23]_carry_eqn);
cnt[23] = DFFEAS(cnt[23]_lut_out, clk, rst, , , , , , );


--A1L83 is rtl~197
--operation mode is normal

A1L83 = cnt[20] & cnt[21] & cnt[22] & cnt[23];


--A1L76 is rtl~0
--operation mode is normal

A1L76 = A1L81 & A1L82 & A1L83;


--clk is clk
--operation mode is input

clk = INPUT();


--rst is rst
--operation mode is input

rst = INPUT();


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

c[0] = OUTPUT(VCC);


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

c[1] = OUTPUT(A1L68);


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

c[2] = OUTPUT(A1L69);


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

c[3] = OUTPUT(A1L70);


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

c[4] = OUTPUT(A1L71);


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

c[5] = OUTPUT(A1L72);


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

c[6] = OUTPUT(!A1L73);


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

c[7] = OUTPUT(A1L74);


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

en[0] = OUTPUT(GND);


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

en[1] = OUTPUT(GND);


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

en[2] = OUTPUT(GND);


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

en[3] = OUTPUT(GND);


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

en[4] = OUTPUT(GND);


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

en[5] = OUTPUT(GND);


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

en[6] = OUTPUT(GND);


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

en[7] = OUTPUT(GND);


⌨️ 快捷键说明

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