data/full_repos/permissive/1835228/tree_wengine.v
1: b"%Error: data/full_repos/permissive/1835228/tree_wengine.v:34: Cannot find file containing module: 'twengine0'\ntwengine0 tweng0( .clk(clk),\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/1835228,data/full_repos/permissive/1835228/twengine0\n             data/full_repos/permissive/1835228,data/full_repos/permissive/1835228/twengine0.v\n             data/full_repos/permissive/1835228,data/full_repos/permissive/1835228/twengine0.sv\n             twengine0\n             twengine0.v\n             twengine0.sv\n             obj_dir/twengine0\n             obj_dir/twengine0.v\n             obj_dir/twengine0.sv\n%Error: data/full_repos/permissive/1835228/tree_wengine.v:44: Cannot find file containing module: 'wengine1'\nwengine1 tweng1( .clk(clk),\n^~~~~~~~\n%Error: data/full_repos/permissive/1835228/tree_wengine.v:53: Cannot find file containing module: 'wengine1'\nwengine1 tweng2( .clk(clk),\n^~~~~~~~\n%Error: data/full_repos/permissive/1835228/tree_wengine.v:62: Cannot find file containing module: 'wengine2'\nwengine2 tweng3( .clk(clk),\n^~~~~~~~\n%Error: data/full_repos/permissive/1835228/tree_wengine.v:70: Cannot find file containing module: 'shifter'\nshifter tcnt_stage0( .clk(clk),\n^~~~~~~\n%Error: Exiting due to 5 error(s)\n"
module tree_wengine( clk,
                     reset,
                     start,
                     msgIn,
                     blkBusy,
                     blkLastBusy,
                     w0,
                     w1,
                     w2,
                     w3
                   );

  input         clk;
  input         reset;
  input         start;
  input [511:0] msgIn;
  
  input  [3:0]  blkBusy;
  input  [2:0]  blkLastBusy; 
  
  output [31:0] w0;
  output [31:0] w1;
  output [31:0] w2;
  output [31:0] w3;

  wire  [543:0] w0tow1;
  wire  [543:0] w1tow2;
  wire  [543:0] w2tow3;

  wire          stage0;
      
twengine0 tweng0( .clk(clk),
                  .reset(reset),
                  .din(msgIn), 
                  .dout(w0tow1),
                  .stage(stage0),
                  .feed(start & ~blkBusy[0]),
                  .next(blkBusy[0]),
                  .wout(w0)
                );

wengine1 tweng1( .clk(clk),
                .reset(reset),
                .din(w0tow1), 
                .dout(w1tow2),
                .feed(blkLastBusy[0] & ~blkBusy[0]),
                .next(blkBusy[1]),
                .wout(w1)
              );

wengine1 tweng2( .clk(clk),
                .reset(reset),
                .din(w1tow2), 
                .dout(w2tow3),
                .feed(blkLastBusy[1] & ~blkBusy[1]),
                .next(blkBusy[2]),
                .wout(w2)
              );

wengine2 tweng3( .clk(clk),
                .reset(reset),
                .din(w2tow3), 
                .feed(blkLastBusy[2] & ~blkBusy[2]),
                .next(blkBusy[3]),
                .wout(w3)
              );

shifter tcnt_stage0( .clk(clk),
                    .reset(reset),
                    .load(start & ~blkBusy[0]),
                    .val(20'b11111000000000000000),
                    .out(stage0)
                  );
    
    
endmodule
module tree_wengine( clk,
                     reset,
                     start,
                     msgIn,
                     blkBusy,
                     blkLastBusy,
                     w0,
                     w1,
                     w2,
                     w3
                   );


  input         clk;
  input         reset;
  input         start;
  input [511:0] msgIn;
  
  input  [3:0]  blkBusy;
  input  [2:0]  blkLastBusy; 
  
  output [31:0] w0;
  output [31:0] w1;
  output [31:0] w2;
  output [31:0] w3;

  wire  [543:0] w0tow1;
  wire  [543:0] w1tow2;
  wire  [543:0] w2tow3;

  wire          stage0;
      
twengine0 tweng0( .clk(clk),
                  .reset(reset),
                  .din(msgIn), 
                  .dout(w0tow1),
                  .stage(stage0),
                  .feed(start & ~blkBusy[0]),
                  .next(blkBusy[0]),
                  .wout(w0)
                );

wengine1 tweng1( .clk(clk),
                .reset(reset),
                .din(w0tow1), 
                .dout(w1tow2),
                .feed(blkLastBusy[0] & ~blkBusy[0]),
                .next(blkBusy[1]),
                .wout(w1)
              );

wengine1 tweng2( .clk(clk),
                .reset(reset),
                .din(w1tow2), 
                .dout(w2tow3),
                .feed(blkLastBusy[1] & ~blkBusy[1]),
                .next(blkBusy[2]),
                .wout(w2)
              );

wengine2 tweng3( .clk(clk),
                .reset(reset),
                .din(w2tow3), 
                .feed(blkLastBusy[2] & ~blkBusy[2]),
                .next(blkBusy[3]),
                .wout(w3)
              );

shifter tcnt_stage0( .clk(clk),
                    .reset(reset),
                    .load(start & ~blkBusy[0]),
                    .val(20'b11111000000000000000),
                    .out(stage0)
                  );
    
    
endmodule