Enter the following verilog module and its test fixture

Assignment Help Computer Engineering
Reference no: EM132177434

Verilog HDL and Logic Design

General Requirement

There are 10 homework assignments for this course. The homework assignments make up 20 percent of the total grade. Therefore it is important for you to hand in your homework on time.

All homework assignments should be done using a computer except homework number 2. Please make sure to include your name, homework number on each homework you hand in.

If we have a TA for the course, your homework will be graded by the TA. If we do not have a TA for the course, you hand in a printed version to the instructor either before or after class.

The first homework assignment is for you to become familiar with a Verilog Simulator.

You may either use the Cadence Verilog-XL, Model Technology ModelSim mixed Verilog/VHDL simulator or Silos Verilog Simulator from SimuCAD.

After you setup your environment to run a Verilog Simulator, enter the following Verilog module and its test fixture with a text editor on your computer and run simulation on the design.

module mux2 (a, b, s, y);

input a,b,s;

output y;

reg y;

always @(a or b or s) begin

if (s)

y = a;

else

y = b;

end

endmodule

module fixture;

reg pa, pb, ps;

wire py;

mux2 dut (.a(pa), .b(pb), .s(ps), .y(py));

initial begin

$monitor("time = %t a=%b b = %b s=%b y=%b", $time, pa, pb, ps, py);

end

initial begin

#10 pa = 0; pb = 0; ps = 0;

#10 pa = 0; pb = 0; ps = 1;

#10 pa = 0; pb = 1; ps = 0;

#10 pa = 0; pb = 1; ps = 1;

#10 pa = 1; pb = 0; ps = 0;

#10 pa = 1; pb = 0; ps = 1;

#10 pa = 1; pb = 1; ps = 0;

#10 pa = 1; pb = 1; ps = 1;

end

endmodule

What to hand in:

1.The source code of your Verilog modules .

2.Simulation output from your simulation session showing that it is working as expected.

Reference no: EM132177434

Questions Cloud

What is wrong with the manager statement : What is wrong with the manager's statement? Keep in mind that this question allows multiple correct answers and incorrect answers
Create three circles that will function as a traffic light : In visual studio 2013 use CreateGraphics.FillEclipse() to create three circles that will function as a traffic light.
Variance and standard deviation : The lengths (in kilometers) of rivers on the South Island of New Zealand that flow to the Tasman Sea are listed in numbers below:
What type of error is possible in situation : Based on the data they conclude that the evidence is not strong enough to conclude that the students are fluent in English.
Enter the following verilog module and its test fixture : Enter the following Verilog module and its test fixture with a text editor on your computer and run simulation on the design.
What is the probability that in a random sample : What is the probability that in a random sample of 500 adult Americans less than 38% believe marriage is obsolete?
Mean height of coastal redwood trees : The mean height of coastal redwood trees is known to be 200 feet. In order to test whether a community of coastal trees were growing to be healthy in a park
What are the goals of each mechanism : In a virtual memory system, a process may be allocated more or fewer frames of memory by (at least) two different mechanisms or policies.
What is verilog programming : What is Verilog Programming? Describe its characteristics and advantages?

Reviews

Write a Review

Computer Engineering Questions & Answers

  analyze algorithms for each of the methods in the set ADT

Describe and analyze algorithms for each of the methods in the set ADT, assuming that one of the two sets is much smaller than the other.

  Calculate the number of possible color combinations

In the popular game Mastermind, one player creates a secret code of four pegs, each of which can be chosen from one of six colors.

  Write a function that posterizes an input picture

Write a function that posterizes an input picture along a very specific process. If the red value is greater than 180, then set the pixel to red.

  Define tools of the customer interface

Define tools of the customer interface and to distinguish the different stages of developing a website by preparing a presentation.

  What is the output of code fragment that invokes calc

What is output of code fragment that invokes calc

  What are three costs and benefit associate with each project

What are three costs, benefits, risks, and intangibles associated with each project? Based on your answer to question 1, which project would you choose?

  Describe the five most prominent application risks

List and describe the five most prominent application risks associated with a spreadsheet system used to maintain a company's budget.

  Create a matlab program with a graphical user interphase

Create a MATLAB program with a Graphical User Interphase (GUI) that converts from Celsius to Fahrenheit and Fahrenheit to Celsius.

  What is the modulation used in the us tdma

What is the modulation used in the US TDMA (ie, IS-136) system, and what is it in GSM (again, the original version, used in 2G)?

  Define all types of travel related cybersecurity issues

What types of travel related cybersecurity issues and concerns did the managers discuss? (write about these in your blog entry)

  What is the necessary condition at the surface of the tubes

At a particular region in a steam condenser the fluid is a mixture of 80 percent steam (by mass) and 20 percent air. The total pressure is 6.75 kPa.

  The classic explanation of the marketing mix though

create a detailed with a least 4 bullets in each section of your e-business marketing mix 4 ps product place promotion

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