To implement the given logic function using NAND and NOR gates and to verify its operation in Quartus using Verilog programming.
F=((C'.B.A)'(D'.C.A)'(C.B'.A)')' using NAND gate
F=(((C.B'.A)+(D.C'.A)+(C.B'.A))')' using NOR gate
Hardware – PCs, Cyclone II , USB flasher
Software – Quartus prime
A universal gate is a logic gate which can implement any Boolean function without the need to use any other type of logic gate. The NOR gate and NAND gate are universal gates. This means that you can create any logical Boolean expression using only NOR gates or only NAND gates. In practice, this is advantageous since NOR and NAND gates are economical and easier to fabricate than other logic gates. Similarly, an OR gate is typically realised as a NOR gate followed by an inverter.
-
Create a project with required entities.
-
Create a module along with respective file name.
-
Run the respective programs for the given boolean equations.
-
Run the module and get the respective RTL outputs.
-
Create university program(VWF) for getting timing diagram.
-
Give the respective inputs for timing diagram and obtain the results.
Program to design a Implementation of combinational logic using universal gates- and verify its truth table in quartus using Verilog programming.
Developed by: M.Shyam Naveen Raj
RegisterNumber: 212221230099
F=((C'.B.A)'(D'.C.A)'(C.B'.A)')' using NAND gate
module Combination(A,B,C,D,F);
input A,B,C,D;
output F;
wire P,Q,R;
assign P = C&(~B)&(~A);
assign Q = D&(~C)&(~A);
assign R = (~C)&B&(~A);
assign F = (~P&~Q&~R);
endmodule
F=(((C.B'.A)+(D.C'.A)+(C.B'.A))')' using NOR gate
module norcombination(A,B,C,D,F);
input A,B,C,D;
output F;
wire P,Q,R,S;
assign P = C&(~B)&A;
assign Q = D&(~C)&A;
assign R = C&(~B)&A;
assign S = ~(P|Q|R);
not(F,S);
endmodule
Thus implementation of logic functions using NAND and NOR gates is done and its operation is verified in Quartus using Verilog programming.