data/full_repos/permissive/505451992/EE_TOP.v
1: b"%Error: data/full_repos/permissive/505451992/EE_TOP.v:35: Cannot find file containing module: 'OSCH'\n  OSCH #(\n  ^~~~\n        ... Looked in:\n             data/full_repos/permissive/505451992,data/full_repos/permissive/505451992/OSCH\n             data/full_repos/permissive/505451992,data/full_repos/permissive/505451992/OSCH.v\n             data/full_repos/permissive/505451992,data/full_repos/permissive/505451992/OSCH.sv\n             OSCH\n             OSCH.v\n             OSCH.sv\n             obj_dir/OSCH\n             obj_dir/OSCH.v\n             obj_dir/OSCH.sv\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:55: Cannot find file containing module: 'debounce'\ndebounce dba(\n^~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:63: Cannot find file containing module: 'debounce'\ndebounce dbb(\n^~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:72: Cannot find file containing module: 'encoder'\n    encoder ecd(.reset(reset),\n    ^~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:77: Cannot find file containing module: 'Clock'\n     Clock cok(.reset(reset),\n     ^~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:80: Cannot find file containing module: 'Converters'\n     Converters cvt(.PPR(PPR),\n     ^~~~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:84: Cannot find file containing module: 'PWM_Generator'\n     PWM_Generator pga(\n     ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:92: Cannot find file containing module: 'State_read'\n         State_read str(\n         ^~~~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:100: Cannot find file containing module: 'PWM_Receiver'\n        PWM_Receiver prv(\n        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:109: Cannot find file containing module: 'Pendulum'\n    Pendulum pdm(\n    ^~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:138: Cannot find file containing module: 'Rate_switch'\n   Rate_switch rsh(.reset(reset),\n   ^~~~~~~~~~~\n%Error: data/full_repos/permissive/505451992/EE_TOP.v:142: Cannot find file containing module: 'PPR_switch'\n   PPR_switch psh(.reset(reset),\n   ^~~~~~~~~~\n%Error: Exiting due to 12 error(s)\n"
module EE_TOP(
input reset,
input [3:0]PR,
input[2:0] R,
input A,
input B,


input PWM_Input,

output PWM_AB,
output Drive,
output     Load,
output     Drive_Led,
output     Load_Led
    );


wire [23:0] Rate;
wire [9:0] PPR;
wire signed [9:0] P_AB;
wire signed [9:0] P_CD;
wire [9:0] Position_AB;
wire [9:0] Position_CD;
wire [9:0] Position_Pen;

wire [1:0] State;

wire clk;
wire B_Db;
wire A_Db;
 
  OSCH #(
    .NOM_FREQ("10.23")
  ) internal_oscillator_inst (
    .STDBY(1'b0), 
    .OSC(clk)
  );     
   




debounce dba(
	.clk(clk),
    .Signal_in(A),
    .Signal_out(A_Db)

    );


debounce dbb(
	.clk(clk),
    .Signal_in(B),
    .Signal_out(B_Db)

    );



    encoder ecd(.reset(reset),
     .clk(clk),.A(A_Db),.B(B_Db),.PPR(PPR),.P(P_AB));
     

     
     Clock cok(.reset(reset),
      .clk(clk),.Rate(Rate),.CLK_PWM(CLK_PWM));
     
     Converters cvt(.PPR(PPR),
     .P(P_AB),.Position(Position_AB));

    
     PWM_Generator pga(
     .reset(reset),
     .CLK(CLK_PWM),

     .Position(Position_AB),
     .pwm(PWM_AB)
         );
   
         State_read str(
         .reset(reset),
         .clk(CLK_PWM),
         .pwm(PWM_Input),
         .State(State)
         
             );      
         
        PWM_Receiver prv(
         .reset(reset),
         .clk(CLK_PWM),
          .pwm(PWM_AB),
          .Position( Position_Pen)
         
             );  
            
         
    Pendulum pdm(
               .clk(CLK_PWM),
               .reset(reset),
              .Position( Position_Pen),

               .State(State),
               .Drive(Drive),
               .Load(Load),
               .Drive_Led(Drive_Led),
               .Load_Led(Load_Led)
               
                 );     
         
         
         


    
   Rate_switch rsh(.reset(reset),
        .clk(clk),.R(R),.Rate_1(Rate));
          

   PPR_switch psh(.reset(reset),
         .clk(clk),
         .PR(PR),
      .PPR_1(PPR)
    );
 
      
      
 
      
    
endmodule
module EE_TOP(
input reset,
input [3:0]PR,
input[2:0] R,
input A,
input B,


input PWM_Input,

output PWM_AB,
output Drive,
output     Load,
output     Drive_Led,
output     Load_Led
    );



wire [23:0] Rate;
wire [9:0] PPR;
wire signed [9:0] P_AB;
wire signed [9:0] P_CD;
wire [9:0] Position_AB;
wire [9:0] Position_CD;
wire [9:0] Position_Pen;

wire [1:0] State;

wire clk;
wire B_Db;
wire A_Db;
 
  OSCH #(
    .NOM_FREQ("10.23")
  ) internal_oscillator_inst (
    .STDBY(1'b0), 
    .OSC(clk)
  );     
   




debounce dba(
	.clk(clk),
    .Signal_in(A),
    .Signal_out(A_Db)

    );


debounce dbb(
	.clk(clk),
    .Signal_in(B),
    .Signal_out(B_Db)

    );



    encoder ecd(.reset(reset),
     .clk(clk),.A(A_Db),.B(B_Db),.PPR(PPR),.P(P_AB));
     

     
     Clock cok(.reset(reset),
      .clk(clk),.Rate(Rate),.CLK_PWM(CLK_PWM));
     
     Converters cvt(.PPR(PPR),
     .P(P_AB),.Position(Position_AB));

    
     PWM_Generator pga(
     .reset(reset),
     .CLK(CLK_PWM),

     .Position(Position_AB),
     .pwm(PWM_AB)
         );
   
         State_read str(
         .reset(reset),
         .clk(CLK_PWM),
         .pwm(PWM_Input),
         .State(State)
         
             );      
         
        PWM_Receiver prv(
         .reset(reset),
         .clk(CLK_PWM),
          .pwm(PWM_AB),
          .Position( Position_Pen)
         
             );  
            
         
    Pendulum pdm(
               .clk(CLK_PWM),
               .reset(reset),
              .Position( Position_Pen),

               .State(State),
               .Drive(Drive),
               .Load(Load),
               .Drive_Led(Drive_Led),
               .Load_Led(Load_Led)
               
                 );     
         
         
         


    
   Rate_switch rsh(.reset(reset),
        .clk(clk),.R(R),.Rate_1(Rate));
          

   PPR_switch psh(.reset(reset),
         .clk(clk),
         .PR(PR),
      .PPR_1(PPR)
    );
 
      
      
 
      
    
endmodule