Design a task or function that will check the parity of word

Assignment Help Theory of Computation
Reference no: EM132134753

Question - Design a task or function that will check the parity of a word for odd parity. The input to the task/function is a 5-bit word called data_in. If the parity of input data_in is not odd increment an error count in your testbench. Parity is determined from the number of ones in a word. For example if data_in=5'b10101, data_in would have odd parity. If data_in=5'b01001, data_in would not have odd parity.

Requirements:

a. Implement in Verilog the task or function.

b. Call your task/function from a testbench and test it thoroughly.

c. Turn in your task/function and testbench code as well as a simulation waveform.

Reference no: EM132134753

Questions Cloud

What is the current yield on pk bonds : What is the current yield on PK's bonds? (Do not round intermediate calculations and enter your answer as a percent rounded to 2 decimal places, e.g., 32.16.)
Discounted back to the present at percenta : What is the present value of a $128 perpetuity discounted back to the present at 9.38 percent.
Accumulate the required amount to buy the house : How much money should you place in this savings account every month in order to accumulate the required amount to buy the house of your dreams?
What is the amount of the monthly payments : The annual interest rate on the loan is 13.45 percent of the unpaid balance. What is the amount of the monthly payments?
Design a task or function that will check the parity of word : Design a task or function that will check the parity of a word for odd parity. The input to the task/function is a 5-bit word called data_in
Present value of estimated annual savings : Compute the: (a) payback period; (b) present value of estimated annual savings; (c) present value of estimated residual value; (c) present value
Account at the end of that time period : The first deposit is made today. How much money will be in the account at the end of that time period?
Design a state machine that will control a vending machine : Design a state machine that will control a vending machine. Turn in your module and testbench code as well as a simulation waveform
Required rate of return on the less risky stock : By how much does the required rate of return on the riskier stock exceed the required rate of return on the less risky stock.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd