Design a combinational verilog module

Assignment Help Computer Engineering
Reference no: EM131100572

E15: Fundamentals of Digital Systems - Fall 2015 - HOMEWORK 5

The starter code from the course web page includes test benches for each problem below. For each of the following, please submit the source code for your Verilog module along with a printout or screen capture of waveform plots indicating a successful run. Please make sure to set the display radix (base) on your waveform viewer to "binary".

1. Design a combinational Verilog module

module majority(A, Y);

that takes a 3-bit input A and outputs a single bit Y which is equal to 1 if and only the majority of the input bits are 1's.

2. Design a combinational Verilog module

module sort_bits(X, Y)

that takes a 3-bit input X and computes a 3-bit output Y which reorders the bits of X such that all of the zeros come first, then all of the ones. For example, if X = 100, we expect Y = 001.

3. Design a combinational Verilog module

module binary_to_gray(B, G)

that takes an unsigned 4-bit binary number B as input, and computes the corresponding 4-bit gray code G as output. One way to convert from binary to gray code is to observe the following rules:

  • The MSB of the output is equal to the MSB of the input.
  • Bit i of the output is obtained by XOR-ing together bits i and i + 1 of the input (i.e. that bit, and the one to its left).

4. Design a combinational Verilog module

module mux_4_to_1(I, S, Y)

which takes a 4-bit input I, a 2-bit address S, and outputs a single bit Y . The Y output should always be equal to the bit of I whose index is given by S. To implement this 4-to-1 MUX, your module must use the decoder_2_to_4 module provided in the starter code, similar to the example on the board from class.

Attachment:- homework5.zip

Reference no: EM131100572

Questions Cloud

Explain to her about the rh factor : She has heard that there may be a problem with the baby. Explain to her about the Rh factor and how this situation is taken care today.
They are a good investment. what is their present value : Assume that you inherited some money. A friend of yours is working as an unpaid intern at a local brokerage firm, and her boss is selling some securities that call for four payments, $50 at the end of each of the next 3 years, plus a payment of $1,05..
Define what is meant by motivation-ability and opportunity : Define what is meant by motivation, ability and opportunity.  In addition to defining each concept, make sure that you convey what the differences are between each of these concepts. Provide a solid example that illustrates each concept in the seq..
What is the purpose of the test : What is the purpose of the test (personality, screening, Marriage counseling, placement for children, etc.)? Who developed it and why? How is it used?
Design a combinational verilog module : The starter code from the course web page includes test benches for each problem below. For each of the following, please submit the source code for your Verilog module along with a printout or screen capture of waveform plots indicating a success..
The general linear programming formulation : Consider the general linear programming formulation of the transportation problem (see Table 8.6). Verify the claim in Sec. 8.2 that the set of (m + n) functional constraint equations (m supply constraints and n demand constraints) has one redunda..
How do experiences different from child in their classroom : Students are encouraged to reflect on their life experiences and background. How do those experiences different from the child in their classroom? And how can educators bridge connections to better understand their students?
What would happen to the present value of the perpetuity : What is the present value of perpetuity of $100 per year if the appropriate discount rate is 7 percent? If interest rates in general were to double and the appropriate discount rate rose to 14 percent, what would happen to the present value of the pe..
Used to solve the transportation problem formulation : Consider the Northern Airplane Co. production scheduling problem presented in Sec. 8.1. Formulate this problem as a general linear programming problem by letting the decision variables be xj number of jet engines to be produced in month j (j 1, 2,..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Question 1interpret the case study underneath and answer to

question 1interpret the case study underneath and answer to the questions that followunited parcel service throughout

  Possibility of writing a program

Discuss the possibility of writing a program that takes another program as input and determines if that program contains a virus.

  How to create the clients by service rep report

How to create the clients by service rep report create mailing label for client table

  What is the data rate

What is the data rate

  What are some lessons learned

Can IS/IT give organisations competitive advantages? Can gained competitive advantages be sustained? How/Why?

  Write a c++ program that uses a pointer to print out

Write a C++ program that uses a pointer to print out the address of a variable and the value of a variable that it points too.

  Powerpoint 2010

Which among the following statement is TRUE regarding the PowerPoint 2010? Provide the answer providing the reson:Any PowerPoint presentation is saved with a .ptt extension after filename.

  Create a gui system that will allow a user to add and remove

Create a GUI system that will allow a user to add and remove employees where each employee has an employee id (six-digit number), employee name, and years of service.

  Search information on web page authenticity and credibility

The birth of the Internet has opened a new door for research. The World Wide Web provides endless amounts of information on just about anything you can think of. Anyone may create a Website; therefore, the question of reliability comes into play.

  Hardware tools need to search cell phone

After looking upon the warrant this search and seizure is justified thus, your team now should search the cell phone for the digital evidence. Explain the hardware tools required to search this cell phone?

  Create constructors use the same exception handling

Date objects must store the date in two int instance variables: day and month, and it has to include the String instance variable, error, initialized with null.

  You have been asked to be the project manager for the

you have been asked to be the project manager for the development of an information technology it project. the system

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