data/full_repos/permissive/502135797/Lab9_April_20_2022/Code/top.v
1: b"%Error: data/full_repos/permissive/502135797/Lab9_April_20_2022/Code/top.v:15: Cannot find file containing module: 'CLKMANAGER'\n    CLKMANAGER clkManager(\n    ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/502135797/Lab9_April_20_2022/Code,data/full_repos/permissive/502135797/CLKMANAGER\n             data/full_repos/permissive/502135797/Lab9_April_20_2022/Code,data/full_repos/permissive/502135797/CLKMANAGER.v\n             data/full_repos/permissive/502135797/Lab9_April_20_2022/Code,data/full_repos/permissive/502135797/CLKMANAGER.sv\n             CLKMANAGER\n             CLKMANAGER.v\n             CLKMANAGER.sv\n             obj_dir/CLKMANAGER\n             obj_dir/CLKMANAGER.v\n             obj_dir/CLKMANAGER.sv\n%Error: data/full_repos/permissive/502135797/Lab9_April_20_2022/Code/top.v:23: Cannot find file containing module: 'PWM'\n    PWM redLED(\n    ^~~\n%Error: data/full_repos/permissive/502135797/Lab9_April_20_2022/Code/top.v:31: Cannot find file containing module: 'PWM'\n    PWM greenLED(\n    ^~~\n%Error: data/full_repos/permissive/502135797/Lab9_April_20_2022/Code/top.v:39: Cannot find file containing module: 'PWM'\n    PWM blueLED(\n    ^~~\n%Error: data/full_repos/permissive/502135797/Lab9_April_20_2022/Code/top.v:47: Cannot find file containing module: 'FSM'\n    FSM fsm(\n    ^~~\n%Error: Exiting due to 5 error(s)\n"
module top(
    input[3:0] clkManagerSW,
    input[3:0] redSW,
    input[3:0] greenSW,
    input[3:0] blueSW, 
    input clk, 
    input rst,
    input switchProfileBtn,
    output[5:0] ledOutput
    );
    wire clkMgrOut;
    CLKMANAGER clkManager(
    .clk(clk),
    .rst(rst),
    .SW(clkManagerSW),
    .clkout(clkMgrOut)
    );
    wire tmpEn = 1'b1; 
    wire [2:0] tmpLEDOUT; 
    PWM redLED(
    .inputSW(redSW),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[0])
    );
    
    PWM greenLED(
    .inputSW(greenSW),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[1])
    );
    
    PWM blueLED(
    .inputSW(blueSW),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[2])
    );
    
    FSM fsm(
    .sel(tmpLEDOUT),
    .fsmBTN(switchProfileBtn),
    .rst(rst),
    .clk(clkMgrOut),
    .led1(ledOutput[2:0]),
    .led2(ledOutput[5:3])
    );
    
endmodule
module top(
    input[3:0] clkManagerSW,
    input[3:0] redSW,
    input[3:0] greenSW,
    input[3:0] blueSW, 
    input clk, 
    input rst,
    input switchProfileBtn,
    output[5:0] ledOutput
    );

    wire clkMgrOut;
    CLKMANAGER clkManager(
    .clk(clk),
    .rst(rst),
    .SW(clkManagerSW),
    .clkout(clkMgrOut)
    );
    wire tmpEn = 1'b1; 
    wire [2:0] tmpLEDOUT; 
    PWM redLED(
    .inputSW(redSW),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[0])
    );
    
    PWM greenLED(
    .inputSW(greenSW),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[1])
    );
    
    PWM blueLED(
    .inputSW(blueSW),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[2])
    );
    
    FSM fsm(
    .sel(tmpLEDOUT),
    .fsmBTN(switchProfileBtn),
    .rst(rst),
    .clk(clkMgrOut),
    .led1(ledOutput[2:0]),
    .led2(ledOutput[5:3])
    );
    
endmodule