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.
-
Explain the following:"The effectiveness of internal control over financial reporting requires an integrated analysis of the COSO control components to reduce the residual risk to an acceptable...
-
Two very long parallel plates of length 2L are separated a distance b. The upper plate moves downward at a constant rate V. A fluid fills the space between the plates. Fluid is squeezed out between...
-
The 2011 annual report of Priority Parcel Service (PPS) reported revenue of \($28\) billion. Total expenses for the year were \($21\) billion. PPS ended the year with total assets of \($37\) billion,...
-
The director of a large public library must schedule employees to reshelve books and periodicals checked out of the library. The number of items checked out will determine the labor requirements. The...
-
Stephen T. Chesterton (Stephen), aged 82, made millions from a business called the Adventure and Romance Agency Pty Ltd ("ARA"). For a fee, the company would surround customers with "startling and...
-
Determine the forces in members AB , AC , and AD . Point M is the centroid of triangle BCD . The forces are positive if in tension, negative if in compression. B 5.2' M 5.2' 1190 lb x D 5.2 6.6'
-
Carl buys a 7-year, $10,000 par value, 7% coupon bond. Exactly 4 years after purchasing the bond, he needs cash so he wants to sell the bond. If due to changes in the interest rate environment, the...
-
What are the actions taken by the Sprouts Farmers Market in measuring risk and ethical behavior?
-
2 Is it possible to factor 1 - sin x two different ways? If so, show and explain. If not, why not?
-
A bat s echolocation is measured around 9 9 kHz , with a pulse of only 1 2 s . Due to the sampling error, determine a range of possible frequencies.
-
If two trading partners suddenly become entangled in a trade war, what impact will this have on each nation? Explain.
-
List the major traditional banks in Canada? 2. What other options for Canadian banking are there besides the "Big 5 "? 3. What is your preferred Canadian banking option? Name of institution: Bank of...
-
Make working code in javascript , html that shows a drop down menu of the police stations in a specific geographical location. The drop down menu should include the list of all police stations as one...
-
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...
-
On 1 January 2024, a company receives gross debenture interest of 1,600 from another UK company and pays net debenture interest of 8,640 to individuals. Explain the corporation tax treatment of each...
-
A company's accounts for the 17 months to 30 June 2023 include: The debentures were acquired (not for trade purposes) on 1 May 2022. Interest is payable half-yearly on 30 April and 31 October. Show...
-
Distinguish between P-time and M-time.
Study smarter with the SolutionInn App