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.pdfaimarenterprises
 
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.pdfaimarenterprises
 
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 .pdfaimarenterprises
 
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 .pdfaimarenterprises
 
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-.pdfaimarenterprises
 
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.pdfaimarenterprises
 
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.pdfaimarenterprises
 
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.pdfaimarenterprises
 
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.pdfaimarenterprises
 
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.pdfaimarenterprises
 

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

Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfcupulin
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
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
 
Ernest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsErnest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsPallavi Parmar
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 

Dernier (20)

Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .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
 
Ernest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsErnest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell Tolls
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 

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