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

📄 adc.map.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]
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]
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), , , );


--A1L901Q is state1~8
A1L901Q_p1_out = !A1L801Q & A1L901Q;
A1L901Q_p2_out = A1L801Q & !A1L901Q & !biaozhi;
A1L901Q_or_out = A1L901Q_p1_out # A1L901Q_p2_out;
A1L901Q_reg_input = A1L901Q_or_out;
A1L901Q = DFFE(A1L901Q_reg_input, GLOBAL(clk), , , );


--counter[11] is counter[11]
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]
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]
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]
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]
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]
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]
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]
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
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]
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), , , );


--A1L801Q is state1~7
A1L801Q_p1_out = biaozhi & A1L801Q & !A1L901Q;
A1L801Q_p2_out = !A1L801Q & nop1;
A1L801Q_or_out = A1L801Q_p1_out # A1L801Q_p2_out;
A1L801Q_reg_input = A1L801Q_or_out;
A1L801Q = DFFE(A1L801Q_reg_input, GLOBAL(clk), , , );


--A1L601 is state1.st0~19
A1L601_p1_out = !A1L801Q & !A1L901Q;
A1L601_or_out = A1L601_p1_out;
A1L601 = !(A1L601_or_out);


--A1L701 is state1.st2~41
A1L701_p1_out = !A1L801Q & A1L901Q;
A1L701_or_out = A1L701_p1_out;
A1L701 = !(A1L701_or_out);


--shuchuu[7] is shuchuu[7]
shuchuu[7]_or_out = shuchu[7];
shuchuu[7]_reg_input = shuchuu[7]_or_out;
shuchuu[7]_p3_out = !A1L801Q & A1L901Q;
shuchuu[7] = DFFE(shuchuu[7]_reg_input, GLOBAL(clk), , , shuchuu[7]_p3_out);


--shuchuu[6] is shuchuu[6]
shuchuu[6]_or_out = shuchu[6];
shuchuu[6]_reg_input = shuchuu[6]_or_out;
shuchuu[6]_p3_out = !A1L801Q & A1L901Q;
shuchuu[6] = DFFE(shuchuu[6]_reg_input, GLOBAL(clk), , , shuchuu[6]_p3_out);


--shuchuu[5] is shuchuu[5]
shuchuu[5]_or_out = shuchu[5];
shuchuu[5]_reg_input = shuchuu[5]_or_out;
shuchuu[5]_p3_out = !A1L801Q & A1L901Q;
shuchuu[5] = DFFE(shuchuu[5]_reg_input, GLOBAL(clk), , , shuchuu[5]_p3_out);


--shuchuu[4] is shuchuu[4]
shuchuu[4]_or_out = shuchu[4];
shuchuu[4]_reg_input = shuchuu[4]_or_out;
shuchuu[4]_p3_out = !A1L801Q & A1L901Q;
shuchuu[4] = DFFE(shuchuu[4]_reg_input, GLOBAL(clk), , , shuchuu[4]_p3_out);


--shuchuu[3] is shuchuu[3]
shuchuu[3]_or_out = shuchu[3];
shuchuu[3]_reg_input = shuchuu[3]_or_out;
shuchuu[3]_p3_out = !A1L801Q & A1L901Q;
shuchuu[3] = DFFE(shuchuu[3]_reg_input, GLOBAL(clk), , , shuchuu[3]_p3_out);


--shuchuu[2] is shuchuu[2]
shuchuu[2]_or_out = shuchu[2];
shuchuu[2]_reg_input = shuchuu[2]_or_out;
shuchuu[2]_p3_out = !A1L801Q & A1L901Q;
shuchuu[2] = DFFE(shuchuu[2]_reg_input, GLOBAL(clk), , , shuchuu[2]_p3_out);


--shuchuu[1] is shuchuu[1]
shuchuu[1]_or_out = shuchu[1];
shuchuu[1]_reg_input = shuchuu[1]_or_out;
shuchuu[1]_p3_out = !A1L801Q & A1L901Q;
shuchuu[1] = DFFE(shuchuu[1]_reg_input, GLOBAL(clk), , , shuchuu[1]_p3_out);


--shuchuu[0] is shuchuu[0]
shuchuu[0]_or_out = shuchu[0];
shuchuu[0]_reg_input = shuchuu[0]_or_out;
shuchuu[0]_p3_out = !A1L801Q & A1L901Q;
shuchuu[0] = DFFE(shuchuu[0]_reg_input, GLOBAL(clk), , , shuchuu[0]_p3_out);


--counter[5] is counter[5]
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]
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]
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]
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]
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]
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
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
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
A1L5_or_out = shuchuu[7];
A1L5 = count[7] $ A1L5_or_out;


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


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


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


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


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


--A1L11 is LessThan~631
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
A1L21_or_out = shuchuu[6];
A1L21 = count[6] $ A1L21_or_out;


--count[7] is count[7]
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 = A1L74 # 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]
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];

⌨️ 快捷键说明

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