Você está na página 1de 4

TEST 2 Task and function Q1.how we can differentiate task and function using examples and diagrams. Q2.

write the function for parity calculation and show its invocation. Q3. Define a function to calculate the factorial of a 4-bit number. The output is a 32 bit value .Invoke the function by using stimulus and check result. Q4 Define a task to compute the even parity of a 16-bit number. The result is a 1 bit value .that is assigned to the output after three positive edges of clock. [hint: use a repeat loop in the task]. Q5. Define a task to compute the factorial of a 4-bit number. The output is a 32 bit value .the result is assigned to the output after a delay of 10 time units. Behavioral model Q1.

Q2.design a four bit binary counter uses behavioral modeling. Q3.declare a register called oscillate. Initialize it to 0 and make it toggle every 30 time units. Do not use always statement [Hint : use the forever loop] Q4.design a clock with time period =40 and a duty cycle of 25% by using the always and initial statements. The value of clock at time =0 should be initialized to 0. Q5.Compare the blocking and non blocking statements with examples.

Q6.

Q7.

Q8. Give the significance of case x and case z with suitable examples. Q9. Write a Verilog code of level sensitive D latch with asynchronous reset. In which you have to use the event OR control and timing delay of (number, identifier and expression). Q10.differentaite timing control delay and event based delays with examples. Q11.Give the significance of zero delay with examples. Q12.differentaite between initial and always block with examples. Data flow model: Q1. Verilog code for ripple carry adder using data flow model. Q2.4-bit full adder with carry looks ahead adder using data flow model.

Q3. 4: 1 and 8:1 mux using data flow model. Q4. All operators name and function. Eg: X= 10011010 Fine all reduction operators of the above data. -10/5=? Which operator is used in this statement? Q5.define delays: a) Net declaration b) Implicit continuous assignment delay c) Regular assignment delay Gate model Q1.

Q2.write Verilog code for D,T flipflop using dealys (3:2:4,2:4:5,1:2:3) using gate model ,also apply stimulus for the above flipflops. Q3. Write Verilog code for adder ,subtractors, mux, demus, encoder, decoder etc using delays (3:2:4,2:4:5,1:2:3) using gate model ,also apply stimulus for the above circuits..

Você também pode gostar