data/full_repos/permissive/169574047/bahavior/bahavior.srcs/sources_1/new/case_statement.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/0f39ae14-a517-4853-8cdd-a899fd854ef0.xml
module case_statement;


reg [1:0] alu_control;
reg x,y,z;

initial
begin
    case (alu_control)
        2'd0 : y = x + z;
        2'd1 : y = x - z;
        2'd2 : y = x * z;
        default : $display("Invalid ALU control signal");
    endcase
end


reg [3:0] encoding;
integer next_state;
initial
begin
    casex (encoding)
        4'b1xxx : next_state = 3;
        4'b1xxx : next_state = 2;
        4'b1xxx : next_state = 1;
        4'b1xxx : next_state = 0;
        default : next_state = 0;
    endcase
end

endmodule
module case_statement;



reg [1:0] alu_control;
reg x,y,z;

initial
begin
    case (alu_control)
        2'd0 : y = x + z;
        2'd1 : y = x - z;
        2'd2 : y = x * z;
        default : $display("Invalid ALU control signal");
    endcase
end


reg [3:0] encoding;
integer next_state;
initial
begin
    casex (encoding)
        4'b1xxx : next_state = 3;
        4'b1xxx : next_state = 2;
        4'b1xxx : next_state = 1;
        4'b1xxx : next_state = 0;
        default : next_state = 0;
    endcase
end

endmodule