data/full_repos/permissive/450915285/Inputkey.v
data/verilator_xmls/03730dd5-20fe-4d1a-98ef-9e00de5da2d4.xml
module Inputkey(clk,up,down,left,right,direction);
  input up;
  input down;
  input left;
  input right;
  input clk;
  output [5:0] direction;
  reg [5:0] direction;
  
    always@(posedge clk) begin
    if(left == 1) begin
      direction <= 6'b000001;
	        end 
	        else if(right == 1) begin 
	            direction <= 6'b000010;
	        end 
	        else if(up == 1) begin 
	            direction <= 6'b000100;
	        end 
	        else if(down == 1) begin 
	            direction <=6'b001000;
	        end 
	        else begin 
	            direction <= direction; 
	        end 
	    end
endmodule
module Inputkey(clk,up,down,left,right,direction);

  input up;
  input down;
  input left;
  input right;
  input clk;
  output [5:0] direction;
  reg [5:0] direction;
  
    always@(posedge clk) begin
    if(left == 1) begin
      direction <= 6'b000001;
	        end 
	        else if(right == 1) begin 
	            direction <= 6'b000010;
	        end 
	        else if(up == 1) begin 
	            direction <= 6'b000100;
	        end 
	        else if(down == 1) begin 
	            direction <=6'b001000;
	        end 
	        else begin 
	            direction <= direction; 
	        end 
	    end
endmodule