GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Problem 5) FSM Write a finite state machine System Verilog m…

Problem 5) FSM Write a finite state machine System Verilog module named FSM. Finite State Machines are not parameterized, because the number of states is set by the problem. Use the state transition table below (which contains the same information as a state diagram). You only need this state transition table to build the FSM.  Remember Z is purely combinatorial. Do not use an enumerated type for this problem (if you don’t know what that is, you shouldn’t worry about it). Use a localparam to do a state assignment and then use the names in your code rather than numbers. Use a standard Finite state machine design organized in parts a, b, c, … below. Inputs must be x, reset, clk, and outputs must be State, and Z. This should be done by instantiation of register  you have already designed in previous problems. Be sure to instantiate the MUX shown below both for determining the next state and in another instance to determine the output Z. You do not have to complete the mux, and won’t get extra credit for completing it. module MUX81 #(parameter S=6) (input [S-1:] A, B, C, D, E, F, G, H, input [2:0] Sel, output logic [S-1:0] Y); … endmodule For maximum credit your code should carefully follow the specification, and your grade will depend that. Use the minimum number of lines to accomplish this specification, and be succinct and well organized. Also use proper indentation for organization. If you duplicate the function of instances in procedural code it will be counted incorrect. Use System Verilog, always_ff, and always_comb, and don’t use reg datatype. (hint: see cheat sheet) Declare all variables, avoid errors or warnings that would occur during compilation, simulation or synthesis. Indent all blocks for full credit. Your code should be efficient and succinct. Don’t use compiler directives or short cuts. Use replication and concatenation so the number of bits in left hand side of assigns in resets, initializations and defaults are the same, shortcuts not allowed. Inputs should not be datatype logic or reg. next_state State x=0 x=1 output Z S0 S0 S1 0 S1 S1 S2 0 S2 S1 S3 1 S3 S4 S0 0 S4 S1 S2 1 For full credit label each part of your solution a., b., or c. a. What Finite State Machine model are you using in this problem?   b. Module statement and declarations and localparam   c. Synchronous part using registers (in my solution this is 1 line)   d. Combinatorial part using mux from previous problem (in my solution this is 2 lines) to determine the next state,   e. Combinatorial part using mux to determine the output Z.   for full credit follow all directions

Read Details

What is the correct interpretation of a (1−α) Bayesian credi…

What is the correct interpretation of a (1−α) Bayesian credible set C?

Read Details

How does the ‘posterior predictive distribution’ differ from…

How does the ‘posterior predictive distribution’ differ from the ‘prior predictive distribution’?

Read Details

What is the fundamental philosophical difference between Bay…

What is the fundamental philosophical difference between Bayesian and frequentist statistics regarding model parameters?

Read Details

If a prior is non-informative (very broad), the resulting Ba…

If a prior is non-informative (very broad), the resulting Bayesian point estimate will typically be close to the frequentist Maximum Likelihood Estimate (MLE).

Read Details

You have learned about challenges of plastic recycling in bo…

You have learned about challenges of plastic recycling in both the eText and the article you annotated this week. In a short essay, explain how plastic production, domestic policies, and international trade are linked by plastics. You must reference BOTH the eText (using page numbers, figure numbers, etc) and the article you read (Identify as page and paragraph from the PDF). Your short essay should go beyond restating or summarizing the information presented in the text and article and explain HOW this information is linked. You may use outside sources to further support your ideas, but because the focus here is the class materials you can use no more than two outside references and need to provide citations to those sources. Your final submission should be 350-400 words long, formatted as 2-3 short paragraphs. Review for formatting, spelling, grammar, and punctuation.    

Read Details

Routes must be confirmed to all locations to prevent:

Routes must be confirmed to all locations to prevent:

Read Details

The primary role of the funeral director during pre-service…

The primary role of the funeral director during pre-service coordination is to:  

Read Details

 Conflicting public information most directly erodes:

 Conflicting public information most directly erodes:

Read Details

Which item must be confirmed as accepted prior to the servic…

Which item must be confirmed as accepted prior to the service?

Read Details

Posts pagination

Newer posts 1 … 685 686 687 688 689 … 90,254 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top