Latest Post

VLSI: Half Adder-Full Adder Dataflow Modelling

Half Adder:

Verilog Module Code:

module half_adder(
    input a,
    input b,
    output sum 
    output carry);
assign sum = a ^ b ;
assign carry = a & b;
endmodule



Full Adder:

Verilog Module Code:

module full_adder(
    input a,
    input b,
    input cin,
    output sum 
    output carry);
assign x = a ^ b ;
assign y = x & cin ;
assign z = a & b ;
assign sum = x ^ cin ;
assign carry = y | z ;
endmodule

Popular posts from this blog

VLSI: 1-4 DEMUX (Demultiplexer) Dataflow Modelling with Testbench

VLSI: BCD to Excess 3 and Excess 3 to BCD Dataflow Modelling

Full Subtractor Verilog Code in Structural/Gate Level Modelling with Testbench

Verilog: 4 to 2 Encoder Behavioral Modelling using Case Statement with Testbench Code

VLSI: 8-3 Encoder Dataflow Modelling with Testbench