Ask Other Engineering Expert

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

Using Blackboard, please submit a zip file containing the Verilog sources for your modules. The zip file should contain seven files, each one with the same name as the module that it implements (e.g. less_than_three.v).

You should write test bench code to test your Verilog modules, but you don't need to submit your test bench code. I will run your modules against my own test bench.

1) Design a Verilog module

module less_than_three(A, Y);

that takes as input a 3-bit binary number A and outputs a single bit Y which is equal to 1 if and only if A is less than three. Note that if you carefully study the "Operators" section of the cheat sheet linked to from the course website, this could be a very short module!

2) Design a 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.

3) Design a Verilog module

module hw4_3a(X, Y);

that takes as input a 3-bit binary number X and outputs a 3-bit binary number Y, according to the following: when X is less than 4, outputs two greater than X; when X is greater than or equal to 4, outputs three less than X.

4) Design a Verilog module

module sort_bits(X, Y);

that takes a 3-bit input X and outputs a 3-bit output Y which is equal to the bits of X sorted from least to greatest (0's, then 1's).

5) Design a Verilog module

module binary_to_gray(B, G);

that takes as input a 4-bit binary number B and returns the corresponding Bth 4-bit Gray code G.

6) Modify the 2-to-4 decoder Verilog example from the course website to produce a module

module 2_to_4_with_enable(EN, I, Y);

that implements a 2-to-4 decoder with enable.

7) Design a module

module 4_to_16_with_enable(EN, I, Y);

that implements a 4-to-16 decoder with enable by instantiating your 2-to-4 decoder module from the previous problem five times.

8) For the function

F(a, b, c, d) = Σ(1, 2, 3, 6, 7, 8, 9, 11, 12, 15)

a. Use Shannon's expansion theorem to implement F with a 4x1 multiplexer, using a and b as the address line inputs. Simplify the remaining 4 inputs by combining product terms. Draw a diagram.

b. Do the same, except now using c and d as the address line inputs. Again, draw a diagram.

c. Draw a K-map for the function. Each non-address input to your multiplexer corresponds to a particular 4-cell region of the K-map. What regions correspond to the 4 inputs of the first multiplexer? The second?

d. Can you explain, using the K-map, why the inputs to the second multiplexer are less complex than the inputs to the first?

9) In class we saw the Shannon Expansion theorem, which states that for a Boolean function of n variables,

F(w1, w2, ..., wn) = w1' • F(0, w2, ..., wn) w1 • F(1, w2, ..., wn)

a. Prove that the Shannon expansion theorem works for any Boolean function expressed as sum of product terms.

b. State why it works for any Boolean function, not just SOP functions.

c. Consider a Boolean function F(a, b, c, d). We will implement it with an 8x1 multiplexer, using the variables a, b, and c as inputs to the address lines. What are the only four possible inputs that we can send into the remaining 8 input lines, and why?

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M91847711

Have any Question?


Related Questions in Other Engineering

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Mine safety amp environmental engineering assignment -part

Mine Safety & Environmental Engineering Assignment - Part 1 - Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the fo ...

Projectflow processing of liquor in a mineral refining

Project Flow Processing of Liquor in a Mineral Refining Plant The aim of this project is to design a flow processing system of liquor (slurry) in a mineral (aluminum) refining plant. Aluminum is manufactured in two phase ...

Learning outcomes evaluate multiuser communication and

Learning Outcomes Evaluate multiuser communication and resource sharing techniques; Apply the techniques of, and report on, digital communication applications using Matlab and hardware devices. Assignment Description The ...

Operations engineering assignment -please select only one

Operations Engineering Assignment - Please select only one of the following case studies for your assignment: CASE A. Tesla Motors Tesla is an innovative manufacturer that designs, assemble and sells fully electric vehic ...

Select a risk problem from the list below and prepare a

Select a risk problem from the list below and prepare a risk management plan in accordance with AS/NZS ISO 31000:2009. Please ensure that: - Establish the context clearly, in accordance with the Standard; - Define your s ...

Engineering materials term paper assignment -conduct a

ENGINEERING MATERIALS TERM PAPER ASSIGNMENT - Conduct a thorough literature search and write a 15-20 page technical review paper on the evolution of the engineering materials used in the manufacturing of any one of the f ...

Task 1using the lab kit design a circuit for the processor

Task 1: Using the lab kit, design a circuit for the processor to control the output of a connected 7-segment LED display device. You will be provided with a standard common anode 7-segment display of the type FND-507 (or ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As