top.v 336 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
module top (in_a, out_vt);

input [1:0] in_a;
output out_vt;
reg   [2:0] result;
assign out_vt = result;

always @(*)
  begin
     result    = 3'b000;
     case (in_a)
       2'b00 : begin
          result = 3'b101;
       end

       2'b01: begin
          result    = 3'b001;
       end

       default;

     endcase
  end
endmodule