7. Besides fork... join and begin... end, SystemVerilog introduces fork.. join none and fork_.. join any...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
7. Besides fork... join and begin... end, SystemVerilog introduces fork.. join none and fork_.. join any to create threads. Please write the outputs of the following two code examples. initial begin $display("@%0t: start fork...join_none example", $time); #10 $display ("@%0t: sequential after #10", $time); fork $display ("@%0t: parallel start", $time); #50 $display ("@80t: parallel after #50", $time); #10 $display ("@%0t: parallel after #10", $time); begin #30 $display ("@%0t: sequential after # 30", $time); # 10 $display ("@%0t: sequential after #10", $time); end join_none $display ("@%0t: after join_none", $time); #80 $display("@%0t: finish after #80", $time); end Code 1 initial begin $display ("@%0t: start fork...join_any example", $time); #10 $display("@%0t: sequential after # 10", $time); fork $display("@%0t: parallel start", $time); #50 $display("@%0t: parallel after #50", $time); # 10 $display("@%0t: parallel after # 10", $time); begin # 30 $display("@%0t: sequential after #30", $time); # 10 $display("@80t: sequential after #10", $time); end join any $display("@%0t: after join_any", $time); # 80 $display("@%0t: finish after #80", $time); end Code 2 7. Besides fork... join and begin... end, SystemVerilog introduces fork.. join none and fork_.. join any to create threads. Please write the outputs of the following two code examples. initial begin $display("@%0t: start fork...join_none example", $time); #10 $display ("@%0t: sequential after #10", $time); fork $display ("@%0t: parallel start", $time); #50 $display ("@80t: parallel after #50", $time); #10 $display ("@%0t: parallel after #10", $time); begin #30 $display ("@%0t: sequential after # 30", $time); # 10 $display ("@%0t: sequential after #10", $time); end join_none $display ("@%0t: after join_none", $time); #80 $display("@%0t: finish after #80", $time); end Code 1 initial begin $display ("@%0t: start fork...join_any example", $time); #10 $display("@%0t: sequential after # 10", $time); fork $display("@%0t: parallel start", $time); #50 $display("@%0t: parallel after #50", $time); # 10 $display("@%0t: parallel after # 10", $time); begin # 30 $display("@%0t: sequential after #30", $time); # 10 $display("@80t: sequential after #10", $time); end join any $display("@%0t: after join_any", $time); # 80 $display("@%0t: finish after #80", $time); end Code 2
Expert Answer:
Answer rating: 100% (QA)
fork joinnone this is a block in which the block will only start the threads inside the block bu... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these electrical engineering questions
-
Indicate the outputs of the following code segments: a. String str = "The rain in Spain falls mainly on the plain"; System.out.println(str.indexOf(' ')); b. String str = "The rain in Spain falls...
-
Write the SQL code to create the table structures for the entities shown in Figure P7.65. The structures should contain the attributes specified in the ERD. Use data types that would be appropriate...
-
Write the SQL code to create a copy of EMP_1, naming the copy EMP_2. Then write the SQL code that will add the attributes EMP_PCT and PROJ_NUM to its structure. The EMP_PCT is the bonus percentage to...
-
Explain the advantages of using JDBC metadata for Java database applications.
-
How do assets create value for our business? Investing decisions affect a companys profits, risk, and value. Investment decisions that result in fixed costs increase risk and the ability of a company...
-
The number of Internet users in Latin America grew from 78.5 million in 2000 to 156.6 million in 2010. Use the geometric mean to find the annual growth rate.
-
Consider the following game tree. As always, the top payoffs at a leaf are for player I and bottom payoffs for player II. (a) What is the number of strategies of player I and of player II? (b) How...
-
On January 1, 2014, Alicia Masingale established Leopard Realty, which completed the following transactions during the month: a. Alicia Masingale transferred cash from a personal bank account to an...
-
fill in the blanks please Two years ago you purchased a new SUV. You financed your SUV for 60 months (with payments made at the end of the month) with a loan at 4.5% APR with monthly compounding....
-
The Evanstonian is an upscale independent hotel that caters to both business and leisure travelers. When a guest calls room service at The Evanstonian, the room-service manager takes down the order....
-
Quebec Ltd. is a company that manufactures climbing rope for mountaineering and rescue operations. They sell various types of rope to four distributors: Alpine Adventures Corporation (AAC), Mountain...
-
a. Tests of controls only relate to the effectiveness of the operation of a control. Do you agree? Explain. b. On what three questions do tests of controls of effectiveness of operation focus?
-
Why are notes issued at a discount? at a premium? at face value?
-
Whaf^ualitatwe1 factors should be considered in forming a conclusion about the effectiveness of a control policy or procedure?
-
How is a provision different from other liabilities, such as accounts payable?
-
What factors should be considered by the auditor in evaluating the work done by internal auditors under a a. Coordination of work arrangement? b. Direct assistance arrangement?
-
CREATE a 1 to 2 page essay exploringhow personal habits, stress, and health interact; discuss the difference in the medical model's view of health and the view of the biopsychosocial model; and...
-
Sportique Boutique reported the following financial data for 2012 and 2011. Instructions(a) Calculate the current ratio for Sportique Boutique for 2012 and 2011.(b) Suppose that at the end of 2012,...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. Ivan and Irene have the following investment income, in addition to that reported in Chapter 1: Dividends...
-
In 2012, Michael has net short-term capital losses of $2,000, a net long-term capital loss of $45,000, and other ordinary taxable income of $45,000. a. Calculate the amount of Michael's deduction for...
-
Steve Jackson (age 51) is a single taxpayer living at 3215 Pacific Dr., Del Mar, CA 92014. His Social Security number is 465-88-9415. In 2012, Steve's earnings and income tax withholding as the...
-
The bank columns in the cash book for June 19X7 and the bank statement for that month for C Grant are as follows: You are required to: (a) Write the cash book up to date to take the above into...
-
The bank statement for G Greene for the month of March 19X6 is: You are to: (a) Write the cash book up to date, and (b) Draw up a bank reconciliation statement as on 31 March 19X6. 19X6 Mar 1 Dr Cr...
-
Following is the cash book (bank columns) of E Flynn for December 19X7: You are required to: (a) Write the cash book up to date to take the necessary items into account, and (6) Draw up a bank...
Study smarter with the SolutionInn App