data/full_repos/permissive/18477150/lib/shared/circbuf/sonic_calc_address.sv
1: b"%Error: data/full_repos/permissive/18477150/lib/shared/circbuf/sonic_calc_address.sv:38: Cannot find file containing module: 'sonic_translate_address'\n   sonic_translate_address sta (.ext_read_addr(next_address),\n   ^~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/18477150/lib/shared/circbuf,data/full_repos/permissive/18477150/sonic_translate_address\n             data/full_repos/permissive/18477150/lib/shared/circbuf,data/full_repos/permissive/18477150/sonic_translate_address.v\n             data/full_repos/permissive/18477150/lib/shared/circbuf,data/full_repos/permissive/18477150/sonic_translate_address.sv\n             sonic_translate_address\n             sonic_translate_address.v\n             sonic_translate_address.sv\n             obj_dir/sonic_translate_address\n             obj_dir/sonic_translate_address.v\n             obj_dir/sonic_translate_address.sv\n%Error: Exiting due to 1 error(s)\n"
module sonic_calc_address (

			   addr_out,

			   clk_in, reset, incr, ena
			   ) ;
   input clk_in;
   input reset;
   input incr;
   input ena;
   
   output [14:0] addr_out;

   logic [14:0]  next_address;
   
   always @ ( posedge clk_in or posedge reset) begin
      if (reset)
	next_address <= 0;
      else begin
	 if (incr && ena) begin
	    if (next_address == 15'h7BFF)
	      next_address <= 0;
	    else
	      next_address <= next_address + 15'h1;
	 end
      end
   end

   sonic_translate_address sta (.ext_read_addr(next_address),
				.clk(clk_in),
				.reset(reset),
				.int_read_addr(addr_out)
				);
   
endmodule
module sonic_calc_address (

			   addr_out,

			   clk_in, reset, incr, ena
			   ) ;

   input clk_in;
   input reset;
   input incr;
   input ena;
   
   output [14:0] addr_out;

   logic [14:0]  next_address;
   
   always @ ( posedge clk_in or posedge reset) begin
      if (reset)
	next_address <= 0;
      else begin
	 if (incr && ena) begin
	    if (next_address == 15'h7BFF)
	      next_address <= 0;
	    else
	      next_address <= next_address + 15'h1;
	 end
      end
   end

   sonic_translate_address sta (.ext_read_addr(next_address),
				.clk(clk_in),
				.reset(reset),
				.int_read_addr(addr_out)
				);
   
endmodule