Forum Discussion
Altera_Forum
Honored Contributor
17 years agobackspace and enter key, reset VGA in verilog HDL?
how to write codes for backspace and enter key in Verilog HDL? and also how to reset VGA screen? here's the sample code i cant figure out what is wrong. thanks! module vga_sync...
Altera_Forum
Honored Contributor
17 years agomodule VGA3 (clk, reset, ps2_data, ps2_clk, h_sync, v_sync,rgb);
input clk, reset; input ps2_data, ps2_clk; output h_sync, v_sync; output wire [2:0] rgb; wire [6:0] ascii_in; wire write_disable, write_enable; //reg Transmit_on; //localparam Enter_key = 8'h0A; // body // instantiate keyboard scan code circuit keyboard_code keyboard_controller_block_unit (.clk(clk), .reset(reset), .ps2_data(ps2_data), .ps2_clk(ps2_clk), .read_code(write_disable), .write_enable(write_enable), .ascii_code(ascii_in)); // instantiate top level vga display circuit top_vga_display_controller vga_display_controller_block_unit (.clk(clk), .reset(reset), .w_enable(write_disable), .ascii_in(ascii_in), .h_sync(h_sync), .v_sync(v_sync), .rgb(rgb)); /* always @* if(ascii_in == Enter_key) Transmit_on = 1; else Transmit_on = 0; */ //assign write_disable = ~Transmit_on; assign write_disable = ~write_enable; endmodule