Machine Learning To Enable Bug Free Chips
Two years ago, ARM decided to investigate the way in which its teams undertake hardware design. Using tools developed for cloud computing, the company now sifts through every result from the thousands of tests and simulations it runs on a daily basis in order to look for patterns.
βRTL verification generates a lot of data,β Bryan Dickman, director of engineering analytics in ARMβs technology services group, told the TV&S Verification Futures seminar earlier in 2017. βItβs becoming a big-data problem.β One of the questions which ARM wants to answer is βare we running dumb cycles?β.
Dickman noted: βWe do a lot of analytics around bugs. We drill into bugs by methodology and areas of the design: what methodologies find bugs and when. It is interesting to see how you are finding bugs against the amount of verification you are running. You can start asking questions like βI have been running lots of cycles, but no bugs were discovered: were they dumb cycles?β.β
So far, the emphasis has been on building visualisation tools to help engineers analyse the patterns. The next step is to build tools that can learn from the data. βWe are looking at how we can take machine-learning algorithms and apply them to the data, then design predictive workflows that improve productivity,β Dickman said.
Machine learning (ML) has started to take hold across the EDA world in general and more than 20% of papers at the 2017 Design Automation Conference (DAC) dealt with ML techniques. But the applications are not going to be distributed evenly. Access to data is one of the biggest issues.
Speaking at a panel session during DAC, Ting Ku, senior director of engineering at nVidia, said ML techniques need to be tuned to the problem. βWhen people talk about ML, most think itβs neural network-related. But the data doesnβt have to be modelled by a neural network.β
Singapore-based Plunify combines domain knowledge with some forms of ML in its InTime tool, which tunes the parameters used to compile FPGA designs for performance and area.
Plunify co-founder Kirvy Teo noted: βThe nature of ML in this area is different from the things we see at Google. Neural networks work very well for lots of data points, but we are dealing with thousands of data points, rather than billions.β
Fellow co-founder and CEO HarnHua Ng added: βWe canβt tell customers βFirst youβve got to run ten thousand compilationsβ.β

A machine-learning algorithm developed by the University of California at Santa Barbara and Freescale filters out repeated test vectors in simulation. It achieved the same coverage in 310 tests as a normal testbench did in 6010.
EDA tool developers can apply techniques ranging from fairly simple regression algorithms, that fit a curve to a collection of data points, to more advanced techniques, such as support vector machines that, before the advent of deep learning, proved successful in image recognition.
Earlier this year, tool supplier Solido Design Automation launched its ML Labs initiative. The company built a toolkit of techniques for use in its own tools, such as one that analyses models of the low-level behaviour of the cell libraries used in IC design on advanced processes. In these processes, statistical variation at the nanometre scale strongly affects performance and the effects of temperature and voltage are not always linear. Traditionally, this demands many simulation runs to characterise the cells at all possible operating points. The tools analyse how the variables in existing libraries interact and build models to predict the parameters for a subset of simulations that will create an effective library.
Amit Gupta, Solido CEO, explained: βWe have been focused on ML for variation-aware design for the past seven years and are expanding that into other areas. The first area is characterisation, but we are getting demand from customers to expand into other areas within EDA.β
Sorin Dobre, senior director of technology at Qualcomm, points to an expansion of ML across more of the tasks needed at the physical-design level. βAt 10nm and 7nm, we see a lot of process variation. You have to validate across multiple process corners.β
The problem that faces physical-verification teams is the number of combinations of temperature, transistor speeds and voltage that require checking under brute-force methods. βThe question is to how to get good quality results without an explosion in process corners. ML can bring a 10x improvement in productivity.β
One area where RTL verification teams have seen success with ML methods is in eliminating some of the dumb verification cycles that concern ARMβs designers. Harry Foster, chief scientist at Mentor, now a subsidiary of Siemens, says. βCan I minimise the number of tests and still achieve a reasonable level of coverage? There are papers on that and it is a technique now being applied in the industry.β
Yield analysis is another area where ML is having an impact. It can predict the types of geometry in a dense design that are likely to lead to lithographic or other process failures β and thus dud chips. βImproving yield by two or three points has a significant economic benefit,β Dobre notes.
Machine learning should make it easier to build simplified models of complex interactions that defy rule-based design methods. For example, researchers at Georgia Institute of Technology proposed using models generated automatically from electromagnetic measurements and simulations to help organise devices and I/O pins on multi chip modules so that signals do not suffer from crosstalk or IR drop.

Researchers at Georgia Tech, among others, are looking to use machine learning to build better heat-aware models in order to improve chip-package codesign. Courtesy of Cadence
βWhere ML doesnβt work well is where you have to guarantee finding something, like manufacturing test. With verification, I can get away with less than 100% coverage, because my intent is mitigating risk. I canβt with manufacturing test, because it leads to returns,β Foster said.
The next step is to try to reuse the learning across projects. This is one of the obstacles that slows down adoption of data mining and ML in RTL verification.
Foster continued: βThe issue with [RTL] verification is that although people say we have lots of data, the reality is we donβt. If Iβm starting a project, I have no data. How can we be successful in applying ML techniques if our data is limited? It canβt be based just on pure data mining; it has to incorporate some domain knowledge.β
Dobre says the issue of lack of data is reflected in physical implementation. βThe question is how can you maintain cycle times when you go to the next process technology? We have highly automated flows from RTL to gates, but they are not repetitive β they are based on experience. If you bring in a new design team, you start from a pretty low level of experience.β
One possibility is to use data mining to look at repetitive tasks, such as timing closure, and to use ML to automate some of them, while learning about the new processes as each project continues. βWe need to capture designer knowledge during implementation and reflect it back to the design community and the foundry side to fix issues,β Dobre argued, adding this would need data from many sources.
βThere is a need for flexibility from the major EDA companies to work with these solutions,β he concluded. βIf you have a closed system and donβt allow anyone to interact with your tools, we canβt do anything.β
By:Β Chris Edwards



