SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
a) Write behavioral Verilog code for a module called “HW6” (pictured below) with two inputs a,
b and two outputs x, y defined as follows.
Solution
The figure is not visible.
So considering the module as an Half adder which has two inputs a and b, with sum and carry as
outputs
module half_adder(a,b,cout,sum)
input a,b;
output cout,sum;
sum= a+b;
cout=a*b;
end module

Contenu connexe

Plus de aimarenterprises

a. Explain the evolution of corporate governance. What problems deve.pdf
a. Explain the evolution of corporate governance. What problems deve.pdfa. Explain the evolution of corporate governance. What problems deve.pdf
a. Explain the evolution of corporate governance. What problems deve.pdf
aimarenterprises
 

Plus de aimarenterprises (10)

a. Explain the evolution of corporate governance. What problems deve.pdf
a. Explain the evolution of corporate governance. What problems deve.pdfa. Explain the evolution of corporate governance. What problems deve.pdf
a. Explain the evolution of corporate governance. What problems deve.pdf
 
A. Describe an organizations various stakeholders and their differ.pdf
A. Describe an organizations various stakeholders and their differ.pdfA. Describe an organizations various stakeholders and their differ.pdf
A. Describe an organizations various stakeholders and their differ.pdf
 
A. Characterized by a family of distibution, where each distibution .pdf
A. Characterized by a family of distibution, where each distibution .pdfA. Characterized by a family of distibution, where each distibution .pdf
A. Characterized by a family of distibution, where each distibution .pdf
 
a. An economy is initially at the natural level of output. There is .pdf
a. An economy is initially at the natural level of output. There is .pdfa. An economy is initially at the natural level of output. There is .pdf
a. An economy is initially at the natural level of output. There is .pdf
 
a. All internal auditors need at least a baseline level of IT audit-.pdf
a. All internal auditors need at least a baseline level of IT audit-.pdfa. All internal auditors need at least a baseline level of IT audit-.pdf
a. All internal auditors need at least a baseline level of IT audit-.pdf
 
a. 2 b. 8.03 c. 8.24 d. 8.33 e. 8.42 f. 20 Find the Effect.pdf
a. 2 b. 8.03 c. 8.24 d. 8.33 e. 8.42 f. 20 Find the Effect.pdfa. 2 b. 8.03 c. 8.24 d. 8.33 e. 8.42 f. 20 Find the Effect.pdf
a. 2 b. 8.03 c. 8.24 d. 8.33 e. 8.42 f. 20 Find the Effect.pdf
 
a. 0.431b. 2.154c. 4.512d. 6.512e. 17.408I understand that.pdf
a. 0.431b. 2.154c. 4.512d. 6.512e. 17.408I understand that.pdfa. 0.431b. 2.154c. 4.512d. 6.512e. 17.408I understand that.pdf
a. 0.431b. 2.154c. 4.512d. 6.512e. 17.408I understand that.pdf
 
A) What is the probability that A occursB)What is the probability.pdf
A) What is the probability that A occursB)What is the probability.pdfA) What is the probability that A occursB)What is the probability.pdf
A) What is the probability that A occursB)What is the probability.pdf
 
a)Write a brief summary ofAl-Kashicontributions in Algebra and T.pdf
a)Write a brief summary ofAl-Kashicontributions in Algebra and T.pdfa)Write a brief summary ofAl-Kashicontributions in Algebra and T.pdf
a)Write a brief summary ofAl-Kashicontributions in Algebra and T.pdf
 
a) What is the degree of vertex Q b) What is the degree o.pdf
a) What is the degree of vertex Q b) What is the degree o.pdfa) What is the degree of vertex Q b) What is the degree o.pdf
a) What is the degree of vertex Q b) What is the degree o.pdf
 

Dernier

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Dernier (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
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
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
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
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 

a) Write behavioral Verilog code for a module called “HW6” (pictured.pdf

  • 1. a) Write behavioral Verilog code for a module called “HW6” (pictured below) with two inputs a, b and two outputs x, y defined as follows. Solution The figure is not visible. So considering the module as an Half adder which has two inputs a and b, with sum and carry as outputs module half_adder(a,b,cout,sum) input a,b; output cout,sum; sum= a+b; cout=a*b; end module