data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/pwm.v
1: b"%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/pwm.v:13: Cannot find file containing module: 'UPCOUNT'\n    UPCOUNT upcounter(\n    ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/502135797/Lab10_April_27_2022/Code,data/full_repos/permissive/502135797/UPCOUNT\n             data/full_repos/permissive/502135797/Lab10_April_27_2022/Code,data/full_repos/permissive/502135797/UPCOUNT.v\n             data/full_repos/permissive/502135797/Lab10_April_27_2022/Code,data/full_repos/permissive/502135797/UPCOUNT.sv\n             UPCOUNT\n             UPCOUNT.v\n             UPCOUNT.sv\n             obj_dir/UPCOUNT\n             obj_dir/UPCOUNT.v\n             obj_dir/UPCOUNT.sv\n%Error: data/full_repos/permissive/502135797/Lab10_April_27_2022/Code/pwm.v:20: Cannot find file containing module: 'comparator'\n    comparator comparator(\n    ^~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module PWM(
    input [3:0] inputSW,
    input clk, rst, en,
    output result
    );
  
    
    wire[3:0] tmpCount; 
    UPCOUNT upcounter(
    .clk(clk), 
    .rst(rst), 
    .en(en),
    .count(tmpCount)
    );
    
    comparator comparator(
    .a(inputSW), 
    .b(tmpCount),
    .result(result)
    );
endmodule
module PWM(
    input [3:0] inputSW,
    input clk, rst, en,
    output result
    );

  
    
    wire[3:0] tmpCount; 
    UPCOUNT upcounter(
    .clk(clk), 
    .rst(rst), 
    .en(en),
    .count(tmpCount)
    );
    
    comparator comparator(
    .a(inputSW), 
    .b(tmpCount),
    .result(result)
    );
endmodule