data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new/top.v
1: b"%Error: data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new/top.v:71: Cannot find file containing module: 'Controller_FSM'\nController_FSM controller_inst(\n^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new,data/full_repos/permissive/432862802/Controller_FSM\n             data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new,data/full_repos/permissive/432862802/Controller_FSM.v\n             data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new,data/full_repos/permissive/432862802/Controller_FSM.sv\n             Controller_FSM\n             Controller_FSM.v\n             Controller_FSM.sv\n             obj_dir/Controller_FSM\n             obj_dir/Controller_FSM.v\n             obj_dir/Controller_FSM.sv\n%Error: data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new/top.v:79: Cannot find file containing module: 'Keyboard'\nKeyboard keyboard_inst(\n^~~~~~~~\n%Error: data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new/top.v:99: Cannot find file containing module: 'Single_Note'\nSingle_Note Single_Note_Inst(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new/top.v:121: Cannot find file containing module: 'VGA'\nVGA VGA_inst(\n^~~\n%Error: data/full_repos/permissive/432862802/DigitalPiano.srcs/sources_1/new/top.v:141: Cannot find file containing module: 'Led'\nLed Led_inst(\n^~~\n%Error: Exiting due to 5 error(s)\n"
module top(

    input clk_100,


    input x,


    output [3:0] VGA_R,
    output [3:0] VGA_G,
    output [3:0] VGA_B,
    output VGA_HS,
    output VGA_VS,


    input PS2_CLK,
    input PS2_DATA,


    output AUD_PWM,
    output AUD_SD,


    output [7:0] dig,
    output [7:0] seg
    );


wire [3:0] note_out[3:0];
wire [1:0] octave_out[3:0];


wire [11:0] PWM_LEVEL_OUT; 


wire [9:0] od_level;
wire [9:0] od_level_bottom;


wire tone;


wire [1:0] state;


wire rst_n;


Controller_FSM controller_inst(
    .clk_100(clk_100),
    .x(x),
    .state(state),
    .rst_n(rst_n)
    );


Keyboard keyboard_inst(
    .clk_100(clk_100),
    .state(state),
    .rst_n(rst_n),
    .clock_USB_in(PS2_CLK),
    .data_USB_in(PS2_DATA),
    .note_0(note_out[0]),
    .note_1(note_out[1]),
    .note_2(note_out[2]),
    .note_3(note_out[3]),
    .octave_0(octave_out[0]),
    .octave_1(octave_out[1]),
    .octave_2(octave_out[2]),
    .octave_3(octave_out[3]),
    .od_level(od_level),
    .od_level_bottom(od_level_bottom),
    .tone(tone)
    );


Single_Note Single_Note_Inst(
    .clk_100(clk_100),
    .state(state),
    .rst_n(rst_n),
    .od_level(od_level),
    .od_level_bottom(od_level_bottom),
    .tone(tone),
    .note_0(note_out[0]),
    .note_1(note_out[1]),
    .note_2(note_out[2]),
    .note_3(note_out[3]),
    .octave_0(octave_out[0]),
    .octave_1(octave_out[1]),
    .octave_2(octave_out[2]),
    .octave_3(octave_out[3]),
    .PWM_LEVEL_OUT(PWM_LEVEL_OUT),
    .AUD_PWM(AUD_PWM),
    .AUD_SD(AUD_SD)
    );



VGA VGA_inst(
    .clk_100(clk_100),
    .state(state),
    .note_0(note_out[0]),
    .note_1(note_out[1]),
    .note_2(note_out[2]),
    .note_3(note_out[3]),
    .octave_0(octave_out[0]),
    .octave_1(octave_out[1]),
    .octave_2(octave_out[2]),
    .octave_3(octave_out[3]),
    .pwm_level(PWM_LEVEL_OUT),
    .R_OUT(VGA_R),
    .G_OUT(VGA_G),
    .B_OUT(VGA_B),
    .hsync(VGA_HS),
    .vsync(VGA_VS)
    );


Led Led_inst(
    .clk_100(clk_100),
    .rst_n(rst_n),
    .dig(dig),
    .seg(seg)
    );


endmodule
module top(

    input clk_100,


    input x,


    output [3:0] VGA_R,
    output [3:0] VGA_G,
    output [3:0] VGA_B,
    output VGA_HS,
    output VGA_VS,


    input PS2_CLK,
    input PS2_DATA,


    output AUD_PWM,
    output AUD_SD,


    output [7:0] dig,
    output [7:0] seg
    );



wire [3:0] note_out[3:0];
wire [1:0] octave_out[3:0];


wire [11:0] PWM_LEVEL_OUT; 


wire [9:0] od_level;
wire [9:0] od_level_bottom;


wire tone;


wire [1:0] state;


wire rst_n;


Controller_FSM controller_inst(
    .clk_100(clk_100),
    .x(x),
    .state(state),
    .rst_n(rst_n)
    );


Keyboard keyboard_inst(
    .clk_100(clk_100),
    .state(state),
    .rst_n(rst_n),
    .clock_USB_in(PS2_CLK),
    .data_USB_in(PS2_DATA),
    .note_0(note_out[0]),
    .note_1(note_out[1]),
    .note_2(note_out[2]),
    .note_3(note_out[3]),
    .octave_0(octave_out[0]),
    .octave_1(octave_out[1]),
    .octave_2(octave_out[2]),
    .octave_3(octave_out[3]),
    .od_level(od_level),
    .od_level_bottom(od_level_bottom),
    .tone(tone)
    );


Single_Note Single_Note_Inst(
    .clk_100(clk_100),
    .state(state),
    .rst_n(rst_n),
    .od_level(od_level),
    .od_level_bottom(od_level_bottom),
    .tone(tone),
    .note_0(note_out[0]),
    .note_1(note_out[1]),
    .note_2(note_out[2]),
    .note_3(note_out[3]),
    .octave_0(octave_out[0]),
    .octave_1(octave_out[1]),
    .octave_2(octave_out[2]),
    .octave_3(octave_out[3]),
    .PWM_LEVEL_OUT(PWM_LEVEL_OUT),
    .AUD_PWM(AUD_PWM),
    .AUD_SD(AUD_SD)
    );



VGA VGA_inst(
    .clk_100(clk_100),
    .state(state),
    .note_0(note_out[0]),
    .note_1(note_out[1]),
    .note_2(note_out[2]),
    .note_3(note_out[3]),
    .octave_0(octave_out[0]),
    .octave_1(octave_out[1]),
    .octave_2(octave_out[2]),
    .octave_3(octave_out[3]),
    .pwm_level(PWM_LEVEL_OUT),
    .R_OUT(VGA_R),
    .G_OUT(VGA_G),
    .B_OUT(VGA_B),
    .hsync(VGA_HS),
    .vsync(VGA_VS)
    );


Led Led_inst(
    .clk_100(clk_100),
    .rst_n(rst_n),
    .dig(dig),
    .seg(seg)
    );


endmodule