data/full_repos/permissive/438129974/gameserver/LFSR.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/438129974/gameserver/LFSR.v:25: 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 \'LFSR1\'\nmodule LFSR1(clk, rst_n, out);\n       ^~~~~\n                                                                            : ... Top module \'LFSR2\'\nmodule LFSR2(clk, rst_n, out);\n       ^~~~~\n%Error: Exiting due to 1 warning(s)\n'
module LFSR2(clk, rst_n, out);
input clk;
input rst_n;
output reg [7:0] out;
reg [7:0] DFF;
wire fir = ((DFF[1]^DFF[2])^(DFF[3]^DFF[7]));
always@(posedge clk)begin
	if(rst_n)begin
		out <= 8'b10111101;
		DFF <= 8'b10111101;
	end else begin
		out <= DFF;
		DFF[7:1] <= DFF[6:0];
		DFF[0] <= fir;
	end
end


endmodule
module LFSR2(clk, rst_n, out);

input clk;
input rst_n;
output reg [7:0] out;
reg [7:0] DFF;
wire fir = ((DFF[1]^DFF[2])^(DFF[3]^DFF[7]));
always@(posedge clk)begin
	if(rst_n)begin
		out <= 8'b10111101;
		DFF <= 8'b10111101;
	end else begin
		out <= DFF;
		DFF[7:1] <= DFF[6:0];
		DFF[0] <= fir;
	end
end


endmodule