Free Essay

Asic

In: Computers and Technology

Submitted By Arunabi
Words 788
Pages 4
SNUG-2000
San Jose, CA
Voted Best Paper
1st Place

World Class Verilog & SystemVerilog Training

Nonblocking Assignments in Verilog Synthesis, Coding
Styles That Kill!

Clifford E. Cummings
Sunburst Design, Inc. cliffc@sunburst-design.com www.sunburst-design.com

ABSTRACT
One of the most misunderstood constructs in the Verilog language is the nonblocking assignment. Even very experienced Verilog designers do not fully understand how nonblocking assignments are scheduled in an IEEE compliant Verilog simulator and do not understand when and why nonblocking assignments should be used. This paper details how Verilog blocking and nonblocking assignments are scheduled, gives important coding guidelines to infer correct synthesizable logic and details coding styles to avoid Verilog simulation race conditions.

1.0 Introduction
Two well known Verilog coding guidelines for modeling logic are:



Guideline: Use blocking assignments in always blocks that are written to generate combinational logic [1].
Guideline: Use nonblocking assignments in always blocks that are written to generate sequential logic [1].

But why? In general, the answer is simulation related. Ignoring the above guidelines can still infer the correct synthesized logic, but the pre-synthesis simulation might not match the behavior of the synthesized circuit.
To understand the reasons behind the above guidelines, one needs to have a full understanding of the functionality and scheduling of Verilog blocking and nonblocking assignments. This paper will detail the functionality and scheduling of blocking and nonblocking assignments.
Throughout this paper, the following abbreviations will be used:
RHS - the expression or variable on the right-hand-side of an equation will be abbreviated as
RHS equation, RHS expression or RHS variable.
LHS - the expression or variable on the left-hand-side of an equation will be abbreviated as LHS equation, LHS expression or LHS variable.

2.0 Verilog race conditions
The IEEE Verilog Standard [2] defines: which statements have a guaranteed order of execution
("Determinism", section 5.4.1), and which statements do not have a guaranteed order of execution ("Nondeterminism", section 5.4.2 & "Race conditions", section 5.5).
A Verilog race condition occurs when two or more statements that are scheduled to execute in the same simulation time-step, would give different results when the order of statement execution is changed, as permitted by the IEEE Verilog Standard.
To avoid race conditions, it is important to understand the scheduling of Verilog blocking and nonblocking assignments.

SNUG San Jose 2000
Rev 1.3

2

Nonblocking Assignments In Verilog
Synthesis, Coding Styles that Kill

3.0 Blocking assignments
The blocking assignment operator is an equal sign ("="). A blocking assignment gets its name because a blocking assignment must evaluate the RHS arguments and complete the assignment without interruption from any other Verilog statement. The assignment is said to "block" other assignments until the current assignment has completed. The one exception is a blocking assignment with timing delays on the RHS of the blocking operator, which is considered to be a poor coding style [3].
Execution of blocking assignments can be viewed as a one-step process:
1. Evaluate the RHS (right-hand side equation) and update the LHS (left-hand side expression) of the blocking assignment without interruption from any other Verilog statement.
A blocking assignment "blocks" trailing assignments in the same always block from occurring until after the current assignment has been completed
A problem with blocking assignments occurs when the RHS variable of one assignment in one procedural block is also the LHS variable of another assignment in another procedural block and both equations are scheduled to execute in the same simulation time step, such as on the same clock edge. If blocking assignments are not properly ordered, a race condition can occur. When blocking assignments are scheduled to execute in the same time step, the order execution is unknown. To illustrate this point, look at the Verilog code in Example 1. module fbosc1 (y1, y2, clk, rst); output y1, y2; input clk, rst; reg y1, y2; always @(posedge clk or posedge rst) if (rst) y1 = 0; // reset else y1 = y2; always @(posedge clk or posedge rst) if (rst) y2 = 1; // preset else y2 = y1; endmodule Example 1 - Feedback oscillator with blocking assignments

According to the IEEE Verilog Standard, the two always blocks can be scheduled in any order. If the first always block executes first after a reset, both y1 and y2 will take on the value of 1. If the second always block executes first after a reset, both y1 and y2 will take on the value 0. This clearly represents a Verilog race condition.

SNUG San Jose 2000
Rev 1.3

3

Nonblocking Assignments In Verilog
Synthesis, Coding Styles that Kill

4.0 Nonblocking assignments
The nonblocking assignment operator is the same as the less-than-or-equal-to operator ("

Similar Documents

Premium Essay

Asic

...ASIC, stands for Australian Securities and Investment Commission, aims to maintain public confidence by improving sales and disclosure practice in the financial advisory industry. And its role implement the legislation, which is the watchdog for consumer protection laws in financial products and services. In order to protect investors, ASIC approves FSRA to require a licensing regime for financial products advice, sales and dealings, and a single set of requirements for financial sales and advice, and disclosure documents. In this case, we should focus on the disclosure requirement, since the prospectus appeared in the case is the key disclosure document for managed investments of product disclosure statement(PDS). RG 168 recognizes the PDS provisions and contains general guidelines to help product issuers and to promote the objectives of these provisions, that is, making informed choices and helping consumers to compare financial products. According to this case, Mr Lewis, as a director of Altitude Property Limited, failed to disclose material information in the prospectus to investors. More specifically, investors had no idea that an incentive payment agreement had been entered into and their funds raised would be paid to another company. AS a director of a public firm, he has the obligation to inform their investors of the details of the products or services, and the investors also have the right to be informed the use of their money. An occasion may appear if the......

Words: 507 - Pages: 3

Premium Essay

ASIC Case Study

...About ASIC ASIC (Australian Securities and Investment Commission) is a government body in Australia which deals in the corporate markets and money related administration supplier. They give help to Australia's monetary notoriety and development by confirming that Australia's money related markets are unprejudiced and clear, moved down by hazard opposed backers and fulfilled customers. They were organized under the Australian Securities and Investments Commission Act 2001 (ASIC Act) and are additionally in charge of its organization. They are a free Region government body. They are accountable to the Province Parliament, the Treasurer and the Parliamentary Secretary to the Treasurer. .About One. Tel John David Rich and Brad Keeling together...

Words: 1567 - Pages: 7

Premium Essay

Asic Case Study

...Topic 1: Ethics (Code of Ethics for Professional Accountants) Topic 1: Ethics (Code of Ethics for Professional Accountants) ------------------------------------------------- ------------------------------------------------- Introduction According to the Institute of Internal Auditors a Code of Ethics is a comprehensive statement of the values and principles, which should guide the daily work of auditors. The Code of Ethics states the principles and expectations governing the behavior of individuals and organizations in the conduct of internal auditing. It describes the minimum requirements for conduct, and behavioral expectations rather than specific activities. Fundamental Principles The Code of Ethics mandates that internal auditors behave and practice with integrity, objectivity, professional competence and due care, confidentiality and professional behaviour. These are the fundamental principles of professional ethics and all members of the professional accounting bodies are to comply with these principles (APES 110, S.100.4). Purpose of the Code of Ethics Internal auditing is an independent, objective assurance and consulting activity designed to add value and improve an organization's operations. A code of ethics is necessary and appropriate for the profession of internal auditing, founded as it is on the trust placed in its objective assurance about governance, risk management, and control. The Code of Ethics extends beyond the definition of......

Words: 1507 - Pages: 7

Free Essay

Asic V Adler Hih Insurance

...asic v adler hih insurance HIH Insurance was founded in 1968 by Ray Williams and Michael Payne, which was known as "M W Payne Underwriting Agency Pty Ltd". However, their company was acquired in 1971 by a British company called CE Heath PLC and appointed Ray Williams to be the board of CE Heath PLC in 1980. In 1989, the business operations of CE Heath PLC were transferred to CE Heath International Holdings Ltd. And the company floated on the Australian Stock Exchange in 1992. After 3 years, CE health international holdings became a subsidiary of Winterthur Swiss and was changed the name to HIH Winterthur. In 1999, HIH Winterthur acquired a large number of companies both in Australia and globally. The chief executive of FAI Insurance, Rodney Adler became a director of HIH and HIH changed its name to HIH Insurance Ltd. The reckless management by Rodney Adler, finally HIH collapsed in 2001 with debts of about $5.3billion; ASIC placed investigation into this case due to an intentional failure disclosure of financial statement by hih insurance company. The former HIH director Mr. Adler breached his duties under the sections 180, 181, 182 and 183 of Corporations Act. The criminal charges included the disclosure of misleading statement, conflict of interests and breach of director duty in good faith of the company. Mr. Adler was sentenced on 14 April 2005 to four and a half years jail, with a non-parole period of two and a half years. HIH insurance is currently in......

Words: 352 - Pages: 2

Premium Essay

Corporations Legislation Amendment (Audit Enhancement) Bill 2012

...event that they conduct audit of 10 or more significant entities. This is applicable to those audit firms which carry out an audit of 10 or more than 10 significant entities in an year. These entities may be listed companies or other listed registered schemes. The auditor in such a case is required to publish an annual transparency report on the auditor’s website as well as with the ASIC. The contents of the transparency report are required to be as per the provisions of Sec 332B of the Corporations Act and other regulations. These mainly contain information about the ownership, structure, governance and other factual information relating to such audit firms. The idea is that information regarding such audit firms who are carrying audit of large entities is available to their existing as well as potential clients. The second measure requires and empowers ASIC to issue an audit deficiency report in relation to an individual audit firm if it recognizes an audit deficiency in the auditor’s quality control system or the conduct of an audit which may be unfavourable to the overall quality of the audit. ASIC may note any deficiency in the auditor’s quality control system and such...

Words: 1274 - Pages: 6

Premium Essay

Auditing for Harris Scarfe

...report The article I choose is titled ‘ASIC get tough on financial reports’. It is about ASIC find some problems after reviewing the annual financial. There are three main problems appear in this article. First is value asset, due to the financial globe crisis impact Australia market, company have a low level of asset impairment, some company disclose the minor information which could mislead the investor’ decision making. The AASB introduces the AASB 8 which required segmental results to be regularly reviewed by the relevant division’s “chief operating decision maker. The second problem is the indistinct information will make the chosen of accounting policy, financial instruments such as derivatives contracts will have to be examined, ASIC says company have to provide more information to users, rather than boilerplate disclosures. The third problem is some resources are uncertainty to be estimated ; it is about many companies write down the intangible asset. In order to solve these problems. ASIC decides to focus on segmenting and reporting in which profits are identified by geographic region or by type. It can help investor understand the financial position and performance for the company and avoid these problems happened. In this article, we can see ASIC play a regulatory role in the accounting profession. ASIC is Australian Securities and Investment Commission, it is monitoring and regulating various investment products for company. ASIC is Australia’s corporate,......

Words: 775 - Pages: 4

Free Essay

Corporate Governance

...  Australian  Securities  and  Investments   Act  2001  (ASIC  Act)  has  provided  ASIC  a  number  of  enforcement  powers  to  carry   out  their  role,  which  includes:     1. Grant  Australian  financial  service  license  and  Australian  credit   license   ASIC  has  the  power  to  legalize  or  licensing  a  person  who  carries  on   financial  services  business.  It  is  aim  to  give  an  investor  a  confidentiality  to   deal  with  the  persons  who  are  legally  licensed  by  ASIC.  In  relation  to  the   license  that  provided  by  ASIC,  it  is  intended  to  ensure  the  financial   services  business  fulfill  their  obligation  according  to  the  standards  and   meet  the  public  prospect.  Then  this  will  help  ASIC  to  take  any  action  to   protect  the  investors  from  engaging  any  misconduct  that  possibly  occurs.     2. Investigate  any  suspect  breaches  of  law  and  require  the  company   books  at  the  examination   Under  the  ASIC  Act,  ASIC  has  the  power  to  examine  or  investigate ......

Words: 2686 - Pages: 11

Premium Essay

Australia V Foreetst

...initial the judgment was made for ASIC. And then, the judge had given the verdict in favor of Forrest and Fortescue Metal Group in the Federal Court. But finally, in the High Court of Australia, the verdict found that both Forest was not guilty and the Company did not breach any sections of the Corporate Act in 2001. BACKGROUND Fortescue Metal Group Ltd (Fortescue), located in Western Australia, was a mining company (Fortescue Metal Group Ltd 2014). Mr Andrew Forest was chairman, chief executive and substantial shareholder in Fortescue (Fortescue Metal Group Ltd 2014). The Australian Securities and Investments Commission (ASIC) sued Fortescue and Forrest about a contract regarding the Port Hedland and a railway was to be built to connect the mine and the port. Fortescue signed a contract with three Chinese corporations, included China Railway Engineering Corporation (CREC), China Harbour Engineering Company (CHEC) and China Metallurgical Construction Corporation (CMCC) during August and November 2004. The three contracts were signed separately and being combined to be known as “Framework Agreement”. During August and November 2004, Forrest released a press that Fortescue had entered into a binding contract with CREC to build and finance a project which included construction of the railway. In March 2005, Australian Financial Review published an article stated that framework agreements were not legally binding. One year later, ASIC began proceedings to Mr......

Words: 2760 - Pages: 12

Premium Essay

Motorola Company Case 1-4 Summary

...military throughout the world. To exploit fully the growing demand for semicustom integrated circuits, Motorola organized the Application Specific Integrated Circuits (ASIC) Division as part of the Semiconductor Products in 1984. The controller of ASIC sensed that he and his staff could play a significant part in determining the success of this new business. That is, because ASIC division was competing in a new and dynamic market with unique requirements but it also was radically changing the way to deliver its product. These circumstances led the controller to reassess the most basic issues involved in designing a management control system, which are how, what, who, and for whom should it be measured. The managers of the new division realized that the semicustom integrated circuit business had different requirements for success. In this semicustom gate arrays market, the customers are involved in the middle of the development cycle. Thus, Motorola focused on its customers, rather than on its product. Customers such as DEC, Apple Computer, and Unisys competed in markets characterized by rapidly changing technology. High quality, quick development time, and the ability to achieve volume production rapidly were paramount to capture the business of these customers, while price was secondary importance. In 1985, the ASIC Division occupied Motorola’s Chandler facility in Phoenix, US. The division was organized along functional lines called Department, which are: Product......

Words: 651 - Pages: 3

Free Essay

Prepare an Ipo

...Step 1 Prepare a disclosure document. This is to be approved by the Board, making sure all the information is correct and not misleading. A disclosure document should contain the facts that an investor needs to make an informed investment decision. Disclosure documents are very important as they contain information to help you assess the benefits, risks, rights and obligations associated with a warrant, and the issuer's capacity to fulfil its obligations. In the disclosure document you can expect to find information on: • the rights and obligations of both issuer and holder • the underlying instrument • fees and charges • how to subscribe for the warrant in the primary market • the reporting and documentation you can expect from the issuer • exercise procedures • any other information an investor would reasonably require in making an informed decision. There are two types of disclosures for shares and bonds: • The preliminary document is the first offering document provided by a securities issuer and includes most of the details of the business and transaction in question. • The final document is printed after the deal has been made effective and can be offered for sale. • It contains finalized background information including such details as the exact number of shares/certificates issued and the precise offering price. Disclosure documents are generally prepared with the assistance of the underwriter......

Words: 471 - Pages: 2

Premium Essay

Law Adi & Apra

...QUESTION 1 a) Having the license for APRA (Australian Prudential Regulation Authority), Victoria bank is an authorised deposit taking institution (ADI). Been a part of APRA, which is needed to operate as a bank legally in Australia, it gives Victoria Bank the licence to undertake ‘business of banking’ which is defined in the Banking Act 1959. This shows that Victoria bank has fulfilled the ADI application requirements including sufficient start-up capital, ownership, sufficient risk management and internal control system, information and accounting system, and fulfilment developments. Addition to APRA, according to corporation act 2001, Victoria Bank also needs to have an AFSL, Australian Financial Service License off ASIC. This license will give the bank the authority to provide different financial services, “provide financial product advice to clients”, “deal in a financial product”, “make a market for a financial product”, “operate a registered scheme”, “provide a custodial or depository service”, and to “provide traditional trustee company services.”. Having fulfilled APRA & AFSL, Victoria bank has accepted the laws controlled by a number of guiding bodies. On top of APRA and AFSL there is the Australian Consumer and competition commission (ACCC), and the Reserve Bank of Australia (RBA). APRA will keep a close eye on the operations that Victoria Bank exercises, to make sure they keep financial promises to their customers and continue been financially......

Words: 2084 - Pages: 9

Premium Essay

Storm Financial by Paul Barry

...The Saturday Paper The Monthly The Quarterly Essay ECONOMICS In the Eye of the Storm The Collapse of Storm Financial Paul Barry By mid March, America’s champion fraudster Bernie Madoff will have served two years of a 150-year prison sentence for stealing billions of dollars from his rich and famous investors. As he chalks up the anniversary on his North Carolina jail wall, our corporate cop, the Australian Securities and Investments Commission (ASIC), will have barely begun its action against Australia’s champion wealth destroyer Storm Financial Ltd, whose reckless advice cost 3000–4000 investors in Queensland, New South Wales and Victoria around $3 billion. Yet these financial collapses happened at almost exactly the same time: Bernie Madoff was led away in handcuffs in December 2008, just as Storm’s banks pulled the plug on the big Townsville-based financial planner and its unfortunate clients. There are, of course, huge differences between the two cases, not least that Bernie Madoff pleaded guilty and Storm’s founder, Emmanuel Cassimatis, didn’t steal investors’ money. But there are also strong similarities; these two super salesmen helped wreck the lives of thousands of elderly investors. Cassimatis’ ex-partner, Ron Jelich, who sold his financial planning business on the Gold Coast to Storm and became a key player in the group, told a parliamentary inquiry in 2009 that the collapse had inflicted “total horror, emotional despair and psychological......

Words: 2948 - Pages: 12

Free Essay

Sjdhlkhcfsl

...products and certain other financial products. In particular, it addresses the naked short selling prohibition and the reporting and disclosure obligations. This guide is particularly relevant to institutional investors and brokers who are involved in short selling activity. REGULATORY GUIDE 196: Short selling About ASIC regulatory documents In administering legislation ASIC issues the following types of regulatory documents. Consultation papers: seek feedback from stakeholders on matters ASIC is considering, such as proposed relief or proposed regulatory guidance. Regulatory guides: give guidance to regulated entities by:     explaining when and how ASIC will exercise specific powers under legislation (primarily the Corporations Act) explaining how ASIC interprets the law describing the principles underlying ASIC’s approach giving practical guidance (e.g. describing the steps of a process such as applying for a licence or giving practical examples of how regulated entities may decide to meet their obligations). Information sheets: provide concise guidance on a specific process or compliance issue or an overview of detailed guidance. Reports: describe ASIC compliance or relief activity or the results of a research project. Document history This version was issued on 7 April 2011 and is based on legislation and regulations as at 7 April 2011. Previous versions:  Superseded Regulatory Guide 196, issued 19 September 2008, reissued 23 April 2010, with minor......

Words: 16462 - Pages: 66

Free Essay

Business

...Asic vs Adler Introduction Since ASIC is a corporate entity, it can engage in legal action with other corporate companies that it suspects to be committing criminal or civil offences within the financialsystem. There are several famous court cases that ASIC has been involved with in Australian law and ASIC vs Adler is one of the cases. The sections that defendants commonly breached include ss180, 181, 182, and 183, which involve failing to act in good faith, failing to provide a duty of care and diligence, and avoiding the use information gained in their positions for their own benefit. The ASIC v Adler (2002) case involved the defendant directors obtaining highly confidential information due to their positions, and using this information to base decisions upon which to buy or sell shares. The main defendant, Adler, was found guilty of  breaching ss 180, 181, 182 and 183 of the Corporations Act. The court held that Alder benefited both himself and his family in the transactions. http://www.scribd.com/doc/18531717/CO5121-Assignment Facts Adler was a non-executive director of HIH Insurance Ltd (HIH). William was a director and the CEO of HIH. Fodera was a director and the finance controller of Hih. HIHC was a wholly owned subsidisry of hih. Adler requested and williams and fodera arranged for HIHC ot advance $10 million to Pacific Eagle Equity Pty Ltd (PEE), a company controlled by Adler. The $10 million payment was arranged so that no other director of HIH...

Words: 1774 - Pages: 8

Premium Essay

Facility Design

...focus is on the directors * ‘officer’ and ‘director’ definition- s9, p200 (Morley v ASIC). * ‘director’- a) appointed director regardless of the name given to their position; b) not validly appointed director but acts in position or; c) not validly appointed but the directors of the company are accustomed to act in accordance with the person’s instructions and wishes; person in a) OR b) is de facto director, within c) is a shadow director * Statutory duties, including the duty to act with reasonable care and diligence and the duty to act in the best interests of the company * Statutory requirement for all companies to have at least one director; PTY company must have at least one, with one ordinarily residing in Australia (s201A(1)); public companies must have at least 3, with at least 2 in Aus (s201A(2)) * Directors’ role: manage or supervise the management; for companies that rely on the replaceable rules as their internal governance rules, s198A provides that “the business of a company is to be managed by or under the direction of the directors’” * Company secretary: public companies must have at least one company secretary (s204A(2)) be 18yo and have at least one residing in Aus; PTY company may have one but is not required to appoint one (s204A(1)); secretary is appointed by directors; responsibilities include record-keeping and lodging certain documents with ASIC; same person may be both director and company secretary; for public companies does......

Words: 6745 - Pages: 27