data/full_repos/permissive/198223683/rtl/jt49/hdl/jt49_noise.v
 line:27: before: "("
1: b"%Error: data/full_repos/permissive/198223683/rtl/jt49/hdl/jt49_noise.v:55: Cannot find file containing module: 'jt49_div'\njt49_div #(5) u_div( \n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/198223683/rtl/jt49/hdl,data/full_repos/permissive/198223683/jt49_div\n             data/full_repos/permissive/198223683/rtl/jt49/hdl,data/full_repos/permissive/198223683/jt49_div.v\n             data/full_repos/permissive/198223683/rtl/jt49/hdl,data/full_repos/permissive/198223683/jt49_div.sv\n             jt49_div\n             jt49_div.v\n             jt49_div.sv\n             obj_dir/jt49_div\n             obj_dir/jt49_div.v\n             obj_dir/jt49_div.sv\n%Error: Exiting due to 1 error(s)\n"
module jt49_noise(
  (* direct_enable *) input cen,
    input       clk,
    input       rst_n,
    input [4:0] period,
    output reg  noise
);

reg [5:0]count;
reg [16:0]poly17;
wire poly17_zero = poly17==17'b0;
wire noise_en;
reg last_en;

wire noise_up = noise_en && !last_en;

always @(posedge clk ) if(cen) begin
    noise <= ~poly17[0];
end

always @( posedge clk, negedge rst_n )
  if( !rst_n ) 
    poly17 <= 17'd0;
  else if( cen ) begin
    last_en <= noise_en;
    if( noise_up )
        poly17 <= { poly17[0] ^ poly17[3] ^ poly17_zero, poly17[16:1] };
  end

jt49_div #(5) u_div( 
  .clk    ( clk       ), 
  .cen    ( cen       ),
  .rst_n  ( rst_n     ), 
  .period ( period    ), 
  .div    ( noise_en  ) 
);

endmodule
module jt49_noise(
  (* direct_enable *) input cen,
    input       clk,
    input       rst_n,
    input [4:0] period,
    output reg  noise
);


reg [5:0]count;
reg [16:0]poly17;
wire poly17_zero = poly17==17'b0;
wire noise_en;
reg last_en;

wire noise_up = noise_en && !last_en;

always @(posedge clk ) if(cen) begin
    noise <= ~poly17[0];
end

always @( posedge clk, negedge rst_n )
  if( !rst_n ) 
    poly17 <= 17'd0;
  else if( cen ) begin
    last_en <= noise_en;
    if( noise_up )
        poly17 <= { poly17[0] ^ poly17[3] ^ poly17_zero, poly17[16:1] };
  end

jt49_div #(5) u_div( 
  .clk    ( clk       ), 
  .cen    ( cen       ),
  .rst_n  ( rst_n     ), 
  .period ( period    ), 
  .div    ( noise_en  ) 
);

endmodule