data/full_repos/permissive/208113388/afu/afp/mcp3_decoder3x008.v
data/verilator_xmls/360e08d3-cc38-46f4-b05a-5b4d64dcc465.xml
module mcp3_decoder3x008 (

    input        [2:0] din 
  , output reg   [7:0] dout

  );

  always @*
    case ( din[2:0] )
      3'b111 :  dout[7:0] =  8'b10000000;
      3'b110 :  dout[7:0] =  8'b01000000;
      3'b101 :  dout[7:0] =  8'b00100000; 
      3'b100 :  dout[7:0] =  8'b00010000; 
      3'b011 :  dout[7:0] =  8'b00001000;
      3'b010 :  dout[7:0] =  8'b00000100;
      3'b001 :  dout[7:0] =  8'b00000010; 
      3'b000 :  dout[7:0] =  8'b00000001; 
    endcase

endmodule
module mcp3_decoder3x008 (

    input        [2:0] din 
  , output reg   [7:0] dout

  );


  always @*
    case ( din[2:0] )
      3'b111 :  dout[7:0] =  8'b10000000;
      3'b110 :  dout[7:0] =  8'b01000000;
      3'b101 :  dout[7:0] =  8'b00100000; 
      3'b100 :  dout[7:0] =  8'b00010000; 
      3'b011 :  dout[7:0] =  8'b00001000;
      3'b010 :  dout[7:0] =  8'b00000100;
      3'b001 :  dout[7:0] =  8'b00000010; 
      3'b000 :  dout[7:0] =  8'b00000001; 
    endcase

endmodule