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

  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