SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Fill in the blanks for the Verilog HDL behavioral description for the Mealy FSM below. In the
state diagram below, note that the notation on the transition is of the form in/out. For example,
the transition from state S0 to S1 has 1/0, which corresponds to in=1 and out =0 (Answers are
case sensitive) module seq_detectorl input x,clk,reset, output reg z ); parameter
S0=0,S1=1,S2=2,S3=3; reg [1:0] PS,NS ; //sequential state register block always @ (posedge clk
or posedge reset) if (reset) PS<=50; else PS<=NS; //sequential output block always @ (posedge
clk or posedge reset) if (reset) z<=1b else z<=(PS==)&&x; //combinational state assignment
block always @(x) begin case(PS) S0:NS=x?S1:50 S1:NS =x?:S2; S2:NS=x?53:50

Weitere ähnliche Inhalte

Mehr von anbika110

Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf
 Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf
Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf
anbika110
 

Mehr von anbika110 (20)

Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf
 Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf
Exercise 5-22 (Static) Recording Capital Projects Fund Transactions [.pdf
 
Exercise 4.4 (Algo) Multiple-step continuous statement of comprehensi.pdf
 Exercise 4.4 (Algo) Multiple-step continuous statement of comprehensi.pdf Exercise 4.4 (Algo) Multiple-step continuous statement of comprehensi.pdf
Exercise 4.4 (Algo) Multiple-step continuous statement of comprehensi.pdf
 
Exercise 4-5 (Algo) Income statement presentation [LO4-1] The followi.pdf
 Exercise 4-5 (Algo) Income statement presentation [LO4-1] The followi.pdf Exercise 4-5 (Algo) Income statement presentation [LO4-1] The followi.pdf
Exercise 4-5 (Algo) Income statement presentation [LO4-1] The followi.pdf
 
Exercise 4-4 (Algo) Multiple-step continuous statement of comprehensi.pdf
 Exercise 4-4 (Algo) Multiple-step continuous statement of comprehensi.pdf Exercise 4-4 (Algo) Multiple-step continuous statement of comprehensi.pdf
Exercise 4-4 (Algo) Multiple-step continuous statement of comprehensi.pdf
 
Exercise 4-5 (Algo) Income statement presentation [LO 4-1] The follow.pdf
 Exercise 4-5 (Algo) Income statement presentation [LO 4-1] The follow.pdf Exercise 4-5 (Algo) Income statement presentation [LO 4-1] The follow.pdf
Exercise 4-5 (Algo) Income statement presentation [LO 4-1] The follow.pdf
 
Fill in the array with the values that would be stored after the code.pdf
 Fill in the array with the values that would be stored after the code.pdf Fill in the array with the values that would be stored after the code.pdf
Fill in the array with the values that would be stored after the code.pdf
 
Figure 3 People with no qualifications and degree level qualificatio.pdf
 Figure 3 People with no qualifications and degree level qualificatio.pdf Figure 3 People with no qualifications and degree level qualificatio.pdf
Figure 3 People with no qualifications and degree level qualificatio.pdf
 
Exercise 4 Write a C function that takes a positive integer n as an .pdf
 Exercise 4 Write a C function that takes a positive integer n as an .pdf Exercise 4 Write a C function that takes a positive integer n as an .pdf
Exercise 4 Write a C function that takes a positive integer n as an .pdf
 
Figure Strawberries and Submarines The opportunity cost of 1 submari.pdf
 Figure Strawberries and Submarines The opportunity cost of 1 submari.pdf Figure Strawberries and Submarines The opportunity cost of 1 submari.pdf
Figure Strawberries and Submarines The opportunity cost of 1 submari.pdf
 
FILE Divorce. Divorce has become an increasingly prevalent part of Am.pdf
 FILE Divorce. Divorce has become an increasingly prevalent part of Am.pdf FILE Divorce. Divorce has become an increasingly prevalent part of Am.pdf
FILE Divorce. Divorce has become an increasingly prevalent part of Am.pdf
 
Fil in the P(X=x) values to give a legnimute probabiity distribution .pdf
 Fil in the P(X=x) values to give a legnimute probabiity distribution .pdf Fil in the P(X=x) values to give a legnimute probabiity distribution .pdf
Fil in the P(X=x) values to give a legnimute probabiity distribution .pdf
 
Figure 8-2 igure 8-2 shows the macro PPF. Which point(s) represent re.pdf
 Figure 8-2 igure 8-2 shows the macro PPF. Which point(s) represent re.pdf Figure 8-2 igure 8-2 shows the macro PPF. Which point(s) represent re.pdf
Figure 8-2 igure 8-2 shows the macro PPF. Which point(s) represent re.pdf
 
Figure 10.4 ASCll-to-binary conversion subroutine (Fig. 10.4 continue.pdf
 Figure 10.4 ASCll-to-binary conversion subroutine (Fig. 10.4 continue.pdf Figure 10.4 ASCll-to-binary conversion subroutine (Fig. 10.4 continue.pdf
Figure 10.4 ASCll-to-binary conversion subroutine (Fig. 10.4 continue.pdf
 
Figure External Benefits The distance between point E and point M re.pdf
 Figure External Benefits The distance between point E and point M re.pdf Figure External Benefits The distance between point E and point M re.pdf
Figure External Benefits The distance between point E and point M re.pdf
 
Figure 2-6 Refer to Figure 2-6. What was the most likely cause of the.pdf
 Figure 2-6 Refer to Figure 2-6. What was the most likely cause of the.pdf Figure 2-6 Refer to Figure 2-6. What was the most likely cause of the.pdf
Figure 2-6 Refer to Figure 2-6. What was the most likely cause of the.pdf
 
fartord Jeweiers uses a perpetual inventory systam and had the follow.pdf
 fartord Jeweiers uses a perpetual inventory systam and had the follow.pdf fartord Jeweiers uses a perpetual inventory systam and had the follow.pdf
fartord Jeweiers uses a perpetual inventory systam and had the follow.pdf
 
Fancy Ciothing Company is authorized to issue 110.000 shares of.pdf
 Fancy Ciothing Company is authorized to issue 110.000 shares of.pdf Fancy Ciothing Company is authorized to issue 110.000 shares of.pdf
Fancy Ciothing Company is authorized to issue 110.000 shares of.pdf
 
Fare 14.3 Consumer Giscrebionary 13.9 Communication services 10..pdf
 Fare 14.3 Consumer Giscrebionary 13.9 Communication services 10..pdf Fare 14.3 Consumer Giscrebionary 13.9 Communication services 10..pdf
Fare 14.3 Consumer Giscrebionary 13.9 Communication services 10..pdf
 
Fail and Fair, ncoepted an engagement to oudit the financhi statement.pdf
 Fail and Fair, ncoepted an engagement to oudit the financhi statement.pdf Fail and Fair, ncoepted an engagement to oudit the financhi statement.pdf
Fail and Fair, ncoepted an engagement to oudit the financhi statement.pdf
 
Factory Overhead Cost Budget Sweet Tooth Candy Company budgeted the f.pdf
 Factory Overhead Cost Budget Sweet Tooth Candy Company budgeted the f.pdf Factory Overhead Cost Budget Sweet Tooth Candy Company budgeted the f.pdf
Factory Overhead Cost Budget Sweet Tooth Candy Company budgeted the f.pdf
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
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
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
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
 
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
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Kürzlich hochgeladen (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
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
 
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
 
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
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

Fill in the blanks for the Verilog HDL behavioral description for the.pdf

  • 1. Fill in the blanks for the Verilog HDL behavioral description for the Mealy FSM below. In the state diagram below, note that the notation on the transition is of the form in/out. For example, the transition from state S0 to S1 has 1/0, which corresponds to in=1 and out =0 (Answers are case sensitive) module seq_detectorl input x,clk,reset, output reg z ); parameter S0=0,S1=1,S2=2,S3=3; reg [1:0] PS,NS ; //sequential state register block always @ (posedge clk or posedge reset) if (reset) PS<=50; else PS<=NS; //sequential output block always @ (posedge clk or posedge reset) if (reset) z<=1b else z<=(PS==)&&x; //combinational state assignment block always @(x) begin case(PS) S0:NS=x?S1:50 S1:NS =x?:S2; S2:NS=x?53:50