data/full_repos/permissive/119715647/sim/gameFunct/comparator.v
data/verilator_xmls/35488e2e-d60d-407c-85d0-9a6a13acd089.xml
module comparator(clk, lineNum, newBlockLoc, stacked);
	input clk;
	input [2:0] lineNum;
	input [7:0] newBlockLoc;
	reg [7:0] stackLoc;
	output reg stacked;
		
	always @(posedge clk)begin
		if (lineNum == 0) begin 
			stackLoc <= newBlockLoc;
		end
		else begin
			if(stackLoc == newBlockLoc) begin
				stacked <= 1; 
			end
			else begin 
				stacked <= 0;
			end
		end
	end
endmodule
module comparator(clk, lineNum, newBlockLoc, stacked);

	input clk;
	input [2:0] lineNum;
	input [7:0] newBlockLoc;
	reg [7:0] stackLoc;
	output reg stacked;
		
	always @(posedge clk)begin
		if (lineNum == 0) begin 
			stackLoc <= newBlockLoc;
		end
		else begin
			if(stackLoc == newBlockLoc) begin
				stacked <= 1; 
			end
			else begin 
				stacked <= 0;
			end
		end
	end
endmodule