Latest Post

Ads

VLSI: 4 Bit Adder and 4 Bit Subtractor

4 Bit Adder:
module MultibitAdder(a,b,cin,sum,cout);
input [3:0] a,b;
input cin;
output [3:0]sum;
output cout;
assign {cout,sum}=a+b+cin;
endmodule 4 Bit Subtractor:
module MultibitSubstractor(a,b,bin,difference,bout);
input [3:0] a,b;
input bin;
output [3:0]difference;
output bout;
assign {bout,difference}=a-b-bin;
endmodule

Ads

Popular posts from this blog

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

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

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

VLSI: 4-1 MUX Dataflow Modelling with Testbench

VLSI: Half Subtractor and Full Subtractor Gate Level Modelling