data/full_repos/permissive/1599640/fjmem/rtl/fjmem.v
1: b"%Error: data/full_repos/permissive/1599640/fjmem/rtl/fjmem.v:42: Cannot find file containing module: 'fjmem_core'\nfjmem_core #(\n^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/1599640/fjmem/rtl,data/full_repos/permissive/1599640/fjmem_core\n             data/full_repos/permissive/1599640/fjmem/rtl,data/full_repos/permissive/1599640/fjmem_core.v\n             data/full_repos/permissive/1599640/fjmem/rtl,data/full_repos/permissive/1599640/fjmem_core.sv\n             fjmem_core\n             fjmem_core.v\n             fjmem_core.sv\n             obj_dir/fjmem_core\n             obj_dir/fjmem_core.v\n             obj_dir/fjmem_core.sv\n%Error: data/full_repos/permissive/1599640/fjmem/rtl/fjmem.v:66: Cannot find file containing module: 'fjmem_jtag'\nfjmem_jtag jtag (\n^~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module fjmem #(
	parameter adr_width = 24
) (
	input sys_clk,
	input sys_rst,


	output [adr_width-1:0] flash_adr,
	inout [15:0] flash_d,
	output flash_oe_n,
	output flash_we_n,


	output fjmem_update
);

wire jtag_tck;
wire jtag_rst;
wire jtag_update;
wire jtag_shift;
wire jtag_tdi;
wire jtag_tdo;

fjmem_core #(
	.adr_width(adr_width)
) core (
	.sys_clk(sys_clk),
	.sys_rst(sys_rst),


	.jtag_tck(jtag_tck),
	.jtag_rst(jtag_rst),
	.jtag_update(jtag_update),
	.jtag_shift(jtag_shift),
	.jtag_tdi(jtag_tdi),
	.jtag_tdo(jtag_tdo),


	.flash_adr(flash_adr),
	.flash_d(flash_d),
	.flash_oe_n(flash_oe_n),
	.flash_we_n(flash_we_n),


	.fjmem_update(fjmem_update)
);

fjmem_jtag jtag (
	.jtag_tck(jtag_tck),
	.jtag_rst(jtag_rst),
	.jtag_update(jtag_update),
	.jtag_shift(jtag_shift),
	.jtag_tdi(jtag_tdi),
	.jtag_tdo(jtag_tdo)
);

endmodule
module fjmem #(
	parameter adr_width = 24
) (
	input sys_clk,
	input sys_rst,


	output [adr_width-1:0] flash_adr,
	inout [15:0] flash_d,
	output flash_oe_n,
	output flash_we_n,


	output fjmem_update
);


wire jtag_tck;
wire jtag_rst;
wire jtag_update;
wire jtag_shift;
wire jtag_tdi;
wire jtag_tdo;

fjmem_core #(
	.adr_width(adr_width)
) core (
	.sys_clk(sys_clk),
	.sys_rst(sys_rst),


	.jtag_tck(jtag_tck),
	.jtag_rst(jtag_rst),
	.jtag_update(jtag_update),
	.jtag_shift(jtag_shift),
	.jtag_tdi(jtag_tdi),
	.jtag_tdo(jtag_tdo),


	.flash_adr(flash_adr),
	.flash_d(flash_d),
	.flash_oe_n(flash_oe_n),
	.flash_we_n(flash_we_n),


	.fjmem_update(fjmem_update)
);

fjmem_jtag jtag (
	.jtag_tck(jtag_tck),
	.jtag_rst(jtag_rst),
	.jtag_update(jtag_update),
	.jtag_shift(jtag_shift),
	.jtag_tdi(jtag_tdi),
	.jtag_tdo(jtag_tdo)
);

endmodule