Lab
-
Upload
navyasanuj1 -
Category
Documents
-
view
3 -
download
0
Transcript of Lab
![Page 1: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/1.jpg)
SREEBUDHA COLLEGE OF ENGINEERING-PATTOR
VHDL PROGRAMMING LABORATORY RECORD
SUBMITTED BYATHIRA SIVANANDHAN
MTECH EMBEDDED SYSTEM
DEPARTMENT OF ELECTRONICS AND INSTRUMENTATION-2010 TO 2012 BATCH
![Page 2: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/2.jpg)
DATE:
EXPERIMENT NO: 1 ARITHEMATIC CIRCUITS
1.A HALF ADDER
AIM:
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. Start the program.2. Include the IEEE library and package.3. Declare the entity of half adder.4. Declare the input and output ports.5. End the entity.6. Declare the architecture.7. Define the functionality of the circuit at the behavioural level using the given
statement.8. End the architecture.9. Stimulate the waveform.
![Page 3: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/3.jpg)
1.B FULL ADDER
AIM:
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. Start the program.2. Include the IEEE library and package.3. Declare the entity of full adder.4. Declare the input and output ports.5. End the entity.6. Declare the architecture.7. Define the functionality of the circuit at the behavioural level using the given
statement.8. End the architecture.9. Stimulate the waveform.
![Page 4: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/4.jpg)
DATE:
EXPERIMENT NO: 2
2A.HALF ADDER USING NAND GATES
AIM:
To write VHDL program to implement half adder using NAND gates.
ALGORITHM
1. Start the low level program.2. Include the IEEE library and package.3. Declare the entity for the component-NAND gate.4. Declare the input and output ports of NAND gate.5. End the entity.6. Declare the architecture.7. 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.
![Page 5: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/5.jpg)
2B.FULL ADDER USING NAND GATES
AIM:
To write VHDL program to implement full adder using NAND gates.
ALGORITHM
1. Start the low level program.2. Include the IEEE library and package.3. Declare the entity for the component-NAND.4. Declare the input and output ports of NAND gate.5. End the entity.6. Declare the architecture.7. 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.
![Page 6: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/6.jpg)
DATE:
EXPERIMENT NO: 3
3A.FULLADDER USING NOR GATES
AIM:
To write VHDL program to implement Full adder using NOR gates.
ALGORITHM
1. Start the low level program.2. Include the IEEE library and package.3. Declare the entity for the component ie NOR gate.4. Declare the input and output ports of NOR gate.5. End the entity.6. Declare the architecture.7. 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.
![Page 7: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/7.jpg)
3.B HALFADDER USING NOR GATES
AIM:
To write VHDL program to implement Half adder using NOR gates.
ALGORITHM
1. Start the low level program.2. Include the IEEE library and package.3. Declare the entity for the component ie NOR gate.4. Declare the input and output ports of NOR gate.5. End the entity.6. Declare the architecture.7. 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.
![Page 8: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/8.jpg)
DATE:
EXPERIMENT NO: 4
4 A HALF SUBTRACTOR USING NAND GATES
AIM:
To write VHDL program to implement Half Subtractor usingNAND gates.
ALGORITHM
1. Start the low level program.2. Include the IEEE library and package.3. Declare the entity for the component-NAND gate.4. Declare the input and output ports of NAND gate.5. End the entity.6. Declare the architecture.7. 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.
![Page 9: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/9.jpg)
4 B FULL SUBTRACTOR USING NOR GATES
AIM:
To write VHDL program to implement Full Subtractor using NOR gates.
ALGORITHM
1. Start the low level program.2. Include the IEEE library and package.3. Declare the entity for the component ie NOR gate.4. Declare the input and output ports of NOR gate.5. End the entity.6. Declare the architecture.7. 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.
![Page 10: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/10.jpg)
DATE:
EXPERIMENT NO: 5
8:1 MULTIPLEXER USING 4:1 MULTIPLEXER AND 2:1 MULTIPLEXER
AIM:
To write VHDL program to implement 8:1 Multiplexer using 4:1 Multiplexer and 2:1 Multiplexer.
ALGORITHM
1. Start the low level program of 2:1 Multiplexer.2. Include the IEEE library and package.3. Declare the entity for the 2:1 Multiplexer and declare the input and output ports.4. End the entity.5. Declare the architecture of 2:1 Multiplexer.6. Define the functionality of the circuit at the behavioural level using the given
statement.7. End the architecture.8. Start the low level program of 4:1 Multiplexer.9. Include the IEEE library and package.10. Declare the entity for the 4:1 Multiplexer and declare the input and output ports.11. End the entity.12. Declare the architecture of 4:1 Multiplexer.13. Define the functionality of the circuit at the behavioural level using the given
statement.14. End the architecture.15. Start the top level program.16. Include the IEEE library and package.17. Declare the entity for the 8:1 Multiplexer and declare the input and output ports.18. End the entity.19. Declare the architecture.20. Call component 2:1 Multiplexer in to the top level program.21. End component.22. Call component 4:1 Multiplexer in to the top level program.23. End component.24. Signal declaration.25. Define the circuit at the structural level by port mapping.26. End the architecture.27. Stimulate the waveform.
![Page 11: Lab](https://reader035.fdocuments.in/reader035/viewer/2022071920/55cf9a70550346d033a1be9e/html5/thumbnails/11.jpg)