SlideShare a Scribd company logo
1 of 1
Download to read offline
Answer the questions that follow the VHDL code given below. LIBRARY ieee; USE
ieee.std_logic_1164.ALL; ENTITY ex1_IS PORT (n, cp, n rd: IN st_logic; q: BUFFER integer
RANGE 0 TO 15); END ex1; ARCHITECTURE are OF ex1 IS BEGIN PROCESS (n_cp,
n_rd) BEGIN IF (n_rd = '0') THEN q
Solution
a)n_rd- used to reset the counter
n_cp-used as clock to the counter
b)4 binary bits are there in q;
Q stores 0 t0 15 number so
log2(16)=4

More Related Content

More from mckenziecast21211

Brief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdf
Brief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdfBrief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdf
Brief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdfmckenziecast21211
 
A population has two alleles for a particular gene, A and a, and is .pdf
A population has two alleles for a particular gene, A and a, and is .pdfA population has two alleles for a particular gene, A and a, and is .pdf
A population has two alleles for a particular gene, A and a, and is .pdfmckenziecast21211
 
A 12-year-old male complained of strange odors before loss of consci.pdf
A 12-year-old male complained of strange odors before loss of consci.pdfA 12-year-old male complained of strange odors before loss of consci.pdf
A 12-year-old male complained of strange odors before loss of consci.pdfmckenziecast21211
 
2.Which of the following statements about evolution is falseNonrand.pdf
2.Which of the following statements about evolution is falseNonrand.pdf2.Which of the following statements about evolution is falseNonrand.pdf
2.Which of the following statements about evolution is falseNonrand.pdfmckenziecast21211
 
can someone explain in a easy way chromosome walking I know its w.pdf
can someone explain in a easy way chromosome walking I know its w.pdfcan someone explain in a easy way chromosome walking I know its w.pdf
can someone explain in a easy way chromosome walking I know its w.pdfmckenziecast21211
 
9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdf
9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdf9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdf
9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdfmckenziecast21211
 
Write an informal negation for each of the following statements. Be .pdf
Write an informal negation for each of the following statements. Be .pdfWrite an informal negation for each of the following statements. Be .pdf
Write an informal negation for each of the following statements. Be .pdfmckenziecast21211
 
Write a C++ program which generates and displays a random walk acros.pdf
Write a C++ program which generates and displays a random walk acros.pdfWrite a C++ program which generates and displays a random walk acros.pdf
Write a C++ program which generates and displays a random walk acros.pdfmckenziecast21211
 
true or false1- The grouped frequency table should ideally have.pdf
true or false1- The grouped frequency table should ideally have.pdftrue or false1- The grouped frequency table should ideally have.pdf
true or false1- The grouped frequency table should ideally have.pdfmckenziecast21211
 
The weak D phenotype is thought to arise from several mechanisms. .pdf
The weak D phenotype is thought to arise from several mechanisms. .pdfThe weak D phenotype is thought to arise from several mechanisms. .pdf
The weak D phenotype is thought to arise from several mechanisms. .pdfmckenziecast21211
 
The coding region of a BACTERIAL gene has the following sequence A.pdf
The coding region of a BACTERIAL gene has the following sequence A.pdfThe coding region of a BACTERIAL gene has the following sequence A.pdf
The coding region of a BACTERIAL gene has the following sequence A.pdfmckenziecast21211
 
Regarding the ABO blood group system in humans, if an individual is g.pdf
Regarding the ABO blood group system in humans, if an individual is g.pdfRegarding the ABO blood group system in humans, if an individual is g.pdf
Regarding the ABO blood group system in humans, if an individual is g.pdfmckenziecast21211
 
Peptidoglycan is a unique macromolecule found in cell walls of what k.pdf
Peptidoglycan is a unique macromolecule found in cell walls of what k.pdfPeptidoglycan is a unique macromolecule found in cell walls of what k.pdf
Peptidoglycan is a unique macromolecule found in cell walls of what k.pdfmckenziecast21211
 
On this photo you see skull of Tasmanian Devil - now extinct only big.pdf
On this photo you see skull of Tasmanian Devil - now extinct only big.pdfOn this photo you see skull of Tasmanian Devil - now extinct only big.pdf
On this photo you see skull of Tasmanian Devil - now extinct only big.pdfmckenziecast21211
 
MonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdf
MonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdfMonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdf
MonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdfmckenziecast21211
 
Many DOD components are accomplishing more training in the simulator.pdf
Many DOD components are accomplishing more training in the simulator.pdfMany DOD components are accomplishing more training in the simulator.pdf
Many DOD components are accomplishing more training in the simulator.pdfmckenziecast21211
 
Match the numbered terms to the descriptions that follow. Choose all .pdf
Match the numbered terms to the descriptions that follow. Choose all .pdfMatch the numbered terms to the descriptions that follow. Choose all .pdf
Match the numbered terms to the descriptions that follow. Choose all .pdfmckenziecast21211
 
Khaleesi Corporation leases dragonelass weapons to customers. She gai.pdf
Khaleesi Corporation leases dragonelass weapons to customers. She gai.pdfKhaleesi Corporation leases dragonelass weapons to customers. She gai.pdf
Khaleesi Corporation leases dragonelass weapons to customers. She gai.pdfmckenziecast21211
 
IOError [Errno 2] No such file or directory states.xmlAny su.pdf
IOError [Errno 2] No such file or directory states.xmlAny su.pdfIOError [Errno 2] No such file or directory states.xmlAny su.pdf
IOError [Errno 2] No such file or directory states.xmlAny su.pdfmckenziecast21211
 
In the degradation of maltose to two glucose moleculesA. the enzy.pdf
In the degradation of maltose to two glucose moleculesA. the enzy.pdfIn the degradation of maltose to two glucose moleculesA. the enzy.pdf
In the degradation of maltose to two glucose moleculesA. the enzy.pdfmckenziecast21211
 

More from mckenziecast21211 (20)

Brief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdf
Brief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdfBrief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdf
Brief Concepts and Questions EXAM 2 Chapter 8 DNA RNA Protein What i.pdf
 
A population has two alleles for a particular gene, A and a, and is .pdf
A population has two alleles for a particular gene, A and a, and is .pdfA population has two alleles for a particular gene, A and a, and is .pdf
A population has two alleles for a particular gene, A and a, and is .pdf
 
A 12-year-old male complained of strange odors before loss of consci.pdf
A 12-year-old male complained of strange odors before loss of consci.pdfA 12-year-old male complained of strange odors before loss of consci.pdf
A 12-year-old male complained of strange odors before loss of consci.pdf
 
2.Which of the following statements about evolution is falseNonrand.pdf
2.Which of the following statements about evolution is falseNonrand.pdf2.Which of the following statements about evolution is falseNonrand.pdf
2.Which of the following statements about evolution is falseNonrand.pdf
 
can someone explain in a easy way chromosome walking I know its w.pdf
can someone explain in a easy way chromosome walking I know its w.pdfcan someone explain in a easy way chromosome walking I know its w.pdf
can someone explain in a easy way chromosome walking I know its w.pdf
 
9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdf
9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdf9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdf
9. When a bacteriophage inserts its DNA into a bacterial chromosome,.pdf
 
Write an informal negation for each of the following statements. Be .pdf
Write an informal negation for each of the following statements. Be .pdfWrite an informal negation for each of the following statements. Be .pdf
Write an informal negation for each of the following statements. Be .pdf
 
Write a C++ program which generates and displays a random walk acros.pdf
Write a C++ program which generates and displays a random walk acros.pdfWrite a C++ program which generates and displays a random walk acros.pdf
Write a C++ program which generates and displays a random walk acros.pdf
 
true or false1- The grouped frequency table should ideally have.pdf
true or false1- The grouped frequency table should ideally have.pdftrue or false1- The grouped frequency table should ideally have.pdf
true or false1- The grouped frequency table should ideally have.pdf
 
The weak D phenotype is thought to arise from several mechanisms. .pdf
The weak D phenotype is thought to arise from several mechanisms. .pdfThe weak D phenotype is thought to arise from several mechanisms. .pdf
The weak D phenotype is thought to arise from several mechanisms. .pdf
 
The coding region of a BACTERIAL gene has the following sequence A.pdf
The coding region of a BACTERIAL gene has the following sequence A.pdfThe coding region of a BACTERIAL gene has the following sequence A.pdf
The coding region of a BACTERIAL gene has the following sequence A.pdf
 
Regarding the ABO blood group system in humans, if an individual is g.pdf
Regarding the ABO blood group system in humans, if an individual is g.pdfRegarding the ABO blood group system in humans, if an individual is g.pdf
Regarding the ABO blood group system in humans, if an individual is g.pdf
 
Peptidoglycan is a unique macromolecule found in cell walls of what k.pdf
Peptidoglycan is a unique macromolecule found in cell walls of what k.pdfPeptidoglycan is a unique macromolecule found in cell walls of what k.pdf
Peptidoglycan is a unique macromolecule found in cell walls of what k.pdf
 
On this photo you see skull of Tasmanian Devil - now extinct only big.pdf
On this photo you see skull of Tasmanian Devil - now extinct only big.pdfOn this photo you see skull of Tasmanian Devil - now extinct only big.pdf
On this photo you see skull of Tasmanian Devil - now extinct only big.pdf
 
MonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdf
MonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdfMonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdf
MonthMonthly Returns ()MonthMonthly Returns ()MonthMonth.pdf
 
Many DOD components are accomplishing more training in the simulator.pdf
Many DOD components are accomplishing more training in the simulator.pdfMany DOD components are accomplishing more training in the simulator.pdf
Many DOD components are accomplishing more training in the simulator.pdf
 
Match the numbered terms to the descriptions that follow. Choose all .pdf
Match the numbered terms to the descriptions that follow. Choose all .pdfMatch the numbered terms to the descriptions that follow. Choose all .pdf
Match the numbered terms to the descriptions that follow. Choose all .pdf
 
Khaleesi Corporation leases dragonelass weapons to customers. She gai.pdf
Khaleesi Corporation leases dragonelass weapons to customers. She gai.pdfKhaleesi Corporation leases dragonelass weapons to customers. She gai.pdf
Khaleesi Corporation leases dragonelass weapons to customers. She gai.pdf
 
IOError [Errno 2] No such file or directory states.xmlAny su.pdf
IOError [Errno 2] No such file or directory states.xmlAny su.pdfIOError [Errno 2] No such file or directory states.xmlAny su.pdf
IOError [Errno 2] No such file or directory states.xmlAny su.pdf
 
In the degradation of maltose to two glucose moleculesA. the enzy.pdf
In the degradation of maltose to two glucose moleculesA. the enzy.pdfIn the degradation of maltose to two glucose moleculesA. the enzy.pdf
In the degradation of maltose to two glucose moleculesA. the enzy.pdf
 

Recently uploaded

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 

Recently uploaded (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Answer the questions that follow the VHDL code given below. LIBRARY .pdf

  • 1. Answer the questions that follow the VHDL code given below. LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY ex1_IS PORT (n, cp, n rd: IN st_logic; q: BUFFER integer RANGE 0 TO 15); END ex1; ARCHITECTURE are OF ex1 IS BEGIN PROCESS (n_cp, n_rd) BEGIN IF (n_rd = '0') THEN q Solution a)n_rd- used to reset the counter n_cp-used as clock to the counter b)4 binary bits are there in q; Q stores 0 t0 15 number so log2(16)=4