Q1: (10 points) Using Verilog on www.edaplayground.com, write a test bench code for the following circuit:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q1: (10 points) Using Verilog on www.edaplayground.com, write a test bench code for the following circuit: A wl GI G3 D B G2 E Assuming gates have: and has 30 ns or has 20 ns not has 10 ns Assume the inputs to be as follows: At time = 0, A=0, B=0, C=0 At time =100, A=1, B=1, C=1 C= // Insert values of your choice B= C= // Insert values of your choice C= // Insert values of your choice At time = 200 A= At time = 350 A= At time = 450 A= B= End the simulation at 500 timesteps 1- Insert print screen of your code, test bench & printed result showing time, input, and output values. 2- Insert print screen showing the generated waveforms Q1: (10 points) Using Verilog on www.edaplayground.com, write a test bench code for the following circuit: A wl GI G3 D B G2 E Assuming gates have: and has 30 ns or has 20 ns not has 10 ns Assume the inputs to be as follows: At time = 0, A=0, B=0, C=0 At time =100, A=1, B=1, C=1 C= // Insert values of your choice B= C= // Insert values of your choice C= // Insert values of your choice At time = 200 A= At time = 350 A= At time = 450 A= B= End the simulation at 500 timesteps 1- Insert print screen of your code, test bench & printed result showing time, input, and output values. 2- Insert print screen showing the generated waveforms
Expert Answer:
Answer rating: 100% (QA)
Code timescale 1 ns10 ps timeunit 1 ns precision 10 ps module halfaddertb reg ... View the full answer
Related Book For
Digital Systems Design Using Verilog
ISBN: 978-1285051079
1st edition
Authors: Charles Roth, Lizy K. John, Byeong Kil Lee
Posted Date:
Students also viewed these electrical engineering questions
-
Write Verilog code for the following circuit. Assume that the gate delays arenegligible. (a) Using concurrent statements. (b) Using an always block with sequential statements. No latches should be...
-
Write a test bench for the elevator controller of Problem 5.10. The test bench has two functions: to simulate the operation of the elevator (including the door operation) and to provide a sequence of...
-
Write the assembly code for the following mathematical expression: Rval= Aval-(-Bval + Cval) .data Rval DWORD? Aval DWORD 24 Bval DWORD 20 Cval DWORD 30 Run and debug the program to verify that it...
-
Consider again examples 9.2 and 9.3 , and once again assume that there are two states of the world for each random variable, denoted by V L j , V H j and n L , n H . Denote the probabilities for...
-
What is the maximum number of electrons in the entire n = 4 shell?
-
What must be the gauge pressure in a large-diameter hose if the nozzle is to shoot water straight upward to a height of 30.0 m?
-
Most balance sheets are defined as classified balance sheets in that both the assets and liabilities are dichotomized into the categories of current and noncurrent. [In those industries in which the...
-
Finnish Furniture has experienced a decrease in the demand for tables in Chicago; the demand has fallen to 150 units. What special condition would exist? What is the minimum-cost solution? Will there...
-
Which transaction related audit objective applies to the following internal control: The computer automatically posts sales transactions to the accounts receivable master file and general ledger....
-
Conduct a Pareto analysis for the number of minutes that flights are late in the accompanying data. Interpret the results. E Click the icon to view the Atlanta Airline Data. Conduct a Pareto analysis...
-
Discuss the environmental issue you have selected and its significance. Identify one national and one international government regulatory agencies that focus on the environmental issue you selected....
-
i. Show that standard normal distribution Pr(X = 1) = (a), where () is the standard normal CDF. ii. Show how to generate a Bernoulli random variable with probabil- ity of a 1 being 0.3. Consider the...
-
Nathan Martin has the following data he needs you to include on his Statement of Cashflows Net Income: $32,000 Depreciation: 10,000 Gain on a sale: 8000 Accts Rec decrease: 5,000 Inventory decrease:...
-
Mandy Murphy, owner of Murphy and Co. (Saint John, New Brunswick), gave the following list of assets and liabilities to a public accountant and asked him to prepare a balance sheet for the company as...
-
What are the social groups to which you belong that shape your standpoint? Are some more influential than others? How do they affect your view of the world? Is it possible for you to answer these...
-
Jake, Sacha, and Brianne own a tour company called Adventure Sports. The partners share profit and losses in a 2:3:5 ratio. After lengthy disagreements among the partners and several unprofitable...
-
QUESTION ONE [50] Read the scenario below and answer the questions that follow: ModusLink Global Solutions ModusLink provides the client with a dedicated global business management team, led by a...
-
What exactly is a prima facie duty? How does an ethic of prima facie duties differ from monistic and absolutist ethical theories?
-
Two flip-flops are connected as shown in the following diagram. The delay represents wiring delay between the two clock inputs, which results in clock skew. This can cause possible loss of...
-
List four important characteristics that make a processor RISC type.
-
A D flip-flop has a setup time of 5 ns, a hold time of 3 ns, and a propagation delay from the rising edge of the clock to the change in flip-flop output in the range of 6 to 12 ns. An OR gate delay...
-
The vertices in the graph below are grain elevators, some of which can be connected by chutes to neighboring elevators, for the purpose of shifting grain from one location to another. The edges are...
-
An alternative algorithm for finding the shortest path from the root \(v_{0}\) to each vertex \(v\) in a directed graph, called Dijkstra's algorithm, is as follows. Initialize the cost \(C(v)\) of a...
-
Use Dijkstra's algorithm (see Exercise 14) to list shortest paths to all vertices \(v_{1}, \ldots, v_{7}\) in the graph of Exercise 11 Do this by hand, rather than with Mathematica.
Study smarter with the SolutionInn App