data/full_repos/permissive/502764644/mpeg_audio_video/tb_MPEG_Audio_Video_fill.v
1: b'%Error: data/full_repos/permissive/502764644/mpeg_audio_video/tb_MPEG_Audio_Video_fill.v:1: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/502764644/mpeg_audio_video,data/full_repos/permissive/502764644/defines.v\n             data/full_repos/permissive/502764644/mpeg_audio_video,data/full_repos/permissive/502764644/defines.v.v\n             data/full_repos/permissive/502764644/mpeg_audio_video,data/full_repos/permissive/502764644/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Warning-STMTDLY: data/full_repos/permissive/502764644/mpeg_audio_video/tb_MPEG_Audio_Video_fill.v:78: Unsupported: Ignoring delay on this delayed statement.\nalways begin #41.67 AC97_BIT_CLOCK_I = ~AC97_BIT_CLOCK_I; end\n             ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 error(s), 1 warning(s)\n'
module ZBT_bank(
	MEMORY_BANK_CLK_P,
	MEMORY_BANK_CLKEN_N,
	MEMORY_BANK_WEN_N,
	MEMORY_BANK_WENA_N,
	MEMORY_BANK_WENB_N,
	MEMORY_BANK_WENC_N,
	MEMORY_BANK_WEND_N,
	MEMORY_BANK_ADV_LD_N,
	MEMORY_BANK_OEN_N,
	MEMORY_BANK_CEN_N,
	MEMORY_BANK_ADDR_P,
	MEMORY_BANK_DATA_A_P,
	MEMORY_BANK_DATA_B_P,
	MEMORY_BANK_DATA_C_P,
	MEMORY_BANK_DATA_D_P
);

output 			MEMORY_BANK_CLK_P;
output 			MEMORY_BANK_CLKEN_N;
output 			MEMORY_BANK_WEN_N;
output 			MEMORY_BANK_WENA_N;
output 			MEMORY_BANK_WENB_N;
output 			MEMORY_BANK_WENC_N;
output 			MEMORY_BANK_WEND_N;
output 			MEMORY_BANK_ADV_LD_N;
output 			MEMORY_BANK_OEN_N;
output 			MEMORY_BANK_CEN_N;
output [18:0]	MEMORY_BANK_ADDR_P;
inout  [7:0] 	MEMORY_BANK_DATA_A_P;
inout  [7:0] 	MEMORY_BANK_DATA_B_P;
inout  [7:0] 	MEMORY_BANK_DATA_C_P;
inout  [7:0] 	MEMORY_BANK_DATA_D_P;

reg wen, wena, wenb, wenc, wend;
reg wen_1, wena_1, wenb_1, wenc_1, wend_1;
reg [7:0] reg_file_A [0:524287];
reg [7:0] reg_file_B [0:524287];
reg [7:0] reg_file_C [0:524287];
reg [7:0] reg_file_D [0:524287];

wire [31:0] Data_out, Data_in;
reg [18:0] Address, Address_1;

always @(posedge MEMORY_BANK_CLK_P) begin
	if (~MEMORY_BANK_CLKEN_N) begin
		Address_1 <= MEMORY_BANK_ADDR_P;
		Address <= Address_1;
		wen_1 <= ~MEMORY_BANK_WEN_N;
		wena_1 <= ~MEMORY_BANK_WENA_N;
		wenb_1 <= ~MEMORY_BANK_WENB_N;
		wenc_1 <= ~MEMORY_BANK_WENC_N;
		wend_1 <= ~MEMORY_BANK_WEND_N;
		wen <= wen_1; 
		wena <= wena_1;
		wenb <= wenb_1;
		wenc <= wenc_1;
		wend <= wend_1;
		if (wen) begin
			if (wena) reg_file_A[Address] <= Data_in[7:0];
			if (wenb) reg_file_B[Address] <= Data_in[15:8];
			if (wenc) reg_file_C[Address] <= Data_in[23:16];
			if (wend) reg_file_D[Address] <= Data_in[31:24];
		end 
	end
end

assign Data_out = {
	reg_file_D[Address], reg_file_C[Address], 
	reg_file_B[Address], reg_file_A[Address]};		

IOBUF_F_12 IO_data_buf00 ( .O(Data_in[00]), .IO(MEMORY_BANK_DATA_A_P[0]), .I(Data_out[00]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf01 ( .O(Data_in[01]), .IO(MEMORY_BANK_DATA_A_P[1]), .I(Data_out[01]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf02 ( .O(Data_in[02]), .IO(MEMORY_BANK_DATA_A_P[2]), .I(Data_out[02]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf03 ( .O(Data_in[03]), .IO(MEMORY_BANK_DATA_A_P[3]), .I(Data_out[03]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf04 ( .O(Data_in[04]), .IO(MEMORY_BANK_DATA_A_P[4]), .I(Data_out[04]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf05 ( .O(Data_in[05]), .IO(MEMORY_BANK_DATA_A_P[5]), .I(Data_out[05]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf06 ( .O(Data_in[06]), .IO(MEMORY_BANK_DATA_A_P[6]), .I(Data_out[06]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf07 ( .O(Data_in[07]), .IO(MEMORY_BANK_DATA_A_P[7]), .I(Data_out[07]), .T(MEMORY_BANK_OEN_N));
                                                                                        
IOBUF_F_12 IO_data_buf08 ( .O(Data_in[08]), .IO(MEMORY_BANK_DATA_B_P[0]), .I(Data_out[08]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf09 ( .O(Data_in[09]), .IO(MEMORY_BANK_DATA_B_P[1]), .I(Data_out[09]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf10 ( .O(Data_in[10]), .IO(MEMORY_BANK_DATA_B_P[2]), .I(Data_out[10]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf11 ( .O(Data_in[11]), .IO(MEMORY_BANK_DATA_B_P[3]), .I(Data_out[11]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf12 ( .O(Data_in[12]), .IO(MEMORY_BANK_DATA_B_P[4]), .I(Data_out[12]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf13 ( .O(Data_in[13]), .IO(MEMORY_BANK_DATA_B_P[5]), .I(Data_out[13]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf14 ( .O(Data_in[14]), .IO(MEMORY_BANK_DATA_B_P[6]), .I(Data_out[14]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf15 ( .O(Data_in[15]), .IO(MEMORY_BANK_DATA_B_P[7]), .I(Data_out[15]), .T(MEMORY_BANK_OEN_N));
                                                                                        
IOBUF_F_12 IO_data_buf16 ( .O(Data_in[16]), .IO(MEMORY_BANK_DATA_C_P[0]), .I(Data_out[16]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf17 ( .O(Data_in[17]), .IO(MEMORY_BANK_DATA_C_P[1]), .I(Data_out[17]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf18 ( .O(Data_in[18]), .IO(MEMORY_BANK_DATA_C_P[2]), .I(Data_out[18]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf19 ( .O(Data_in[19]), .IO(MEMORY_BANK_DATA_C_P[3]), .I(Data_out[19]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf20 ( .O(Data_in[20]), .IO(MEMORY_BANK_DATA_C_P[4]), .I(Data_out[20]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf21 ( .O(Data_in[21]), .IO(MEMORY_BANK_DATA_C_P[5]), .I(Data_out[21]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf22 ( .O(Data_in[22]), .IO(MEMORY_BANK_DATA_C_P[6]), .I(Data_out[22]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf23 ( .O(Data_in[23]), .IO(MEMORY_BANK_DATA_C_P[7]), .I(Data_out[23]), .T(MEMORY_BANK_OEN_N));
                                                                                        
IOBUF_F_12 IO_data_buf24 ( .O(Data_in[24]), .IO(MEMORY_BANK_DATA_D_P[0]), .I(Data_out[24]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf25 ( .O(Data_in[25]), .IO(MEMORY_BANK_DATA_D_P[1]), .I(Data_out[25]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf26 ( .O(Data_in[26]), .IO(MEMORY_BANK_DATA_D_P[2]), .I(Data_out[26]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf27 ( .O(Data_in[27]), .IO(MEMORY_BANK_DATA_D_P[3]), .I(Data_out[27]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf28 ( .O(Data_in[28]), .IO(MEMORY_BANK_DATA_D_P[4]), .I(Data_out[28]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf29 ( .O(Data_in[29]), .IO(MEMORY_BANK_DATA_D_P[5]), .I(Data_out[29]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf30 ( .O(Data_in[30]), .IO(MEMORY_BANK_DATA_D_P[6]), .I(Data_out[30]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf31 ( .O(Data_in[31]), .IO(MEMORY_BANK_DATA_D_P[7]), .I(Data_out[31]), .T(MEMORY_BANK_OEN_N));

endmodule
module ZBT_bank(
	MEMORY_BANK_CLK_P,
	MEMORY_BANK_CLKEN_N,
	MEMORY_BANK_WEN_N,
	MEMORY_BANK_WENA_N,
	MEMORY_BANK_WENB_N,
	MEMORY_BANK_WENC_N,
	MEMORY_BANK_WEND_N,
	MEMORY_BANK_ADV_LD_N,
	MEMORY_BANK_OEN_N,
	MEMORY_BANK_CEN_N,
	MEMORY_BANK_ADDR_P,
	MEMORY_BANK_DATA_A_P,
	MEMORY_BANK_DATA_B_P,
	MEMORY_BANK_DATA_C_P,
	MEMORY_BANK_DATA_D_P
);


output 			MEMORY_BANK_CLK_P;
output 			MEMORY_BANK_CLKEN_N;
output 			MEMORY_BANK_WEN_N;
output 			MEMORY_BANK_WENA_N;
output 			MEMORY_BANK_WENB_N;
output 			MEMORY_BANK_WENC_N;
output 			MEMORY_BANK_WEND_N;
output 			MEMORY_BANK_ADV_LD_N;
output 			MEMORY_BANK_OEN_N;
output 			MEMORY_BANK_CEN_N;
output [18:0]	MEMORY_BANK_ADDR_P;
inout  [7:0] 	MEMORY_BANK_DATA_A_P;
inout  [7:0] 	MEMORY_BANK_DATA_B_P;
inout  [7:0] 	MEMORY_BANK_DATA_C_P;
inout  [7:0] 	MEMORY_BANK_DATA_D_P;

reg wen, wena, wenb, wenc, wend;
reg wen_1, wena_1, wenb_1, wenc_1, wend_1;
reg [7:0] reg_file_A [0:524287];
reg [7:0] reg_file_B [0:524287];
reg [7:0] reg_file_C [0:524287];
reg [7:0] reg_file_D [0:524287];

wire [31:0] Data_out, Data_in;
reg [18:0] Address, Address_1;

always @(posedge MEMORY_BANK_CLK_P) begin
	if (~MEMORY_BANK_CLKEN_N) begin
		Address_1 <= MEMORY_BANK_ADDR_P;
		Address <= Address_1;
		wen_1 <= ~MEMORY_BANK_WEN_N;
		wena_1 <= ~MEMORY_BANK_WENA_N;
		wenb_1 <= ~MEMORY_BANK_WENB_N;
		wenc_1 <= ~MEMORY_BANK_WENC_N;
		wend_1 <= ~MEMORY_BANK_WEND_N;
		wen <= wen_1; 
		wena <= wena_1;
		wenb <= wenb_1;
		wenc <= wenc_1;
		wend <= wend_1;
		if (wen) begin
			if (wena) reg_file_A[Address] <= Data_in[7:0];
			if (wenb) reg_file_B[Address] <= Data_in[15:8];
			if (wenc) reg_file_C[Address] <= Data_in[23:16];
			if (wend) reg_file_D[Address] <= Data_in[31:24];
		end 
	end
end

assign Data_out = {
	reg_file_D[Address], reg_file_C[Address], 
	reg_file_B[Address], reg_file_A[Address]};		

IOBUF_F_12 IO_data_buf00 ( .O(Data_in[00]), .IO(MEMORY_BANK_DATA_A_P[0]), .I(Data_out[00]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf01 ( .O(Data_in[01]), .IO(MEMORY_BANK_DATA_A_P[1]), .I(Data_out[01]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf02 ( .O(Data_in[02]), .IO(MEMORY_BANK_DATA_A_P[2]), .I(Data_out[02]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf03 ( .O(Data_in[03]), .IO(MEMORY_BANK_DATA_A_P[3]), .I(Data_out[03]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf04 ( .O(Data_in[04]), .IO(MEMORY_BANK_DATA_A_P[4]), .I(Data_out[04]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf05 ( .O(Data_in[05]), .IO(MEMORY_BANK_DATA_A_P[5]), .I(Data_out[05]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf06 ( .O(Data_in[06]), .IO(MEMORY_BANK_DATA_A_P[6]), .I(Data_out[06]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf07 ( .O(Data_in[07]), .IO(MEMORY_BANK_DATA_A_P[7]), .I(Data_out[07]), .T(MEMORY_BANK_OEN_N));
                                                                                        
IOBUF_F_12 IO_data_buf08 ( .O(Data_in[08]), .IO(MEMORY_BANK_DATA_B_P[0]), .I(Data_out[08]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf09 ( .O(Data_in[09]), .IO(MEMORY_BANK_DATA_B_P[1]), .I(Data_out[09]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf10 ( .O(Data_in[10]), .IO(MEMORY_BANK_DATA_B_P[2]), .I(Data_out[10]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf11 ( .O(Data_in[11]), .IO(MEMORY_BANK_DATA_B_P[3]), .I(Data_out[11]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf12 ( .O(Data_in[12]), .IO(MEMORY_BANK_DATA_B_P[4]), .I(Data_out[12]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf13 ( .O(Data_in[13]), .IO(MEMORY_BANK_DATA_B_P[5]), .I(Data_out[13]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf14 ( .O(Data_in[14]), .IO(MEMORY_BANK_DATA_B_P[6]), .I(Data_out[14]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf15 ( .O(Data_in[15]), .IO(MEMORY_BANK_DATA_B_P[7]), .I(Data_out[15]), .T(MEMORY_BANK_OEN_N));
                                                                                        
IOBUF_F_12 IO_data_buf16 ( .O(Data_in[16]), .IO(MEMORY_BANK_DATA_C_P[0]), .I(Data_out[16]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf17 ( .O(Data_in[17]), .IO(MEMORY_BANK_DATA_C_P[1]), .I(Data_out[17]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf18 ( .O(Data_in[18]), .IO(MEMORY_BANK_DATA_C_P[2]), .I(Data_out[18]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf19 ( .O(Data_in[19]), .IO(MEMORY_BANK_DATA_C_P[3]), .I(Data_out[19]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf20 ( .O(Data_in[20]), .IO(MEMORY_BANK_DATA_C_P[4]), .I(Data_out[20]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf21 ( .O(Data_in[21]), .IO(MEMORY_BANK_DATA_C_P[5]), .I(Data_out[21]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf22 ( .O(Data_in[22]), .IO(MEMORY_BANK_DATA_C_P[6]), .I(Data_out[22]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf23 ( .O(Data_in[23]), .IO(MEMORY_BANK_DATA_C_P[7]), .I(Data_out[23]), .T(MEMORY_BANK_OEN_N));
                                                                                        
IOBUF_F_12 IO_data_buf24 ( .O(Data_in[24]), .IO(MEMORY_BANK_DATA_D_P[0]), .I(Data_out[24]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf25 ( .O(Data_in[25]), .IO(MEMORY_BANK_DATA_D_P[1]), .I(Data_out[25]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf26 ( .O(Data_in[26]), .IO(MEMORY_BANK_DATA_D_P[2]), .I(Data_out[26]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf27 ( .O(Data_in[27]), .IO(MEMORY_BANK_DATA_D_P[3]), .I(Data_out[27]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf28 ( .O(Data_in[28]), .IO(MEMORY_BANK_DATA_D_P[4]), .I(Data_out[28]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf29 ( .O(Data_in[29]), .IO(MEMORY_BANK_DATA_D_P[5]), .I(Data_out[29]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf30 ( .O(Data_in[30]), .IO(MEMORY_BANK_DATA_D_P[6]), .I(Data_out[30]), .T(MEMORY_BANK_OEN_N));
IOBUF_F_12 IO_data_buf31 ( .O(Data_in[31]), .IO(MEMORY_BANK_DATA_D_P[7]), .I(Data_out[31]), .T(MEMORY_BANK_OEN_N));

endmodule