📄 keyboard1.map.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.
--B1_delay_counter[0] is counter:inst1|delay_counter[0]
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]
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), , );
--D1L21 is delay_kbtingle:inst4|process0~96
D1L21_p1_out = !row_data[0] & D1_scan_start & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L21_p2_out = D1_scan_start & !row_data[1] & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L21_p3_out = D1_scan_start & !row_data[2] & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L21_p4_out = D1_scan_start & !row_data[3] & !J1_dffs[3] & !J1_dffs[1] & !J1_dffs[2] & !J1_dffs[0];
D1L21_or_out = D1L21_p1_out # D1L21_p2_out # D1L21_p3_out # D1L21_p4_out;
D1L21 = D1L21_or_out;
--B1_delay_counter[1] is counter:inst1|delay_counter[1]
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]
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]
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
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);
--D1L17 is delay_kbtingle:inst4|previous_row_data[0]~42
D1L17_p1_out = row_data[0] & D1L21;
D1L17_p2_out = !D1L21 & D1L17;
D1L17_or_out = D1L17_p1_out # D1L17_p2_out;
D1L17 = D1L17_or_out;
--D1L18 is delay_kbtingle:inst4|previous_row_data[1]~45
D1L18_p1_out = row_data[1] & D1L21;
D1L18_p2_out = !D1L21 & D1L18;
D1L18_or_out = D1L18_p1_out # D1L18_p2_out;
D1L18 = D1L18_or_out;
--D1L19 is delay_kbtingle:inst4|previous_row_data[2]~48
D1L19_p1_out = row_data[2] & D1L21;
D1L19_p2_out = !D1L21 & D1L19;
D1L19_or_out = D1L19_p1_out # D1L19_p2_out;
D1L19 = D1L19_or_out;
--D1L20 is delay_kbtingle:inst4|previous_row_data[3]~51
D1L20_p1_out = row_data[3] & D1L21;
D1L20_p2_out = !D1L21 & D1L20;
D1L20_or_out = D1L20_p1_out # D1L20_p2_out;
D1L20 = D1L20_or_out;
--B2_delay_counter[0] is counter:inst2|delay_counter[0]
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]
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]
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]
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]
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]
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]
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
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]
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]
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]
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
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
J1L9 = EXP(J1_dffs[0] & !J1_dffs[2]);
--J1L10 is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[2]~85
J1L10 = EXP(J1_dffs[2] & J1_dffs[0]);
--J1L11 is delay_kbtingle:inst4|lpm_counter:currentState_rtl_0|dffs[2]~91
J1L11_p0_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & !row_data[0] & !row_data[1] & row_data[2] & !D1L18 & D1L19 & !D1L17 & D1L20 & row_data[3];
J1L11_p1_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & row_data[0] & !row_data[1] & row_data[2] & !D1L18 & D1L19 & D1L17 & !D1L20 & !row_data[3];
J1L11_p2_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & !row_data[0] & row_data[1] & row_data[2] & D1L18 & D1L19 & !D1L17 & !D1L20 & !row_data[3];
J1L11_p3_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & row_data[0] & !row_data[1] & !row_data[2] & !D1L18 & !D1L19 & D1L17 & D1L20 & row_data[3];
J1L11_p4_out = J1L10 & D1_scan_start & !J1_dffs[3] & P3L1 & !row_data[0] & row_data[1] & !row_data[2] & D1L18 & !D1L19 & !D1L17 & D1L20 & 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]
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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]
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
C1L12_or_out = !C1_row_select[3];
C1L12 = C1L12_or_out;
--C1L10 is keyboard_scan:inst3|row_select[2]~5
C1L10_or_out = !C1_row_select[2];
C1L10 = C1L10_or_out;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -