Design Automation


A brief look at emulation technologies

25 September 2002 Design Automation

Microcontrollers have I/O lines for user applications. Sometimes these lines can be used either as I/O or bus, depending on the memory location. If the microcontroller is a ROMless device, instructions are fetched outside the device and as the bus is always there, an emulator can be built around it. The main issue is how to emulate a microcontroller in ROM mode, which means when the instructions are fetched inside the chip memory and the I/O lines remain unchanged until a related instruction that affects them is executed. ROM is now not necessarily a Read Only Memory, but it can also be a device with Flash technology, meaning a memory that holds the user code without being erased while power goes down.

Figure 1. Standard microcontroller
Figure 1. Standard microcontroller

Bond-outs

Emulators need access to the internal bus especially when the bus signals are shared with I/O lines or when there is no external bus available at all. As a solution the silicon manufacturers used to produce bond-out chips which are the same microcontrollers mounted in a bigger package with more pins that provide the internal bus, status and control signals. I/O lines and the internal bus are accessible through different pins in the chip. Bond-outs are needed only for the emulator vendors.

Figure 2. Bond-out
Figure 2. Bond-out

Emulation mode

A solution came a few years ago that consisted of multiplexing the I/O lines with the internal bus while entering the chip into a special emulation mode - an undocumented feature licensed only to emulator vendors. A pattern is sent to the standard chip through one of the pins while the microcontroller is reset. With the addition of external logic, I/O lines are sampled and reconstructed, while the internal bus is available on a different time slot. The major advantage of the emulation mode is that all the emulation functions are already implemented in the standard silicon, so with new versions of the chip also the emulators are automatically updated. This mode is also called 'Emulation Hooks'. I/O lines are fully reconstructed and the user has available all I/O features as in the actual devices.

Figure 3. Emulation mode
Figure 3. Emulation mode

ROM and ROMless support

Some silicon vendors do not have any solution for emulators - this means their microcontrollers do not have Emulation Mode or available bond-outs. Therefore, there are a few solutions for emulation:

1. Use a similar chip from other vendor in the emulator. For the emulator it does not matter which is the memory technology (EPROM, Flash, etc) so for example a chip like 89C51 (Flash type) can be emulated by an 87C51 (EPROM type).

2. Use the chip in ROMless mode. In this case the emulator may have placed exactly the same silicon as the final design. Nevertheless, the chip will work in ROMless mode. This is not a problem in some cases. For example if the device is an 8051 derivative and the user code executes MOVX instructions to access data outside the microcontroller, activating Port 0 and 2 as buses, a ROMless type can be used because in any case port contents are changed.

Low pin count microcontrollers

Sometimes these devices can be emulated using a similar device with standard pinout and a socket converter. For example most of the 20-pin devices have a 40-pin superset with all the same functionality and more. This may not solve all the problems because the small devices may also have pins with dedicated functions not available in any other device.

Flash microcontrollers

The Flash technology is now being added to all new microcontrollers to implement the code memory. Flash technology includes ISP and IAP. The ISP (in-system programming) allows loading the user code without removing the chip from the target circuit. The IAP (in-application programming) may be used to let the code to modify itself without affecting I/O lines or activating a bus, and this is also a very basic need of emulators.

All the available emulators work in emulation mode or using bond-outs or in ROMless mode, thus allowing access to the internal buses. Therefore, the actual code is in the emulator overlay RAM memory and not in the microcontroller Flash. So, ISP or IAP is never used by the emulators. This is a problem for many users that want to emulate these features. Ceibo developed a new technology that is being implemented by several silicon vendors, which with the addition of a few internal registers inside the microcontroller, all the basic emulation functions are already inside the chip. These capabilities are trace memory, breakpoints, code downloading, register modifications and others. The FE-xxxx series of emulators is now available for microcontrollers produced by Atmel M&W, Dallas Semiconductors, Winbond and Philips. Some others will be added soon.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

New edition of Altium Designer announced
23 October 2019, EDA Technologies , Design Automation
Altium recently announced the newest version of Altium Designer, a complete software environment for the design and realisation of printed circuit boards (PCB). The latest release, Altium Designer 20, ...

Read more...
New edition of Altium Designer announced
25 November 2019, EDA Technologies , Design Automation
Altium recently announced the newest version of Altium Designer, a complete software environment for the design and realisation of printed circuit boards (PCB). The latest release, Altium Designer 20, ...

Read more...
Evaluation kit for environmental sensors
23 October 2019, Electrocomp , Design Automation
Sensirion’s SEK-Environmental Sensing evaluation kit allows engineers to evaluate sensors and develop innovative sensor applications quickly and easily. The kit combines plug-and-play hardware with easy-to-use ...

Read more...
Electronic speed controller demo board
23 October 2019, Altron Arrow , Design Automation
The B-G431B-ESC1 Discovery kit is based on STMicroelectronics’ STM32G431CB microcontroller, the L6387 driver and STL180N6F7 power MOSFETs. It is composed of a main power board, and a daughterboard with ...

Read more...
Plastic enclosures with mounting flange
25 September 2019, Sivan Electronic Supplies , Enclosures, Racks, Cabinets & Panel Products
Available from Gainta is a range of plastic enclosures for mounting and assembly of general electronic applications. The bases of the cases have a mounting flange and incorporate a tongue and groove sealing ...

Read more...
USB and utility plastic boxes
25 September 2019, Sivan Electronic Supplies , Enclosures, Racks, Cabinets & Panel Products
Gainta’s G19XX series of utility boxes and USB boxes come in a range of materials and a variety of designs to meet an array of application requirements. The G1901G/G1901C and G1911G/G1911C are ideally ...

Read more...
Subrack configuration software
31 July 2019, Actum Electronics , Design Automation
Schroff has launched the EuropacPRO Subrack Configurator, an intelligent online design tool that enables users to configure individual EuropacPRO subracks for vertically-installed applications. This ...

Read more...
Unified STM32 programming tool
31 July 2019, EBV Electrolink , Design Automation
Making life easier for STM32 microcontroller (MCU) and microprocessor (MPU) users, the latest version of the STM32CubeProgrammer from STMicroelectronics gathers the capabilities of multiple device programmers ...

Read more...
Altium Designer gets 2019 update
30 April 2019, EDA Technologies , Design Automation
Altium Designer 19, the latest version of the company’s flagship PCB design software, introduces new features aimed at making the design of complex, high-quality projects easier, faster and more accurate, ...

Read more...
DesignSpark surpasses 750 000 members
30 April 2019, RS Components (SA) , Design Automation
RS Components’ DesignSpark online engineering community has grown to more than 750 000 members. Launched in 2010, DesignSpark provides design engineers and students around the globe with free tools, ...

Read more...