EEE 306 Post LAB 5
EEE 306 Post LAB 5
EEE Department
Post LAB Report
endmodule
ⅳ. Truth Table
ⅴ. Text Bench Code
module threeinput;
// Inputs
reg A;
reg B;
reg C;
// Outputs
wire F1;
initial begin
// Initialize Inputs
A = 0;
B = 0;
C = 0;
end
endmodule
ⅵ. Timing Diagram
2.
a) Truth Table:
A B C F2
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
b) F2(A, B, C) =(A+B). (A+C)
Apply the Distributive Law: A. (B + C) = A. B + A. C
F2(A, B, C) = A. (B + C) = A. B + A. C
F2(A, B, C) = A. B + A. C
c) ⅰ.
Code:
module bb(
input wire A,
input wire B,
input wire C,
output reg F2
);
always @(A or B or C)
begin
case (1'b1)
A: F2 = 1;
(B & C): F2 = 1;
default: F2 = 0;
endcase
end
endmodule
ⅱ. Gate Level Schematic
ⅲ.Technology Schematic
ⅳ. LUT (Truth table)
// Inputs
reg A;
reg B;
reg C;
// Outputs
wire F2;
// Initialize Inputs
A = 0;
B = 0;
C = 0;
#100;
#50
#50
#50
#50
#50
#50
end
endmodule
ⅵ. Timing Diagram