ps2键盘和数码管组合 FPGA 开发板 DIY author :zhrscut /*-------------------------------------------------------- -- Engineer: zhrscut -- Create Date: -- Module Name: -- Tool Versions: Quartus_II 9.1 -- 欢迎加入 EEPW ,FPGA 开发板 DIY 活动 --------------------------------------------------------*/ module ps2_seg( clk,rst_n,ps2_clk, ps2_data,sel_out,seg_out ); input clk; input rst_n; input ps2_clk; input ps2_data; output[7:0] seg_out; output[7:0] sel_out; wire[7:0] ps2_byte; wire ps2_state; ps2scan ps2scan( .clk(clk), .rst_n(rst_n), .ps2k_clk(ps2_clk), .ps2k_data(ps2_data), .ps2_byte(ps2_byte), ……