data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v
1: b"%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:40: Cannot find file containing module: 'oneshot'\noneshot pulser(\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/194450802/ps2_adapter,data/full_repos/permissive/194450802/oneshot\n             data/full_repos/permissive/194450802/ps2_adapter,data/full_repos/permissive/194450802/oneshot.v\n             data/full_repos/permissive/194450802/ps2_adapter,data/full_repos/permissive/194450802/oneshot.sv\n             oneshot\n             oneshot.v\n             oneshot.sv\n             obj_dir/oneshot\n             obj_dir/oneshot.v\n             obj_dir/oneshot.sv\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:46: Cannot find file containing module: 'keyboard'\nkeyboard kbd(\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:56: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp0(history[1][3:0],HEX0);\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:57: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp1(history[1][7:4],HEX1);\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:59: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp2(history[2][3:0],HEX2);\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:60: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp3(history[2][7:4],HEX3);\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:62: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp4(history[3][3:0],HEX4);\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:63: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp5(history[3][7:4],HEX5);\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:65: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp6(history[4][3:0],HEX6);\n^~~~~~~~\n%Error: data/full_repos/permissive/194450802/ps2_adapter/keyboard_test.v:66: Cannot find file containing module: 'hex_7seg'\nhex_7seg dsp7(history[4][7:4],HEX7);\n^~~~~~~~\n%Error: Exiting due to 10 error(s)\n"
module keyboard_test(

  input  CLOCK_50,

  input  [3:0]  KEY,

  input  [17:0]  SW,

  output  [6:0]  HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7,

  output  [8:0]  LEDG,
  output  [17:0]  LEDR,

  input	PS2_DAT,
  input	PS2_CLK


);





wire RST;
assign RST = KEY[0];



assign LEDR[17:0] = SW[17:0];


assign LEDG = 0;

wire reset = 1'b0;
wire [7:0] scan_code;

reg [7:0] history[1:4];
wire read, scan_ready;

oneshot pulser(
   .pulse_out(read),
   .trigger_in(scan_ready),
   .clk(CLOCK_50)
);

keyboard kbd(
  .keyboard_clk(PS2_CLK),
  .keyboard_data(PS2_DAT),
  .clock50(CLOCK_50),
  .reset(reset),
  .read(read),
  .scan_ready(scan_ready),
  .scan_code(scan_code)
);

hex_7seg dsp0(history[1][3:0],HEX0);
hex_7seg dsp1(history[1][7:4],HEX1);

hex_7seg dsp2(history[2][3:0],HEX2);
hex_7seg dsp3(history[2][7:4],HEX3);

hex_7seg dsp4(history[3][3:0],HEX4);
hex_7seg dsp5(history[3][7:4],HEX5);

hex_7seg dsp6(history[4][3:0],HEX6);
hex_7seg dsp7(history[4][7:4],HEX7);



always @(posedge scan_ready)
begin
	history[4] <= history[3];
	history[3] <= history[2];
	history[2] <= history[1];
	history[1] <= scan_code;
end
	




endmodule
module keyboard_test(

  input  CLOCK_50,

  input  [3:0]  KEY,

  input  [17:0]  SW,

  output  [6:0]  HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7,

  output  [8:0]  LEDG,
  output  [17:0]  LEDR,

  input	PS2_DAT,
  input	PS2_CLK


);






wire RST;
assign RST = KEY[0];



assign LEDR[17:0] = SW[17:0];


assign LEDG = 0;

wire reset = 1'b0;
wire [7:0] scan_code;

reg [7:0] history[1:4];
wire read, scan_ready;

oneshot pulser(
   .pulse_out(read),
   .trigger_in(scan_ready),
   .clk(CLOCK_50)
);

keyboard kbd(
  .keyboard_clk(PS2_CLK),
  .keyboard_data(PS2_DAT),
  .clock50(CLOCK_50),
  .reset(reset),
  .read(read),
  .scan_ready(scan_ready),
  .scan_code(scan_code)
);

hex_7seg dsp0(history[1][3:0],HEX0);
hex_7seg dsp1(history[1][7:4],HEX1);

hex_7seg dsp2(history[2][3:0],HEX2);
hex_7seg dsp3(history[2][7:4],HEX3);

hex_7seg dsp4(history[3][3:0],HEX4);
hex_7seg dsp5(history[3][7:4],HEX5);

hex_7seg dsp6(history[4][3:0],HEX6);
hex_7seg dsp7(history[4][7:4],HEX7);



always @(posedge scan_ready)
begin
	history[4] <= history[3];
	history[3] <= history[2];
	history[2] <= history[1];
	history[1] <= scan_code;
end
	




endmodule