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

📄 adc.fit.eqn

📁 通过VERILOG HDL语言使用CPLD连接PS2键盘.
💻 EQN
📖 第 1 页 / 共 3 页
字号:
-- 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.
--counter[0] is counter[0] at LC59
counter[0]_p1_out = counter[11] & !counter[10] & counter[9] & counter[8] & counter[7] & !counter[6] & counter[3] & !counter[2] & !counter[1] & counter[5] & counter[4] & !counter[0];
counter[0]_or_out = counter[0]_p1_out;
counter[0]_reg_input = !counter[0]_or_out;
counter[0] = TFFE(counter[0]_reg_input, GLOBAL(clk), , , );


--C1_dffs[1] is lpm_counter:count1_rtl_0|dffs[1] at LC95
C1_dffs[1]_p1_out = C1_dffs[4] & C1_dffs[3] & C1_dffs[2] & C1_dffs[1];
C1_dffs[1]_or_out = C1_dffs[1]_p1_out # C1_dffs[0];
C1_dffs[1]_reg_input = C1_dffs[1]_or_out;
C1_dffs[1] = TFFE(C1_dffs[1]_reg_input, GLOBAL(clk), , , );


--A1L511Q is state1~8 at LC73
A1L511Q_p1_out = !A1L411Q & A1L511Q;
A1L511Q_p2_out = A1L411Q & !A1L511Q & !biaozhi;
A1L511Q_or_out = A1L511Q_p1_out # A1L511Q_p2_out;
A1L511Q_reg_input = A1L511Q_or_out;
A1L511Q = DFFE(A1L511Q_reg_input, GLOBAL(clk), , , );


--counter[11] is counter[11] at LC114
counter[11]_p2_out = counter[6] & counter[2] & counter[1] & counter[0] & counter[9] & counter[8] & counter[7] & counter[10] & counter[5] & counter[4] & counter[3];
counter[11]_p3_out = !counter[6] & !counter[2] & !counter[1] & !counter[0] & counter[9] & counter[8] & counter[7] & !counter[10] & counter[5] & counter[4] & counter[3] & counter[11];
counter[11]_or_out = counter[11]_p2_out # counter[11]_p3_out;
counter[11]_reg_input = counter[11] $ counter[11]_or_out;
counter[11] = DFFE(counter[11]_reg_input, GLOBAL(clk), , , );


--counter[1] is counter[1] at LC56
counter[1]_or_out = counter[0];
counter[1]_reg_input = counter[1] $ counter[1]_or_out;
counter[1] = DFFE(counter[1]_reg_input, GLOBAL(clk), , , );


--C1_dffs[2] is lpm_counter:count1_rtl_0|dffs[2] at LC94
C1_dffs[2]_p1_out = C1_dffs[4] & C1_dffs[3] & C1_dffs[1] & C1_dffs[2];
C1_dffs[2]_p2_out = C1_dffs[1] & C1_dffs[0];
C1_dffs[2]_or_out = C1_dffs[2]_p1_out # C1_dffs[2]_p2_out;
C1_dffs[2]_reg_input = C1_dffs[2]_or_out;
C1_dffs[2] = TFFE(C1_dffs[2]_reg_input, GLOBAL(clk), , , );


--counter[2] is counter[2] at LC55
counter[2]_p1_out = counter[1] & counter[0];
counter[2]_or_out = counter[2];
counter[2]_reg_input = counter[2]_p1_out $ counter[2]_or_out;
counter[2] = DFFE(counter[2]_reg_input, GLOBAL(clk), , , );


--C1_dffs[3] is lpm_counter:count1_rtl_0|dffs[3] at LC87
C1_dffs[3]_p1_out = C1_dffs[4] & C1_dffs[2] & C1_dffs[1] & C1_dffs[3];
C1_dffs[3]_p2_out = C1_dffs[2] & C1_dffs[1] & C1_dffs[0];
C1_dffs[3]_or_out = C1_dffs[3]_p1_out # C1_dffs[3]_p2_out;
C1_dffs[3]_reg_input = C1_dffs[3]_or_out;
C1_dffs[3] = TFFE(C1_dffs[3]_reg_input, GLOBAL(clk), , , );


--C1_dffs[4] is lpm_counter:count1_rtl_0|dffs[4] at LC86
C1_dffs[4]_p1_out = C1_dffs[0] & C1_dffs[3] & C1_dffs[2] & C1_dffs[1];
C1_dffs[4]_p2_out = C1_dffs[3] & C1_dffs[2] & C1_dffs[1] & C1_dffs[4];
C1_dffs[4]_or_out = C1_dffs[4]_p1_out # C1_dffs[4]_p2_out;
C1_dffs[4]_reg_input = C1_dffs[4]_or_out;
C1_dffs[4] = TFFE(C1_dffs[4]_reg_input, GLOBAL(clk), , , );


--counter[3] is counter[3] at LC116
counter[3]_p1_out = counter[11] & !counter[10] & counter[9] & counter[8] & counter[7] & !counter[6] & counter[5] & counter[4] & !counter[2] & !counter[1] & !counter[0] & counter[3];
counter[3]_p2_out = counter[2] & counter[1] & counter[0];
counter[3]_or_out = counter[3]_p1_out # counter[3]_p2_out;
counter[3]_reg_input = counter[3]_or_out;
counter[3] = TFFE(counter[3]_reg_input, GLOBAL(clk), , , );


--C1_dffs[0] is lpm_counter:count1_rtl_0|dffs[0] at LC96
C1_dffs[0]_p1_out = C1_dffs[4] & C1_dffs[3] & C1_dffs[2] & C1_dffs[1] & !C1_dffs[0];
C1_dffs[0]_or_out = C1_dffs[0]_p1_out;
C1_dffs[0]_reg_input = !C1_dffs[0]_or_out;
C1_dffs[0] = TFFE(C1_dffs[0]_reg_input, GLOBAL(clk), , , );


--nop1 is nop1 at LC93
nop1_p1_out = !C1_dffs[0] & C1_dffs[4] & C1_dffs[3] & C1_dffs[2] & C1_dffs[1];
nop1_or_out = nop1_p1_out;
nop1_reg_input = nop1_or_out;
nop1 = DFFE(nop1_reg_input, GLOBAL(clk), , , );


--counter[4] is counter[4] at LC53
counter[4]_p1_out = counter[11] & !counter[10] & counter[9] & counter[8] & counter[7] & !counter[6] & counter[5] & !counter[2] & counter[3] & !counter[1] & !counter[0] & counter[4];
counter[4]_p2_out = counter[2] & counter[3] & counter[1] & counter[0];
counter[4]_or_out = counter[4]_p1_out # counter[4]_p2_out;
counter[4]_reg_input = counter[4]_or_out;
counter[4] = TFFE(counter[4]_reg_input, GLOBAL(clk), , , );


--A1L411Q is state1~7 at LC65
A1L411Q_p1_out = biaozhi & A1L411Q & !A1L511Q;
A1L411Q_p2_out = !A1L411Q & nop1;
A1L411Q_or_out = A1L411Q_p1_out # A1L411Q_p2_out;
A1L411Q_reg_input = A1L411Q_or_out;
A1L411Q = DFFE(A1L411Q_reg_input, GLOBAL(clk), , , );


--A1L211 is state1.st0~19 at LC69
A1L211_p1_out = !A1L411Q & !A1L511Q;
A1L211_or_out = A1L211_p1_out;
A1L211 = !(A1L211_or_out);


--A1L311 is state1.st2~41 at LC67
A1L311_p1_out = !A1L411Q & A1L511Q;
A1L311_or_out = A1L311_p1_out;
A1L311 = !(A1L311_or_out);


--shuchuu[7] is shuchuu[7] at LC84
shuchuu[7]_or_out = shuchu[7];
shuchuu[7]_reg_input = shuchuu[7]_or_out;
shuchuu[7]_p3_out = !A1L411Q & A1L511Q;
shuchuu[7] = DFFE(shuchuu[7]_reg_input, GLOBAL(clk), , , shuchuu[7]_p3_out);


--shuchuu[6] is shuchuu[6] at LC85
shuchuu[6]_or_out = shuchu[6];
shuchuu[6]_reg_input = shuchuu[6]_or_out;
shuchuu[6]_p3_out = !A1L411Q & A1L511Q;
shuchuu[6] = DFFE(shuchuu[6]_reg_input, GLOBAL(clk), , , shuchuu[6]_p3_out);


--shuchuu[5] is shuchuu[5] at LC92
shuchuu[5]_or_out = shuchu[5];
shuchuu[5]_reg_input = shuchuu[5]_or_out;
shuchuu[5]_p3_out = !A1L411Q & A1L511Q;
shuchuu[5] = DFFE(shuchuu[5]_reg_input, GLOBAL(clk), , , shuchuu[5]_p3_out);


--shuchuu[4] is shuchuu[4] at LC91
shuchuu[4]_or_out = shuchu[4];
shuchuu[4]_reg_input = shuchuu[4]_or_out;
shuchuu[4]_p3_out = !A1L411Q & A1L511Q;
shuchuu[4] = DFFE(shuchuu[4]_reg_input, GLOBAL(clk), , , shuchuu[4]_p3_out);


--shuchuu[3] is shuchuu[3] at LC90
shuchuu[3]_or_out = shuchu[3];
shuchuu[3]_reg_input = shuchuu[3]_or_out;
shuchuu[3]_p3_out = !A1L411Q & A1L511Q;
shuchuu[3] = DFFE(shuchuu[3]_reg_input, GLOBAL(clk), , , shuchuu[3]_p3_out);


--shuchuu[2] is shuchuu[2] at LC89
shuchuu[2]_or_out = shuchu[2];
shuchuu[2]_reg_input = shuchuu[2]_or_out;
shuchuu[2]_p3_out = !A1L411Q & A1L511Q;
shuchuu[2] = DFFE(shuchuu[2]_reg_input, GLOBAL(clk), , , shuchuu[2]_p3_out);


--shuchuu[1] is shuchuu[1] at LC88
shuchuu[1]_or_out = shuchu[1];
shuchuu[1]_reg_input = shuchuu[1]_or_out;
shuchuu[1]_p3_out = !A1L411Q & A1L511Q;
shuchuu[1] = DFFE(shuchuu[1]_reg_input, GLOBAL(clk), , , shuchuu[1]_p3_out);


--shuchuu[0] is shuchuu[0] at LC81
shuchuu[0]_or_out = shuchu[0];
shuchuu[0]_reg_input = shuchuu[0]_or_out;
shuchuu[0]_p3_out = !A1L411Q & A1L511Q;
shuchuu[0] = DFFE(shuchuu[0]_reg_input, GLOBAL(clk), , , shuchuu[0]_p3_out);


--counter[5] is counter[5] at LC60
counter[5]_p1_out = counter[11] & !counter[10] & counter[9] & counter[8] & counter[7] & !counter[6] & !counter[2] & !counter[1] & !counter[0] & counter[3] & counter[5] & counter[4];
counter[5]_p2_out = counter[2] & counter[1] & counter[0] & counter[3] & counter[4];
counter[5]_or_out = counter[5]_p1_out # counter[5]_p2_out;
counter[5]_reg_input = counter[5]_or_out;
counter[5] = TFFE(counter[5]_reg_input, GLOBAL(clk), , , );


--counter[6] is counter[6] at LC64
counter[6]_p1_out = counter[5] & counter[4] & counter[3] & counter[2] & counter[1] & counter[0];
counter[6]_or_out = counter[6];
counter[6]_reg_input = counter[6]_p1_out $ counter[6]_or_out;
counter[6] = DFFE(counter[6]_reg_input, GLOBAL(clk), , , );


--counter[7] is counter[7] at LC62
counter[7]_p1_out = counter[11] & !counter[10] & counter[9] & counter[8] & !counter[6] & !counter[2] & !counter[1] & !counter[0] & counter[3] & counter[5] & counter[7] & counter[4];
counter[7]_p2_out = counter[6] & counter[2] & counter[1] & counter[0] & counter[3] & counter[5] & counter[4];
counter[7]_or_out = counter[7]_p1_out # counter[7]_p2_out;
counter[7]_reg_input = counter[7]_or_out;
counter[7] = TFFE(counter[7]_reg_input, GLOBAL(clk), , , );


--counter[8] is counter[8] at LC61
counter[8]_p1_out = counter[11] & !counter[10] & counter[9] & !counter[6] & !counter[2] & !counter[1] & !counter[0] & counter[7] & counter[3] & counter[5] & counter[8] & counter[4];
counter[8]_p2_out = counter[6] & counter[2] & counter[1] & counter[0] & counter[7] & counter[3] & counter[5] & counter[4];
counter[8]_or_out = counter[8]_p1_out # counter[8]_p2_out;
counter[8]_reg_input = counter[8]_or_out;
counter[8] = TFFE(counter[8]_reg_input, GLOBAL(clk), , , );


--counter[9] is counter[9] at LC58
counter[9]_p1_out = counter[11] & !counter[10] & !counter[6] & !counter[2] & !counter[1] & !counter[0] & counter[8] & counter[7] & counter[3] & counter[5] & counter[9] & counter[4];
counter[9]_p2_out = counter[6] & counter[2] & counter[1] & counter[0] & counter[8] & counter[7] & counter[3] & counter[5] & counter[4];
counter[9]_or_out = counter[9]_p1_out # counter[9]_p2_out;
counter[9]_reg_input = counter[9]_or_out;
counter[9] = TFFE(counter[9]_reg_input, GLOBAL(clk), , , );


--counter[10] is counter[10] at LC54
counter[10]_p1_out = counter[9] & counter[8] & counter[7] & counter[6] & counter[5] & counter[4] & counter[3] & counter[2] & counter[1] & counter[0];
counter[10]_or_out = counter[10];
counter[10]_reg_input = counter[10]_p1_out $ counter[10]_or_out;
counter[10] = DFFE(counter[10]_reg_input, GLOBAL(clk), , , );


--nop is nop at LC57
nop_p1_out = counter[11] & !counter[10] & counter[9] & counter[8] & counter[7] & !counter[6] & counter[3] & !counter[2] & !counter[1] & !counter[0] & counter[5] & counter[4];
nop_or_out = nop_p1_out;
nop_reg_input = nop_or_out;
nop = DFFE(nop_reg_input, GLOBAL(clk), , , );


--A1L2 is LessThan~611 at LC44
A1L2_p1_out = count[3] & count[6] & count[5] & count[4] & count[0];
A1L2_p2_out = !count[3] & !count[6] & !count[5];
A1L2_p3_out = !count[6] & !count[5] & !count[0] & !count[1] & !count[2];
A1L2_p4_out = !count[6] & !count[5] & !count[4];
A1L2_or_out = A1L31 # !count[7] # A1L2_p1_out # A1L2_p2_out # A1L2_p3_out # A1L2_p4_out;
A1L2 = A1L2_or_out;


--A1L5 is LessThan~617 at LC29
A1L5_or_out = shuchuu[7];
A1L5 = count[7] $ A1L5_or_out;


--A1L6 is LessThan~621 at SEXP49
A1L6 = EXP(count[5] & !shuchuu[5]);


--A1L7 is LessThan~622 at SEXP51
A1L7 = EXP(count[4] & !shuchuu[4]);


--A1L8 is LessThan~623 at SEXP53
A1L8 = EXP(count[3] & !shuchuu[3]);


--A1L9 is LessThan~624 at SEXP54
A1L9 = EXP(count[2] & !shuchuu[2]);


--A1L01 is LessThan~625 at SEXP55
A1L01 = EXP(count[1] & !shuchuu[1]);


--A1L11 is LessThan~631 at LC52
A1L11_p0_out = A1L6 & A1L7 & A1L8 & A1L9 & A1L01 & !count[0] & shuchuu[0];
A1L11_p1_out = A1L6 & !count[4] & shuchuu[4];
A1L11_p2_out = A1L6 & A1L7 & !count[3] & shuchuu[3];
A1L11_p3_out = A1L6 & A1L7 & A1L8 & !count[2] & shuchuu[2];
A1L11_p4_out = A1L6 & A1L7 & A1L8 & A1L9 & !count[1] & shuchuu[1];
A1L11_or_out = A1L41 # A1L11_p0_out # A1L11_p1_out # A1L11_p2_out # A1L11_p3_out # A1L11_p4_out;
A1L11 = A1L11_or_out;


--A1L21 is LessThan~632 at LC30
A1L21_or_out = shuchuu[6];
A1L21 = count[6] $ A1L21_or_out;


--count[7] is count[7] at LC26
count[7]_p0_out = !nop & count[7] & A1L5 & A1L3;
count[7]_p1_out = !count[10] & !nop & !count[11] & A1L11 & !A1L21 & !A1L5 & G51L9 & A1L2 & !count[8] & !count[9];
count[7]_p2_out = !nop & count[7] & !A1L11 & A1L3 & A1L4;
count[7]_p3_out = !count[10] & !nop & !count[11] & !A1L5 & G51L9 & A1L2 & !count[8] & !count[9] & !count[6] & shuchuu[6];
count[7]_p4_out = !count[10] & !nop & !count[7] & !count[11] & G51L9 & A1L2 & !count[8] & !count[9] & shuchuu[7];
count[7]_or_out = A1L35 # count[7]_p0_out # count[7]_p1_out # count[7]_p2_out # count[7]_p3_out # count[7]_p4_out;
count[7]_reg_input = count[7]_or_out;
count[7] = DFFE(count[7]_reg_input, GLOBAL(clk), , , );


--count[0] is count[0] at LC36
count[0]_p0_out = !nop & !A1L5 & !count[8] & !count[9] & !count[10] & !count[11] & !count[6] & shuchuu[6] & !count[3];
count[0]_p1_out = !nop & A1L11 & !A1L21 & !A1L5 & !count[8] & !count[9] & !count[10] & !count[11] & !count[3];
count[0]_p2_out = A1L11 & !A1L21 & !A1L5 & !count[8] & !count[9] & !count[10] & !count[11] & count[0];
count[0]_p3_out = !count[2] & !count[1] & !nop & A1L11 & !A1L21 & !A1L5 & !count[8] & !count[9] & !count[10] & !count[11];
count[0]_p4_out = !count[2] & !count[1] & !nop & !A1L5 & !count[8] & !count[9] & !count[10] & !count[11] & !count[6] & shuchuu[6];
count[0]_or_out = A1L45 # count[0]_p0_out # count[0]_p1_out # count[0]_p2_out # count[0]_p3_out # count[0]_p4_out;
count[0]_reg_input = count[0]_or_out;
count[0] = TFFE(count[0]_reg_input, GLOBAL(clk), , , );

⌨️ 快捷键说明

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