Professional Documents
Culture Documents
Lab
Lab
Lab
DATE:
ARITHEMATIC CIRCUITS
To write VHDL program to implement half adder using i)With Select Statement ii)When Else Statement iii)If Else Statement iv)Case Statement ALGORITHM 1. 2. 3. 4. 5. 6. 7. Start the program. Include the IEEE library and package. Declare the entity of half adder. Declare the input and output ports. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Stimulate the waveform.
To write VHDL program to implement full adder using i)With Select Statement ii)When Else Statement iii)If Else Statement iv)Case Statement
ALGORITHM
1. 2. 3. 4. 5. 6. 7.
Start the program. Include the IEEE library and package. Declare the entity of full adder. Declare the input and output ports. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Stimulate the waveform.
DATE:
EXPERIMENT NO: 2
2A.HALF AIM: To write VHDL program to implement half adder using NAND gates. ALGORITHM 1. 2. 3. 4. 5. 6. 7. Start the low level program. Include the IEEE library and package. Declare the entity for the component-NAND gate. Declare the input and output ports of NAND gate. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Start the top level program. 10. Include the IEEE library and package. 1. 11.Declare the entity of half adder. 11. Declare the input and output ports of half adder. 12. End the entity. 13. Declare the architecture. 14. Call component ie,NAND gate in to the top level program. 15. End component. 16. Signal declaration. 17. Define the circuit at the structural level by port mapping. 18. End the architecture. 19. Stimulate the waveform.
To write VHDL program to implement full adder using NAND gates. ALGORITHM 1. 2. 3. 4. 5. 6. 7. Start the low level program. Include the IEEE library and package. Declare the entity for the component-NAND. Declare the input and output ports of NAND gate. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Start the top level program. 10. Include the IEEE library and package. 11. Declare the entity of full adder. 12. Declare the input and output ports of full adder. 13. End the entity. 14. Declare the architecture. 15. Call component ie,NAND gate in to the top level program. 16. End component. 17. Signal declaration. 18. Define the circuit at the structural level by port mapping. 19. End the architecture. 20. Stimulate the waveform.
DATE:
EXPERIMENT NO: 3
3A.FULLADDER AIM: To write VHDL program to implement Full adder using NOR gates. ALGORITHM 1. 2. 3. 4. 5. 6. 7. Start the low level program. Include the IEEE library and package. Declare the entity for the component ie NOR gate. Declare the input and output ports of NOR gate. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Start the top level program. 10. Include the IEEE library and package. 11. Declare the entity of full adder. 12. Declare the input and output ports of full adder. 13. End the entity. 14. Declare the architecture. 15. Call component ie,NOR gate in to the top level program. 16. End component. 17. Signal declaration. 18. Define the circuit at the structural level by port mapping. 19. End the architecture. 20. Stimulate the waveform.
3.B AIM:
To write VHDL program to implement Half adder using NOR gates. ALGORITHM 1. 2. 3. 4. 5. 6. 7. Start the low level program. Include the IEEE library and package. Declare the entity for the component ie NOR gate. Declare the input and output ports of NOR gate. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Start the top level program. 10. Include the IEEE library and package. 11. Declare the entity of half adder. 12. Declare the input and output ports of half adder. 13. End the entity. 14. Declare the architecture. 15. Call component ie,NOR gate in to the top level program. 16. End component. 17. Signal declaration. 18. Define the circuit at the structural level by port mapping. 19. End the architecture. 20. Stimulate the waveform.
DATE:
EXPERIMENT NO: 4
4A AIM: To write VHDL program to implement Half Subtractor usingNAND gates. ALGORITHM 1. 2. 3. 4. 5. 6. 7. Start the low level program. Include the IEEE library and package. Declare the entity for the component-NAND gate. Declare the input and output ports of NAND gate. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Start the top level program. 10. Include the IEEE library and package. 11. 11.Declare the entity of half subtractor. 12. Declare the input and output ports of half subtractor. 13. End the entity. 14. Declare the architecture. 15. Call component ie,NAND gate in to the top level program. 16. End component. 17. Signal declaration. 18. Define the circuit at the structural level by port mapping. 19. End the architecture. 20. Stimulate the waveform.
4B AIM:
To write VHDL program to implement Full Subtractor using NOR gates. ALGORITHM 1. 2. 3. 4. 5. 6. 7. Start the low level program. Include the IEEE library and package. Declare the entity for the component ie NOR gate. Declare the input and output ports of NOR gate. End the entity. Declare the architecture. Define the functionality of the circuit at the behavioural level using the given statement. 8. End the architecture. 9. Start the top level program. 10. Include the IEEE library and package. 11. Declare the entity of fullsubtractor. 12. Declare the input and output ports of fullsubtractor. 13. End the entity. 14. Declare the architecture. 15. Call component ie,NOR gate in to the top level program. 16. End component. 17. Signal declaration. 18. Define the circuit at the structural level by port mapping. 19. End the architecture. 20. Stimulate the waveform.
DATE:
EXPERIMENT NO: 5