data/full_repos/permissive/220229160/ql-qlf-plugin/tests/qlf_k6n10f/bram_sdp/bram_sdp.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/220229160/ql-qlf-plugin/tests/qlf_k6n10f/bram_sdp/bram_sdp.v:89: Multiple top level modules\n                                                                                                             : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                                             : ... Top module \'BRAM_SDP_36x1024\'\nmodule BRAM_SDP_36x1024(\n       ^~~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_32x1024\'\nmodule BRAM_SDP_32x1024(\n       ^~~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_18x2048\'\nmodule BRAM_SDP_18x2048(\n       ^~~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_16x2048\'\nmodule BRAM_SDP_16x2048(\n       ^~~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_9x4096\'\nmodule BRAM_SDP_9x4096(\n       ^~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_8x4096\'\nmodule BRAM_SDP_8x4096(\n       ^~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_4x8192\'\nmodule BRAM_SDP_4x8192(\n       ^~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_2x16384\'\nmodule BRAM_SDP_2x16384(\n       ^~~~~~~~~~~~~~~~\n                                                                                                             : ... Top module \'BRAM_SDP_1x32768\'\nmodule BRAM_SDP_1x32768(\n       ^~~~~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module BRAM_SDP #(parameter AWIDTH = 9,
parameter DWIDTH = 32)(
	clk,
	rce,
	ra,
	rq,
	wce,
	wa,
	wd
);

	input  			clk;

	input                   rce;
	input      [AWIDTH-1:0] ra;
	output reg [DWIDTH-1:0] rq;

	input                   wce;
	input      [AWIDTH-1:0] wa;
	input      [DWIDTH-1:0] wd;

	reg        [DWIDTH-1:0] memory[0:(1<<AWIDTH)-1];

	always @(posedge clk) begin
		if (rce)
			rq <= memory[ra];

		if (wce)
			memory[wa] <= wd;
	end

	integer i;
	initial
	begin
		for(i = 0; i < (1<<AWIDTH)-1; i = i + 1)
			memory[i] = 0;
	end

endmodule
module BRAM_SDP #(parameter AWIDTH = 9,
parameter DWIDTH = 32)(
	clk,
	rce,
	ra,
	rq,
	wce,
	wa,
	wd
);


	input  			clk;

	input                   rce;
	input      [AWIDTH-1:0] ra;
	output reg [DWIDTH-1:0] rq;

	input                   wce;
	input      [AWIDTH-1:0] wa;
	input      [DWIDTH-1:0] wd;

	reg        [DWIDTH-1:0] memory[0:(1<<AWIDTH)-1];

	always @(posedge clk) begin
		if (rce)
			rq <= memory[ra];

		if (wce)
			memory[wa] <= wd;
	end

	integer i;
	initial
	begin
		for(i = 0; i < (1<<AWIDTH)-1; i = i + 1)
			memory[i] = 0;
	end

endmodule