Modelsim Simulation Binary Arithmetic Operation
Modelsim Simulation Binary Arithmetic Operation
Simulation on Modelsim
Block Diagram of four-bit binary ALU:
Truth Table for 4-Bit Binary ALU:
Logic Diagram of Proposed 4-Bit Binary ALU:
RESULT OF LOGIC UNIT OF Binary and ALU OUTPUT WAVEFORM OF LOGIC UNIT
In this given waveform we can see the simulation result of logic unit simulated using Modelsim 6.2. Input
signals are applied at the input ports and at out port we can see the result.
RESULT OF ARITHMETIC UNIT OF Binary and ALU OUTPUT WAVEFORM OF ARITHMETIC UNIT
OF ALU:
In this given waveform we can see the simulation result of arithmetic unit simulated using Modelsim
6.2. Input signals are applied at the input ports and at out port we can see the result.
IMPLEMENTATION OF BINARY AND SCHEMATIC OF ALU:
The schematic for Binary and ALU generated by LEONARDO SPECTRUM is:
IMPLEMENTATION OF CRITICAL PATH FOR Binary and ALU:
The CRITICAL PATH for Binary and ALU generated by LEONARDO SPECTRUM is shown
module
ALU_program(clk,a,b,op,alu_out);
// test bench
module
alu_test();
// Inputs
reg
clk;
reg
[3:0]
a;
reg [3:0] b;
reg [1:0] op;
// Outputs
wire [3:0] alu_out;
ALU_program a1(clk,a,b,op,alu_out);
initial begin
// Initialize
Inputs
clk=1'b0;
op = 2'b00; a=4'b0001;b=4'b0011;
#20; op = 2'b01;
a=4'b0001;b=4'b0011;
#20;
op = 2'b10; a=4'b0001;b=4'b0011;
#20; op = 2'b11;
a=4'b0001;b=4'b0011;
# 20;
end