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

  Display the global growth of smart phones

A national Digital service provider would like you to prepare a Windows application that will display the global growth of smart phones.

  Recognize potential ethical issues that might arise as a

you have been hired as the cio of a large multinational internet advertising company. the president of the company is

  Asynchronous transmission

Assume that the sender and receiver utilize an asynchronous transmission and agree not to utilize any stop elements.

  Write an application that extends jframe and that displays

Add a JButton to the JSmileFace program so the smile changes to a frown when the user clicks the JButton. Save the file as JSmileFace2.java.

  Explain your experience installing the microsoft office

write a short paragraph in which youquestion 1 describe your experience installing the microsoft office suite software.

  What do you mean by pbx

take a call between a user in the company and another user out of the company who is connected to a traditional telephone network. What sort of technology is needed at the interface between the LAN and the traditional telephone network.

  Write one exception class that includes multiple exceptions

How would you write one exception class that includes multiple exceptions, for example, if a file is not found and if an array is not dynamically allocated properly. (C++)

  Encrypt and decrypt the message using the caesar cipher

The cipher that Caesar used is simple technique to replace each letter of alphabet with the another letter further down the alphabet for lowercase and uppercase. Encrypt and decrypt the message using the Caesar cipher with (K=3) in Java.

  Windows server deployment proposal

Windows Server Deployment Proposal

  Express the java code necessary to allow only one connection

express the JAVA code necessary to allow only one connection.

  What is the test plan

What information should be included in the comments at the top of a program? What is a test plan? I am looking for general reply not specific to this or any other program.

  Problems on relation and functional dependencies

Problems on  relation and functional dependencies

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