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

📄 traffic.fit.eqn

📁 模拟交通灯 verilog CPLD EPM1270 源代码
💻 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.
--first[0] is first[0] at LC_X11_Y7_N9
--operation mode is normal

first[0]_lut_out = A1L79 & !first[0] # !A1L79 & (A1L421);
first[0] = DFFEAS(first[0]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , first[0], , , A1L89);


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

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


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

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


--second[0] is second[0] at LC_X11_Y7_N7
--operation mode is normal

second[0]_lut_out = A1L041 & (second[0]) # !A1L041 & (A1L931 & (!second[0]) # !A1L931 & state[1]);
second[0] = DFFEAS(second[0]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , , , , );


--A1L4 is data4[0]~160 at LC_X12_Y7_N2
--operation mode is normal

A1L4 = en_xhdl[0] & (!second[0]) # !en_xhdl[0] & (en_xhdl[1] & (!second[0]) # !en_xhdl[1] & first[0]);


--first[1] is first[1] at LC_X11_Y7_N6
--operation mode is normal

first[1]_lut_out = !A1L89 & A1L79 & (first[1] $ !first[0]);
first[1] = DFFEAS(first[1]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , , , , );


--second[1] is second[1] at LC_X11_Y6_N0
--operation mode is normal

second[1]_lut_out = A1L041 & second[1] # !A1L041 & (A1L521 # !A1L631);
second[1] = DFFEAS(second[1]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , , , , );


--A1L5 is data4[1]~161 at LC_X12_Y7_N3
--operation mode is normal

A1L5 = en_xhdl[0] & (!second[1]) # !en_xhdl[0] & (en_xhdl[1] & (!second[1]) # !en_xhdl[1] & first[1]);


--second[2] is second[2] at LC_X11_Y7_N2
--operation mode is normal

second[2]_lut_out = A1L041 & second[2] # !A1L041 & A1L931 & (second[2] $ A1L031);
second[2] = DFFEAS(second[2]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , , , , );


--first[2] is first[2] at LC_X11_Y7_N1
--operation mode is normal

first[2]_lut_out = A1L79 & !A1L1 # !A1L79 & (!A1L621);
first[2] = DFFEAS(first[2]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , first[2], , , A1L89);


--A1L6 is data4[2]~162 at LC_X12_Y7_N0
--operation mode is normal

A1L6 = en_xhdl[0] & (second[2]) # !en_xhdl[0] & (en_xhdl[1] & (second[2]) # !en_xhdl[1] & first[2]);


--second[3] is second[3] at LC_X11_Y7_N0
--operation mode is normal

second[3]_lut_out = A1L041 & second[3] # !A1L041 & A1L931 & (second[3] $ A1L131);
second[3] = DFFEAS(second[3]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , , , , );


--first[3] is first[3] at LC_X11_Y7_N4
--operation mode is normal

first[3]_lut_out = A1L79 & !A1L2 # !A1L79 & (A1L721);
first[3] = DFFEAS(first[3]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , first[3], , , A1L89);


--A1L7 is data4[3]~163 at LC_X12_Y7_N6
--operation mode is normal

A1L7 = en_xhdl[0] & (second[3]) # !en_xhdl[0] & (en_xhdl[1] & (second[3]) # !en_xhdl[1] & first[3]);


--A1L411 is Mux~462 at LC_X12_Y7_N7
--operation mode is normal

A1L411 = A1L4 & (A1L7 # A1L6 $ A1L5) # !A1L4 & (A1L5 # A1L6 $ A1L7);


--A1L511 is Mux~463 at LC_X12_Y7_N1
--operation mode is normal

A1L511 = A1L4 & (A1L7 $ (A1L5 # !A1L6)) # !A1L4 & !A1L6 & !A1L7 & A1L5;


--A1L611 is Mux~464 at LC_X12_Y10_N2
--operation mode is normal

A1L611 = A1L5 & (A1L4 & !A1L7) # !A1L5 & (A1L6 & (!A1L7) # !A1L6 & A1L4);


--A1L711 is Mux~465 at LC_X13_Y10_N2
--operation mode is normal

A1L711 = A1L4 & (A1L6 $ (!A1L5)) # !A1L4 & (A1L6 & !A1L7 & !A1L5 # !A1L6 & A1L7 & A1L5);


--A1L811 is Mux~466 at LC_X12_Y7_N8
--operation mode is normal

A1L811 = A1L7 & A1L6 & (A1L5 # !A1L4) # !A1L7 & !A1L4 & !A1L6 & A1L5;


--A1L911 is Mux~467 at LC_X12_Y7_N4
--operation mode is normal

A1L911 = A1L7 & (A1L4 & (A1L5) # !A1L4 & A1L6) # !A1L7 & A1L6 & (A1L4 $ A1L5);


--A1L021 is Mux~468 at LC_X12_Y7_N9
--operation mode is normal

A1L021 = A1L7 & A1L4 & (A1L6 $ A1L5) # !A1L7 & !A1L5 & (A1L4 $ A1L6);


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

state[1]_lut_out = state[1] $ (!A1L821 & !state[0] & !A1L921);
state[1] = DFFEAS(state[1]_lut_out, GLOBAL(div_cnt[24]), GLOBAL(rst), , , , , , );


--A1L121 is Mux~469 at LC_X10_Y7_N8
--operation mode is normal

A1L121 = state[1] # !state[0];


--A1L221 is Mux~470 at LC_X9_Y7_N8
--operation mode is normal

A1L221 = state[0] # !state[1];


--A1L321 is Mux~471 at LC_X9_Y7_N2
--operation mode is normal

A1L321 = state[0] # state[1];


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

div_cnt[24]_carry_eqn = (!A1L87 & A1L38) # (A1L87 & A1L48);
div_cnt[24]_lut_out = div_cnt[24] $ !div_cnt[24]_carry_eqn;
div_cnt[24] = DFFEAS(div_cnt[24]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );


--A1L421 is Mux~472 at LC_X11_Y6_N2
--operation mode is normal

A1L421 = !state[0] # !state[1];


--A1L821 is reduce_or~0 at LC_X11_Y7_N8
--operation mode is normal

A1L821 = first[1] # first[2] # first[3] # first[0];


--A1L921 is reduce_or~1 at LC_X11_Y7_N5
--operation mode is normal

A1L921 = second[2] # second[3] # !second[1] # !second[0];


--A1L79 is first[3]~386 at LC_X10_Y7_N6
--operation mode is normal

A1L79 = state[0] & !state[1] & (!A1L921) # !state[0] & (A1L821);


--A1L89 is first[3]~387 at LC_X11_Y7_N3
--operation mode is normal

A1L89 = !state[1] & !A1L921 & !A1L821;


--div_cnt[15] is div_cnt[15] at LC_X13_Y3_N8
--operation mode is arithmetic

div_cnt[15]_carry_eqn = (!A1L05 & A1L85) # (A1L05 & A1L95);
div_cnt[15]_lut_out = div_cnt[15] $ (div_cnt[15]_carry_eqn);
div_cnt[15] = DFFEAS(div_cnt[15]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L16 is div_cnt[15]~180 at LC_X13_Y3_N8
--operation mode is arithmetic

A1L16_cout_0 = !A1L85 # !div_cnt[15];
A1L16 = CARRY(A1L16_cout_0);

--A1L26 is div_cnt[15]~180COUT1_320 at LC_X13_Y3_N8
--operation mode is arithmetic

A1L26_cout_1 = !A1L95 # !div_cnt[15];
A1L26 = CARRY(A1L26_cout_1);


--A1L931 is second[3]~1005 at LC_X11_Y6_N8
--operation mode is normal

A1L931 = state[0] & !state[1] & (A1L821 # A1L921) # !state[0] & (A1L921);


--A1L041 is second[3]~1006 at LC_X10_Y7_N5
--operation mode is normal

A1L041 = A1L821 & (!state[1] & !A1L921 # !state[0]);


--A1L631 is second[1]~1008 at LC_X11_Y6_N9
--operation mode is normal

A1L631 = second[0] $ !second[1] # !A1L931;


--A1L521 is Mux~473 at LC_X11_Y6_N5
--operation mode is normal

A1L521 = state[1] & (state[0] # !A1L921);


--A1L031 is reduce_or~58 at LC_X11_Y6_N6
--operation mode is normal

A1L031 = second[1] & (second[0]);


--A1L621 is Mux~474 at LC_X10_Y7_N2
--operation mode is normal

A1L621 = state[0] # A1L921 # !state[1];


--A1L1 is add~485 at LC_X10_Y7_N4
--operation mode is normal

A1L1 = first[2] $ (first[1] # first[0]);


--A1L131 is reduce_or~59 at LC_X11_Y6_N7
--operation mode is normal

A1L131 = !second[2] & second[1] & second[0];


--A1L721 is Mux~475 at LC_X10_Y7_N0
--operation mode is normal

A1L721 = !state[0] & A1L921 # !state[1];


--A1L2 is add~486 at LC_X10_Y7_N1
--operation mode is normal

A1L2 = first[3] $ (first[1] # first[0] # first[2]);


--A1L441 is state[1]~254 at LC_X10_Y7_N9
--operation mode is normal

state[0]_qfbk = state[0];
A1L441 = state[1] & (state[0]_qfbk # !A1L821 & !A1L921) # !state[1] & !A1L821 & (!A1L921);

--state[0] is state[0] at LC_X10_Y7_N9
--operation mode is normal

state[0] = DFFEAS(A1L441, GLOBAL(div_cnt[24]), GLOBAL(rst), , A1L441, state[1], , , VCC);


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

div_cnt[23]_carry_eqn = (!A1L87 & A1L08) # (A1L87 & A1L18);
div_cnt[23]_lut_out = div_cnt[23] $ (div_cnt[23]_carry_eqn);
div_cnt[23] = DFFEAS(div_cnt[23]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L38 is div_cnt[23]~184 at LC_X14_Y3_N6
--operation mode is arithmetic

A1L38_cout_0 = !A1L08 # !div_cnt[23];
A1L38 = CARRY(A1L38_cout_0);

--A1L48 is div_cnt[23]~184COUT1_332 at LC_X14_Y3_N6
--operation mode is arithmetic

A1L48_cout_1 = !A1L18 # !div_cnt[23];
A1L48 = CARRY(A1L48_cout_1);


--div_cnt[14] is div_cnt[14] at LC_X13_Y3_N7
--operation mode is arithmetic

div_cnt[14]_carry_eqn = (!A1L05 & A1L55) # (A1L05 & A1L65);
div_cnt[14]_lut_out = div_cnt[14] $ !div_cnt[14]_carry_eqn;
div_cnt[14] = DFFEAS(div_cnt[14]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L85 is div_cnt[14]~188 at LC_X13_Y3_N7
--operation mode is arithmetic

A1L85_cout_0 = div_cnt[14] & !A1L55;
A1L85 = CARRY(A1L85_cout_0);

--A1L95 is div_cnt[14]~188COUT1_318 at LC_X13_Y3_N7
--operation mode is arithmetic

A1L95_cout_1 = div_cnt[14] & !A1L65;
A1L95 = CARRY(A1L95_cout_1);


--div_cnt[22] is div_cnt[22] at LC_X14_Y3_N5
--operation mode is arithmetic

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

--A1L08 is div_cnt[22]~192 at LC_X14_Y3_N5
--operation mode is arithmetic

A1L08_cout_0 = div_cnt[22] & (!A1L87);
A1L08 = CARRY(A1L08_cout_0);

--A1L18 is div_cnt[22]~192COUT1_330 at LC_X14_Y3_N5
--operation mode is arithmetic

A1L18_cout_1 = div_cnt[22] & (!A1L87);
A1L18 = CARRY(A1L18_cout_1);


--div_cnt[13] is div_cnt[13] at LC_X13_Y3_N6
--operation mode is arithmetic

div_cnt[13]_carry_eqn = (!A1L05 & A1L25) # (A1L05 & A1L35);
div_cnt[13]_lut_out = div_cnt[13] $ (div_cnt[13]_carry_eqn);
div_cnt[13] = DFFEAS(div_cnt[13]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L55 is div_cnt[13]~196 at LC_X13_Y3_N6
--operation mode is arithmetic

A1L55_cout_0 = !A1L25 # !div_cnt[13];
A1L55 = CARRY(A1L55_cout_0);

--A1L65 is div_cnt[13]~196COUT1_316 at LC_X13_Y3_N6
--operation mode is arithmetic

A1L65_cout_1 = !A1L35 # !div_cnt[13];
A1L65 = CARRY(A1L65_cout_1);


--div_cnt[21] is div_cnt[21] at LC_X14_Y3_N4
--operation mode is arithmetic

div_cnt[21]_carry_eqn = (!A1L46 & A1L57) # (A1L46 & A1L67);
div_cnt[21]_lut_out = div_cnt[21] $ (div_cnt[21]_carry_eqn);
div_cnt[21] = DFFEAS(div_cnt[21]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L87 is div_cnt[21]~200 at LC_X14_Y3_N4
--operation mode is arithmetic

A1L87 = CARRY(!A1L67 # !div_cnt[21]);


--div_cnt[12] is div_cnt[12] at LC_X13_Y3_N5
--operation mode is arithmetic

div_cnt[12]_carry_eqn = A1L05;
div_cnt[12]_lut_out = div_cnt[12] $ (!div_cnt[12]_carry_eqn);
div_cnt[12] = DFFEAS(div_cnt[12]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L25 is div_cnt[12]~204 at LC_X13_Y3_N5
--operation mode is arithmetic

A1L25_cout_0 = div_cnt[12] & (!A1L05);
A1L25 = CARRY(A1L25_cout_0);

--A1L35 is div_cnt[12]~204COUT1_314 at LC_X13_Y3_N5
--operation mode is arithmetic

A1L35_cout_1 = div_cnt[12] & (!A1L05);
A1L35 = CARRY(A1L35_cout_1);


--div_cnt[20] is div_cnt[20] at LC_X14_Y3_N3
--operation mode is arithmetic

div_cnt[20]_carry_eqn = (!A1L46 & A1L27) # (A1L46 & A1L37);
div_cnt[20]_lut_out = div_cnt[20] $ (!div_cnt[20]_carry_eqn);
div_cnt[20] = DFFEAS(div_cnt[20]_lut_out, GLOBAL(clk), GLOBAL(rst), , , , , , );

--A1L57 is div_cnt[20]~208 at LC_X14_Y3_N3
--operation mode is arithmetic

A1L57_cout_0 = div_cnt[20] & (!A1L27);
A1L57 = CARRY(A1L57_cout_0);

--A1L67 is div_cnt[20]~208COUT1_328 at LC_X14_Y3_N3
--operation mode is arithmetic

A1L67_cout_1 = div_cnt[20] & (!A1L37);
A1L67 = CARRY(A1L67_cout_1);

⌨️ 快捷键说明

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