Tie 2 inputs together. Then tie the other 2 inputs together.
You can construct a NAND gate using relays. If the contacts are in series, it is an AND gate. If the contacts are in parallel, it is an OR gate. Depending on which contact you use, it is a NOT gate. Simply pick the right combination of contacts and the meaning of the signal, and you can consider it to be a NAND gate.
This is a term from digital electronis referring to a Negated AND or NOT AND gate. A NAND gate is a logic gate that produces an output which is false only if all its inputs are true. Boolean functions are activated by use of NAND gates.
A NAND gate can be used as an oscillator or as an amplifier in a very rudimentary transmitter. (If both inputs of a NAND gate are tied together, it inverts the incoming signal. Chain two NANDs together with the outputs fed back through a crystal and you have a quick, easy oscillator. Chain another NAND or two or three with the inputs tied together and the output right into another NAND and you have a simple low power amplifier.)
NAND gates are universal gates and can be used to construct any of the logic gates (AND, OR, NOT, NOR, XOR, XNOR). The easiest way to figure this out is to use basic Boolean Laws. For instance, to create a NOT gate (A'), tie one of the NAND gate's input to logic high: (A+1)' = A'. To create an AND gate (AxB), use two NANDs in series, with the second one configured as an inverter: (AxB) = ((AxB)')'
Given two inputs, A and B. Use one NAND as an inverter (one source to both inputs) for A. Do the same for B. Use one NAND gate with inputs \A (not A, the output from the first gate) and B. Use one NAND gate with inputs A and \B. Use one last NAND gate with inputs coming from the two previous gates. Its output will behave like an XOR gate. Alternatively: Gates G1, G2, G3, G4, arrange in a diamond with G1 and G4 at the left and right vertices, A input along top edge, B input along bottom edge. G2 at top center, G3 at bottom center. A goes to G1 and G2, B goes to G1 and G3, G2 and G3 go to G4. Net list: A - G1i1 A - G2I1 B - G1i2 B - G3I2 G1o - G2i2 G1o - G3i1 G2o - G4i1 G3o - G4i2 G4o - A^B
No. OR is not functionally complete, so you can not use it to derive any other logical expression. The reason for this is because you can only construct the following expressions out of only OR gates: A OR B A OR A Because of the Idempotency theorem, A OR A simply reduces to A, so we are left with A OR B, which we can not use to derive any other logical circuits. At the very least, we would also need a NOT gate. This is why NOR and NAND are functionally complete: you can derive a NOT gate by using A NAND A or A NOR A.
No. OR is not functionally complete, so you can not use it to derive any other logical expression. The reason for this is because you can only construct the following expressions out of only OR gates: A OR B A OR A Because of the Idempotency theorem, A OR A simply reduces to A, so we are left with A OR B, which we can not use to derive any other logical circuits. At the very least, we would also need a NOT gate. This is why NOR and NAND are functionally complete: you can derive a NOT gate by using A NAND A or A NOR A.
NAND AND NOR gates are called universal gates , becaus with a combination NAND and NOR gates alone, it's possible to create all other logic gates like AND, OR, XOR etc and you can design any logic circuit. eg: inverter-- nand with inputs shorted. and ------ nand followed by a inverter(using nand). or--------- giving inverted inputs to nand gate.
it is made bu use ing nand gates logic
It means that C is the inverse of A. Implementing the equation C = !A in basic logic gates requires the use of an inverter. An inverter can be made from a dedicated inverter gate, if available, or from a NAND gate with n inputs, where all n inputs are connected to A.
Below code can implement NAND gate in VHDL. The code is written in behavioral model. Library ieee; use ieee.std_logic_1164.all; Entity gates is port (a,b : in std_logic; c : out std_logic); end gates ; architecture and1 of gates is begin process(a,b) Begin If (a=1 and b=1) then C<='0'; Else C<= '1'; End if; End process; End and1;
You can use a second gate on the same IC to invert the output (most OR-gate ICs I know of have 4 gates per chip). Do this by tying the output of the first gate to both inputs of the spare gate.