Decoder by using 74 138 Program Code : module simpledecoder( input [1:0] A, output reg [3:0] O ); always @* begin case(A) 2'b00: O<=4'b0001; 2'b01: O<=4'b0010; 2'b10: O<=4'b0100; 2'b11: O<=4'b1000; default O<=4'b0000; endcase end endmodule Simple Decoder using DATA FLOW MODELLING 2 by 2 Decoder module simpledecoder( input [1:0] A, output reg [3:0] O ); always @* begin case(A) 2'b00: O<=4'b0001; 2'b01: O<=4...
Programs on Hardware Description Language Verilog


Comments
Post a Comment