data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v
1: b"%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v:22: Cannot find file containing module: 'CLKMANAGER'\n    CLKMANAGER clkManager(\n    ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/502135797/Lab10_April_27_2022/Code,data/full_repos/permissive/502135797/CLKMANAGER\n             data/full_repos/permissive/502135797/Lab10_April_27_2022/Code,data/full_repos/permissive/502135797/CLKMANAGER.v\n             data/full_repos/permissive/502135797/Lab10_April_27_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/Lab10_April_27_2022/Code/top.v:31: Cannot find file containing module: 'fifo'\n    fifo fifo_wrapper(\n    ^~~~\n%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v:43: Cannot find file containing module: 'SERIALIZER'\n    SERIALIZER serial_wrapper (\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v:53: Cannot find file containing module: 'PWM'\n    PWM redLED(\n    ^~~\n%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v:61: Cannot find file containing module: 'PWM'\n    PWM greenLED(\n    ^~~\n%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v:69: Cannot find file containing module: 'PWM'\n    PWM blueLED(\n    ^~~\n%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v:77: Cannot find file containing module: 'FSM'\n    FSM fsm(\n    ^~~\n%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/top.v:86: Cannot find file containing module: 'SEGDRIVE'\n    SEGDRIVE seg7driver_wrapper(\n    ^~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module top  
(
    input[3:0] clkManagerSW,
    input[11:0] in,
    input clk, 
    input rst,
    input writebut,
    input readbut,
    input pullbut,
    input switchProfileBtn,
    output full,
    output empty,
    output [6:0] Cnode1,
    output [7:0] AN1,
    output seg,
    output[5:0] ledOutput
    );
    wire clkMgrOut;
    CLKMANAGER clkManager(
    .clk(clk),
    .rst(rst),
    .SW(clkManagerSW),
    .clkout(clkMgrOut)
    );
    
    
    
    fifo fifo_wrapper(
   .data_in(in),
   .clk(clkMgrOut),
   .write(writebut),
   .read(readbut),
   .data_out(seg7Digit[23:12]),
   .fifo_full(full),
   .fifo_empty(empty)
    
    );
    
    wire [31:0] seg7Digit; 
    SERIALIZER serial_wrapper (
    .pull_in(seg7Digit[23:12]),
    .pull_but(pullbut),
    .out_red(seg7Digit[3:0]),
    .out_green(seg7Digit[7:4]),
    .out_blue(seg7Digit[11:8])
    );
    
    wire tmpEn = 1'b1; 
    wire [2:0] tmpLEDOUT; 
    PWM redLED(
    .inputSW(seg7Digit[3:0]),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[0])
    );
    
    PWM greenLED(
    .inputSW(seg7Digit[7:4]),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[1])
    );
    
    PWM blueLED(
    .inputSW(seg7Digit[11:8]),
    .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])
    );
    
    SEGDRIVE seg7driver_wrapper(
        .nexysCLK(clk), 
        .inDigit(seg7Digit),
        .Cnode(Cnode1),
        .dp(seg),
        .AN(AN1)
    );
    
endmodule
module top  
(
    input[3:0] clkManagerSW,
    input[11:0] in,
    input clk, 
    input rst,
    input writebut,
    input readbut,
    input pullbut,
    input switchProfileBtn,
    output full,
    output empty,
    output [6:0] Cnode1,
    output [7:0] AN1,
    output seg,
    output[5:0] ledOutput
    );

    wire clkMgrOut;
    CLKMANAGER clkManager(
    .clk(clk),
    .rst(rst),
    .SW(clkManagerSW),
    .clkout(clkMgrOut)
    );
    
    
    
    fifo fifo_wrapper(
   .data_in(in),
   .clk(clkMgrOut),
   .write(writebut),
   .read(readbut),
   .data_out(seg7Digit[23:12]),
   .fifo_full(full),
   .fifo_empty(empty)
    
    );
    
    wire [31:0] seg7Digit; 
    SERIALIZER serial_wrapper (
    .pull_in(seg7Digit[23:12]),
    .pull_but(pullbut),
    .out_red(seg7Digit[3:0]),
    .out_green(seg7Digit[7:4]),
    .out_blue(seg7Digit[11:8])
    );
    
    wire tmpEn = 1'b1; 
    wire [2:0] tmpLEDOUT; 
    PWM redLED(
    .inputSW(seg7Digit[3:0]),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[0])
    );
    
    PWM greenLED(
    .inputSW(seg7Digit[7:4]),
    .clk(clkMgrOut), 
    .rst(rst), 
    .en(tmpEn),
    .result(tmpLEDOUT[1])
    );
    
    PWM blueLED(
    .inputSW(seg7Digit[11:8]),
    .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])
    );
    
    SEGDRIVE seg7driver_wrapper(
        .nexysCLK(clk), 
        .inDigit(seg7Digit),
        .Cnode(Cnode1),
        .dp(seg),
        .AN(AN1)
    );
    
endmodule