SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Please help me with these 2 questions..
1) Do this code without using if-eles statments!!!
2) Do this code using anything possible.
Create a Verilog module named !f2ro4 that represents a 2-to-4 binary decoder using an if-else
statement. Create a second module named h3to8 that represents the 3-to-8 binary decoder in
Figure 4.15 using two instances of the if2to4 module. 28 Write Verilog code that represents the
circuit in Figure 4.17. Use the dec2to4 module in Figure 4.31 as a sub circuit in your code.
Solution
// Verilog Code for 2 to 4 decoder without using if-else statements
module if2to4 (w, en, y);
input [1:0] w;
input en;
output [3:0] y;
reg [3:0] y;
always @ (w, en)
case({en, w})
3
Please help me with these 2 questions-- 1) Do this code without using (1).docx

Weitere ähnliche Inhalte

Mehr von ceveline2

Mehr von ceveline2 (10)

Please explain how HDFS provides redundancy for stored dataSolutionHDF.docx
Please explain how HDFS provides redundancy for stored dataSolutionHDF.docxPlease explain how HDFS provides redundancy for stored dataSolutionHDF.docx
Please explain how HDFS provides redundancy for stored dataSolutionHDF.docx
 
Please describe cash flows from investing activities- and provide thre.docx
Please describe cash flows from investing activities- and provide thre.docxPlease describe cash flows from investing activities- and provide thre.docx
Please describe cash flows from investing activities- and provide thre.docx
 
Please clear hand written for the answersSolution15- (c) An increase i.docx
Please clear hand written for the answersSolution15- (c) An increase i.docxPlease clear hand written for the answersSolution15- (c) An increase i.docx
Please clear hand written for the answersSolution15- (c) An increase i.docx
 
please answer the following- thanks!!! Question 3 (1 point) 6 Rutherfo.docx
please answer the following- thanks!!! Question 3 (1 point) 6 Rutherfo.docxplease answer the following- thanks!!! Question 3 (1 point) 6 Rutherfo.docx
please answer the following- thanks!!! Question 3 (1 point) 6 Rutherfo.docx
 
Please answer questions 1-4- thank you!Solution1- Acids are the conpou.docx
Please answer questions 1-4- thank you!Solution1- Acids are the conpou.docxPlease answer questions 1-4- thank you!Solution1- Acids are the conpou.docx
Please answer questions 1-4- thank you!Solution1- Acids are the conpou.docx
 
Please answer in a clear manner to get the points- Thanks for the help.docx
Please answer in a clear manner to get the points- Thanks for the help.docxPlease answer in a clear manner to get the points- Thanks for the help.docx
Please answer in a clear manner to get the points- Thanks for the help.docx
 
Please answer bothSolution18- Nature chose polyamides to form proteins.docx
Please answer bothSolution18- Nature chose polyamides to form proteins.docxPlease answer bothSolution18- Nature chose polyamides to form proteins.docx
Please answer bothSolution18- Nature chose polyamides to form proteins.docx
 
Phe following GC data was obtained on a Polar column- The 10 possible.docx
Phe following GC data was obtained on a Polar column- The 10 possible.docxPhe following GC data was obtained on a Polar column- The 10 possible.docx
Phe following GC data was obtained on a Polar column- The 10 possible.docx
 
Patients in shock experience decreased delivery of O2 to tissues- decr.docx
Patients in shock experience decreased delivery of O2 to tissues- decr.docxPatients in shock experience decreased delivery of O2 to tissues- decr.docx
Patients in shock experience decreased delivery of O2 to tissues- decr.docx
 
Perform an analysis of the social - demographic- technological- econom.docx
Perform an analysis of the social - demographic- technological- econom.docxPerform an analysis of the social - demographic- technological- econom.docx
Perform an analysis of the social - demographic- technological- econom.docx
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Kürzlich hochgeladen (20)

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Ữ Â...
 
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
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
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)
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
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
 
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
 
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
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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.
 
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
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).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
 

Please help me with these 2 questions-- 1) Do this code without using (1).docx

  • 1. Please help me with these 2 questions.. 1) Do this code without using if-eles statments!!! 2) Do this code using anything possible. Create a Verilog module named !f2ro4 that represents a 2-to-4 binary decoder using an if-else statement. Create a second module named h3to8 that represents the 3-to-8 binary decoder in Figure 4.15 using two instances of the if2to4 module. 28 Write Verilog code that represents the circuit in Figure 4.17. Use the dec2to4 module in Figure 4.31 as a sub circuit in your code. Solution // Verilog Code for 2 to 4 decoder without using if-else statements module if2to4 (w, en, y); input [1:0] w; input en; output [3:0] y; reg [3:0] y; always @ (w, en) case({en, w}) 3