It's Called Simulation

April 10, 2008
The term virtual prototyping has a nice ring. But it confuses the issue when it’s mixed with virtual machines and virtual memory. All three present a warped sense of reality. Of course, the term simulation also cuts a wide swath. Still, simul

The term virtual prototyping has a nice ring. But it confuses the issue when it’s mixed with virtual machines and virtual memory. All three present a warped sense of reality. Of course, the term simulation also cuts a wide swath. Still, simulation is probably a better definition of today’s discussion on processor simulation.

The degree of detail associated with processor simulation can vary significantly. Most designers are familiar with Electronic System Level (ESL) design methodologies from various companies. Their tools provide very detailed simulations down to the transistor level.

These tools are used to design and prove the chips that eventually will be built, but more often they’re used to provide software developers with access to the chips before they’re built. In fact, many companies plan to deliver working software prior to chip availability, significantly shortening time-to-market.

THE HURDLES Several problems can limit simulation’s effectiveness. Speed used to be the primary factor. The more detailed the simulation, the more code that must be executed. Multicore host support and even hardware-accelerated simulation can help considerably but at a cost.

This cost is one reason for a range of simulation models. A step up from transistor- level accuracy is cycle-accurate simulation, where programmers can test a system. Cycle-accurate simulation is important with DSPs. Minor changes in architecture can have a major impact on performance. That’s why Texas Instruments has a flexible internal system where its simulator can be easily modified with new instructions or semantics. Changes to the compilers allow the change to be tested empirically.

This level of accuracy isn’t always needed. In fact, programmers probably use ISA-level (Instruction Set Architecture) simulation the most since fine-grain timing-related issues are often limited in many applications. Also, most development prior to chip availability is done on a different platform using a high-level language like C or C++ that runs natively on the development platform.

Peripherals present a more important problem. They can be simulated readily on a development platform that simply has a compiler, and this is where an ISA simulator, or better, with peripheral simulation support makes a difference. Internal peripherals like timers tend to be the easiest to simulate. But communication devices such as Ethernet and serial ports or display devices like LCD controllers can link a simulation to the outside world.

Analog interfaces, though, tend to be more difficult and common among microcontroller simulators. The care and feeding of these interfaces is more difficult since the data streams can be more complex unless comparable hardware interfaces can link external devices to the simulation environment.

THE BENEFITS Simulators can significantly benefit developers, especially at the lower end of the microcontroller spectrum. For example, Microchip’s Simulator Logic Analyzer (SLA) can trace digital I/O pins, including serial ports. It also can track the data side of an analog interface.

Another advantage is speed, which is just the opposite of simulating more complex platforms because 3-GHz PCs run significantly faster than the 20-MHz microcontrollers they might be simulating. This can be a significant benefit in regression testing. Likewise, features such as tracing and profiling are often available with simulation that isn’t available with the real hardware.

Simulation is one of the most overlooked tools available to developers. Demanding better support in areas such as peripheral simulation as well as analog support will make it more effective. Demand it now because multicore design is yet another area where simulation will prove to be invaluable.
MICROCHIP • www.microchip.com
TEXAS INSTRUMENTS • www.ti.com

Sponsored Recommendations

Highly Integrated 20A Digital Power Module for High Current Applications

March 20, 2024
Renesas latest power module delivers the highest efficiency (up to 94% peak) and fast time-to-market solution in an extremely small footprint. The RRM12120 is ideal for space...

Empowering Innovation: Your Power Partner for Tomorrow's Challenges

March 20, 2024
Discover how innovation, quality, and reliability are embedded into every aspect of Renesas' power products.

Article: Meeting the challenges of power conversion in e-bikes

March 18, 2024
Managing electrical noise in a compact and lightweight vehicle is a perpetual obstacle

Power modules provide high-efficiency conversion between 400V and 800V systems for electric vehicles

March 18, 2024
Porsche, Hyundai and GMC all are converting 400 – 800V today in very different ways. Learn more about how power modules stack up to these discrete designs.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!