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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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