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

📄 keyboard1.fit.eqn

📁 数码管显示Vhdl实现
💻 EQN
📖 第 1 页 / 共 4 页
字号:
-- 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.
--B1_delay_counter[0] is counter:inst1|delay_counter[0] at LC39
B1_delay_counter[0]_reg_input = VCC;
B1_delay_counter[0] = TFFE(B1_delay_counter[0]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--G1_next_led_cs[1] is choice1from6:inst7|next_led_cs[1] at LC44
G1_next_led_cs[1]_p1_out = !G1_next_led_cs[0] & !G1_next_led_cs[4] & !G1_next_led_cs[5] & !G1_next_led_cs[2] & !G1_next_led_cs[3] & !G1_next_led_cs[1];
G1_next_led_cs[1]_or_out = G1_next_led_cs[1]_p1_out;
G1_next_led_cs[1]_reg_input = G1_next_led_cs[1]_or_out;
G1_next_led_cs[1] = DFFE(G1_next_led_cs[1]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--D1L39 is delay_kbtingle:inst4|process0~96 at LC32
D1L39_p1_out = !row_data[0] & D1_scan_start & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L39_p2_out = D1_scan_start & !row_data[1] & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L39_p3_out = D1_scan_start & !row_data[2] & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L39_p4_out = D1_scan_start & !row_data[3] & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L39_or_out = D1L39_p1_out # D1L39_p2_out # D1L39_p3_out # D1L39_p4_out;
D1L39 = D1L39_or_out;


--B1_delay_counter[1] is counter:inst1|delay_counter[1] at LC101
B1_delay_counter[1]_p1_out = B1_delay_counter[2] & B1_delay_counter[0] & !B1_delay_counter[1];
B1_delay_counter[1]_p2_out = !B1_delay_counter[0] & B1_delay_counter[1];
B1_delay_counter[1]_or_out = B1_delay_counter[1]_p1_out # B1_delay_counter[1]_p2_out;
B1_delay_counter[1]_reg_input = B1_delay_counter[1]_or_out;
B1_delay_counter[1] = DFFE(B1_delay_counter[1]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--G1_led_cs[1] is choice1from6:inst7|led_cs[1] at LC14
G1_led_cs[1]_or_out = !G1_next_led_cs[1];
G1_led_cs[1]_reg_input = G1_led_cs[1]_or_out;
G1_led_cs[1] = DFFE(G1_led_cs[1]_reg_input, GLOBAL(clock_1k), , reset, );


--B1_delay_counter[2] is counter:inst1|delay_counter[2] at LC103
B1_delay_counter[2]_p1_out = B1_delay_counter[1] & B1_delay_counter[0];
B1_delay_counter[2]_or_out = B1_delay_counter[2]_p1_out;
B1_delay_counter[2]_reg_input = B1_delay_counter[2]_or_out;
B1_delay_counter[2] = TFFE(B1_delay_counter[2]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--B1_carrier is counter:inst1|carrier at LC97
B1_carrier_reg_input = VCC;
B1_carrier_p3_out = !B1_delay_counter[2] & !B1_delay_counter[1] & B1_delay_counter[0];
B1_carrier = TFFE(B1_carrier_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , B1_carrier_p3_out);


--D1L35 is delay_kbtingle:inst4|previous_row_data[0]~42 at LC90
D1L35_p1_out = row_data[0] & D1L39;
D1L35_p2_out = !D1L39 & D1L35;
D1L35_or_out = D1L35_p1_out # D1L35_p2_out;
D1L35 = D1L35_or_out;


--D1L36 is delay_kbtingle:inst4|previous_row_data[1]~45 at LC89
D1L36_p1_out = row_data[1] & D1L39;
D1L36_p2_out = !D1L39 & D1L36;
D1L36_or_out = D1L36_p1_out # D1L36_p2_out;
D1L36 = D1L36_or_out;


--D1L37 is delay_kbtingle:inst4|previous_row_data[2]~48 at LC91
D1L37_p1_out = row_data[2] & D1L39;
D1L37_p2_out = !D1L39 & D1L37;
D1L37_or_out = D1L37_p1_out # D1L37_p2_out;
D1L37 = D1L37_or_out;


--D1L38 is delay_kbtingle:inst4|previous_row_data[3]~51 at LC81
D1L38_p1_out = row_data[3] & D1L39;
D1L38_p2_out = !D1L39 & D1L38;
D1L38_or_out = D1L38_p1_out # D1L38_p2_out;
D1L38 = D1L38_or_out;


--B2_delay_counter[0] is counter:inst2|delay_counter[0] at LC47
B2_delay_counter[0]_reg_input = VCC;
B2_delay_counter[0] = TFFE(B2_delay_counter[0]_reg_input, !B1_carrier, GLOBAL(reset), , );


--J1_dffs[0] is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[0] at LC67
J1_dffs[0]_p1_out = J1_dffs[3] & J1_dffs[2];
J1_dffs[0]_p2_out = !J1_dffs[3] & !J1_dffs[2] & !J1_dffs[1] & row_data[0] & row_data[1] & row_data[2] & row_data[3];
J1_dffs[0]_or_out = J1L4 # J1_dffs[0] # J1_dffs[0]_p1_out # J1_dffs[0]_p2_out # !D1_scan_start;
J1_dffs[0]_reg_input = !(J1_dffs[0]_or_out);
J1_dffs[0] = DFFE(J1_dffs[0]_reg_input, !B1_carrier, GLOBAL(reset), , );


--G1_next_led_cs[0] is choice1from6:inst7|next_led_cs[0] at LC7
G1_next_led_cs[0]_p0_out = !G1_next_led_cs[5] & !G1_next_led_cs[4] & !G1_next_led_cs[3] & !G1_next_led_cs[1] & G1_next_led_cs[2] & G1_next_led_cs[0];
G1_next_led_cs[0]_p1_out = !G1_next_led_cs[5] & G1_next_led_cs[4] & !G1_next_led_cs[3] & !G1_next_led_cs[1] & !G1_next_led_cs[2] & G1_next_led_cs[0];
G1_next_led_cs[0]_p2_out = !G1_next_led_cs[5] & !G1_next_led_cs[4] & !G1_next_led_cs[3] & G1_next_led_cs[1] & !G1_next_led_cs[2] & G1_next_led_cs[0];
G1_next_led_cs[0]_p3_out = !G1_next_led_cs[5] & !G1_next_led_cs[4] & G1_next_led_cs[3] & !G1_next_led_cs[1] & !G1_next_led_cs[2] & G1_next_led_cs[0];
G1_next_led_cs[0]_p4_out = !G1_next_led_cs[5] & !G1_next_led_cs[4] & !G1_next_led_cs[3] & !G1_next_led_cs[1] & !G1_next_led_cs[2] & !G1_next_led_cs[0];
G1_next_led_cs[0]_or_out = G1_next_led_cs[0]_p0_out # G1_next_led_cs[0]_p1_out # G1_next_led_cs[0]_p2_out # G1_next_led_cs[0]_p3_out # G1_next_led_cs[0]_p4_out;
G1_next_led_cs[0]_reg_input = G1_next_led_cs[0]_or_out;
G1_next_led_cs[0] = DFFE(G1_next_led_cs[0]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--G1_led_cs[0] is choice1from6:inst7|led_cs[0] at LC16
G1_led_cs[0]_or_out = G1_next_led_cs[0];
G1_led_cs[0]_reg_input = G1_led_cs[0]_or_out;
G1_led_cs[0] = DFFE(G1_led_cs[0]_reg_input, GLOBAL(clock_1k), , reset, );


--B2_delay_counter[1] is counter:inst2|delay_counter[1] at LC92
B2_delay_counter[1]_p1_out = !B2_delay_counter[3] & B2_delay_counter[2] & !B2_delay_counter[1];
B2_delay_counter[1]_or_out = B2_delay_counter[1]_p1_out # !B2_delay_counter[0];
B2_delay_counter[1]_reg_input = !B2_delay_counter[1]_or_out;
B2_delay_counter[1] = TFFE(B2_delay_counter[1]_reg_input, !B1_carrier, GLOBAL(reset), , );


--G1_next_led_cs[2] is choice1from6:inst7|next_led_cs[2] at LC10
G1_next_led_cs[2]_p1_out = G1_next_led_cs[0] & !G1_next_led_cs[4] & !G1_next_led_cs[5] & !G1_next_led_cs[2] & !G1_next_led_cs[3] & G1_next_led_cs[1];
G1_next_led_cs[2]_or_out = G1_next_led_cs[2]_p1_out;
G1_next_led_cs[2]_reg_input = G1_next_led_cs[2]_or_out;
G1_next_led_cs[2] = DFFE(G1_next_led_cs[2]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--G1_led_cs[2] is choice1from6:inst7|led_cs[2] at LC13
G1_led_cs[2]_or_out = !G1_next_led_cs[2];
G1_led_cs[2]_reg_input = G1_led_cs[2]_or_out;
G1_led_cs[2] = DFFE(G1_led_cs[2]_reg_input, GLOBAL(clock_1k), , reset, );


--P3L1 is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|lpm_add_sub:add_sub|addcore:adder|a_csnbuffer:result_node|sout_node[2]~4 at LC45
P3L1_p1_out = J1_dffs[1] & J1_dffs[0];
P3L1_or_out = J1_dffs[2];
P3L1 = P3L1_p1_out $ P3L1_or_out;


--G1_next_led_cs[3] is choice1from6:inst7|next_led_cs[3] at LC3
G1_next_led_cs[3]_p1_out = !G1_next_led_cs[5] & !G1_next_led_cs[4] & G1_next_led_cs[2] & !G1_next_led_cs[3] & !G1_next_led_cs[1] & G1_next_led_cs[0];
G1_next_led_cs[3]_or_out = G1_next_led_cs[3]_p1_out;
G1_next_led_cs[3]_reg_input = G1_next_led_cs[3]_or_out;
G1_next_led_cs[3] = DFFE(G1_next_led_cs[3]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--B2_delay_counter[2] is counter:inst2|delay_counter[2] at LC94
B2_delay_counter[2]_p1_out = !B2_delay_counter[3] & B2_delay_counter[0] & B2_delay_counter[2];
B2_delay_counter[2]_p2_out = B2_delay_counter[0] & B2_delay_counter[1];
B2_delay_counter[2]_or_out = B2_delay_counter[2]_p1_out # B2_delay_counter[2]_p2_out;
B2_delay_counter[2]_reg_input = B2_delay_counter[2]_or_out;
B2_delay_counter[2] = TFFE(B2_delay_counter[2]_reg_input, !B1_carrier, GLOBAL(reset), , );


--G1_led_cs[3] is choice1from6:inst7|led_cs[3] at LC11
G1_led_cs[3]_or_out = !G1_next_led_cs[3];
G1_led_cs[3]_reg_input = G1_led_cs[3]_or_out;
G1_led_cs[3] = DFFE(G1_led_cs[3]_reg_input, GLOBAL(clock_1k), , reset, );


--J1L8 is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[2]~83 at SEXP74
J1L8 = EXP(row_data[3] & row_data[2] & row_data[1] & row_data[0]);


--J1L9 is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[2]~84 at SEXP33
J1L9 = EXP(J1_dffs[0] & !J1_dffs[2]);


--J1L10 is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[2]~85 at SEXP78
J1L10 = EXP(J1_dffs[2] & J1_dffs[0]);


--J1L11 is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[2]~91 at LC77
J1L11_p0_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & !row_data[0] & !row_data[1] & row_data[2] & !D1L36 & D1L37 & !D1L35 & D1L38 & row_data[3];
J1L11_p1_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & row_data[0] & !row_data[1] & row_data[2] & !D1L36 & D1L37 & D1L35 & !D1L38 & !row_data[3];
J1L11_p2_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & !row_data[0] & row_data[1] & row_data[2] & D1L36 & D1L37 & !D1L35 & !D1L38 & !row_data[3];
J1L11_p3_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & row_data[0] & !row_data[1] & !row_data[2] & !D1L36 & !D1L37 & D1L35 & D1L38 & row_data[3];
J1L11_p4_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & !row_data[0] & row_data[1] & !row_data[2] & D1L36 & !D1L37 & !D1L35 & D1L38 & row_data[3];
J1L11_or_out = J1L14 # J1L11_p0_out # J1L11_p1_out # J1L11_p2_out # J1L11_p3_out # J1L11_p4_out;
J1L11 = J1L11_or_out;


--J1_dffs[2] is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[2] at LC48
J1_dffs[2]_p1_out = !J1_dffs[0] & !J1_dffs[1] & D1_scan_start & !J1_dffs[2] & J1_dffs[3];
J1_dffs[2]_p2_out = J1_dffs[1] & D1_scan_start & !J1_dffs[3] & J1L9 & P3L1;
J1_dffs[2]_or_out = J1_dffs[2]_p1_out # J1_dffs[2]_p2_out # J1L11;
J1_dffs[2]_reg_input = J1_dffs[2]_or_out;
J1_dffs[2] = DFFE(J1_dffs[2]_reg_input, !B1_carrier, GLOBAL(reset), , );


--G1_next_led_cs[4] is choice1from6:inst7|next_led_cs[4] at LC46
G1_next_led_cs[4]_p1_out = G1_next_led_cs[3] & !G1_next_led_cs[1] & G1_next_led_cs[0] & !G1_next_led_cs[4] & !G1_next_led_cs[5] & !G1_next_led_cs[2];
G1_next_led_cs[4]_or_out = G1_next_led_cs[4]_p1_out;
G1_next_led_cs[4]_reg_input = G1_next_led_cs[4]_or_out;
G1_next_led_cs[4] = DFFE(G1_next_led_cs[4]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--B2_delay_counter[3] is counter:inst2|delay_counter[3] at LC96
B2_delay_counter[3]_p1_out = B2_delay_counter[2] & B2_delay_counter[1] & B2_delay_counter[0];
B2_delay_counter[3]_or_out = B2_delay_counter[3]_p1_out;
B2_delay_counter[3]_reg_input = B2_delay_counter[3]_or_out;
B2_delay_counter[3] = TFFE(B2_delay_counter[3]_reg_input, !B1_carrier, GLOBAL(reset), , );


--G1_led_cs[4] is choice1from6:inst7|led_cs[4] at LC9
G1_led_cs[4]_or_out = !G1_next_led_cs[4];
G1_led_cs[4]_reg_input = G1_led_cs[4]_or_out;
G1_led_cs[4] = DFFE(G1_led_cs[4]_reg_input, GLOBAL(clock_1k), , reset, );


--G1_next_led_cs[5] is choice1from6:inst7|next_led_cs[5] at LC43
G1_next_led_cs[5]_p1_out = G1_next_led_cs[4] & !G1_next_led_cs[3] & !G1_next_led_cs[1] & G1_next_led_cs[0] & !G1_next_led_cs[5] & !G1_next_led_cs[2];
G1_next_led_cs[5]_or_out = G1_next_led_cs[5]_p1_out;
G1_next_led_cs[5]_reg_input = G1_next_led_cs[5]_or_out;
G1_next_led_cs[5] = DFFE(G1_next_led_cs[5]_reg_input, GLOBAL(clock_1k), GLOBAL(reset), , );


--G1_led_cs[5] is choice1from6:inst7|led_cs[5] at LC8
G1_led_cs[5]_or_out = !G1_next_led_cs[5];
G1_led_cs[5]_reg_input = G1_led_cs[5]_or_out;
G1_led_cs[5] = DFFE(G1_led_cs[5]_reg_input, GLOBAL(clock_1k), , reset, );


--B2_carrier is counter:inst2|carrier at LC83
B2_carrier_p1_out = !B2_delay_counter[3] & B2_delay_counter[2] & !B2_delay_counter[1] & B2_delay_counter[0];
B2_carrier_or_out = B2_carrier_p1_out;
B2_carrier_reg_input = B2_carrier_or_out;
B2_carrier = TFFE(B2_carrier_reg_input, !B1_carrier, GLOBAL(reset), , );


--C1_row_counter[0] is keyboard_scan:inst3|row_counter[0] at LC35
C1_row_counter[0]_reg_input = VCC;
C1_row_counter[0] = TFFE(C1_row_counter[0]_reg_input, !B2_carrier, GLOBAL(reset), , );


--C1_row_counter[1] is keyboard_scan:inst3|row_counter[1] at LC106
C1_row_counter[1]_or_out = C1_row_counter[0];
C1_row_counter[1]_reg_input = C1_row_counter[1]_or_out;
C1_row_counter[1] = TFFE(C1_row_counter[1]_reg_input, !B2_carrier, GLOBAL(reset), , );


--C1_row_select[3] is keyboard_scan:inst3|row_select[3] at LC100
C1_row_select[3]_p1_out = C1_row_counter[1] & C1_row_counter[0];
C1_row_select[3]_or_out = C1_row_select[3]_p1_out;
C1_row_select[3]_reg_input = C1_row_select[3]_or_out;
C1_row_select[3] = DFFE(C1_row_select[3]_reg_input, !B2_carrier, GLOBAL(reset), , );


--C1_row_select[2] is keyboard_scan:inst3|row_select[2] at LC98
C1_row_select[2]_p1_out = C1_row_counter[1] & !C1_row_counter[0];
C1_row_select[2]_or_out = C1_row_select[2]_p1_out;
C1_row_select[2]_reg_input = C1_row_select[2]_or_out;
C1_row_select[2] = DFFE(C1_row_select[2]_reg_input, !B2_carrier, GLOBAL(reset), , );


--C1_row_select[1] is keyboard_scan:inst3|row_select[1] at LC110
C1_row_select[1]_p1_out = !C1_row_counter[1] & C1_row_counter[0];
C1_row_select[1]_or_out = C1_row_select[1]_p1_out;
C1_row_select[1]_reg_input = C1_row_select[1]_or_out;
C1_row_select[1] = DFFE(C1_row_select[1]_reg_input, !B2_carrier, GLOBAL(reset), , );


--C1_row_select[0] is keyboard_scan:inst3|row_select[0] at LC109
C1_row_select[0]_p1_out = !C1_row_counter[1] & !C1_row_counter[0];
C1_row_select[0]_or_out = C1_row_select[0]_p1_out;
C1_row_select[0]_reg_input = C1_row_select[0]_or_out;
C1_row_select[0] = DFFE(C1_row_select[0]_reg_input, !B2_carrier, GLOBAL(reset), , );


--C1L12 is keyboard_scan:inst3|row_select[3]~4 at LC99
C1L12_or_out = !C1_row_select[3];
C1L12 = C1L12_or_out;


--C1L10 is keyboard_scan:inst3|row_select[2]~5 at LC102
C1L10_or_out = !C1_row_select[2];
C1L10 = C1L10_or_out;


--C1L8 is keyboard_scan:inst3|row_select[1]~6 at LC104
C1L8_or_out = !C1_row_select[1];
C1L8 = C1L8_or_out;


--C1L6 is keyboard_scan:inst3|row_select[0]~7 at LC105
C1L6_or_out = !C1_row_select[0];
C1L6 = C1L6_or_out;


--J1_dffs[1] is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[1] at LC69
J1_dffs[1]_p0_out = D1_scan_start & row_data[0] & row_data[1] & row_data[2] & D1L36 & D1L37 & D1L35 & !D1L38 & !row_data[3] & !J1_dffs[3] & !J1_dffs[1] & J1_dffs[0];
J1_dffs[1]_p1_out = D1_scan_start & !row_data[0] & row_data[1] & row_data[2] & D1L36 & D1L37 & !D1L35 & D1L38 & row_data[3] & !J1_dffs[3] & !J1_dffs[1] & J1_dffs[0];
J1_dffs[1]_p2_out = D1_scan_start & row_data[0] & !row_data[1] & row_data[2] & !D1L36 & D1L37 & D1L35 & D1L38 & row_data[3] & !J1_dffs[3] & !J1_dffs[1] & J1_dffs[0];
J1_dffs[1]_p4_out = D1_scan_start & row_data[0] & row_data[1] & !row_data[2] & D1L36 & !D1L37 & D1L35 & D1L38 & row_data[3] & !J1_dffs[3] & !J1_dffs[1] & J1_dffs[0];
J1_dffs[1]_or_out = J1L6 # J1_dffs[1]_p0_out # J1_dffs[1]_p1_out # J1_dffs[1]_p2_out # J1_dffs[1]_p4_out;
J1_dffs[1]_reg_input = J1_dffs[1]_or_out;

⌨️ 快捷键说明

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