SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
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

Mais conteúdo relacionado

Mais 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
 

Mais 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
 

Último

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
KarakKing
 

Último (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
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
 
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
 
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
 
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
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
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
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
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.
 
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
 

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