DSP, Micros & Memory


The hardware/software trade-off

22 March 2006 DSP, Micros & Memory

The speed of technological development is getting faster and faster. Although this has the benefit of bringing useful technologies to the market more quickly, it also presents a major headache to designers – project deadlines are getting tighter. The performance and features expected of modern systems are very demanding, yet the time available to develop these systems is becoming more and more limited. Of course, there are then the additional pressures of designing a product that is less expensive and that will work first time.

A strategy that can be helpful in reconciling these conflicting demands is to spend time at the project definition phase, determining the best trade-offs between hardware and software solutions.

Software/hardware

Using software where possible can help to keep costs down. The controller or processor is already sitting in the system, so, provided the increased amount of software does not necessitate a change of device, it may be possible to develop the extra software required to implement extra functions at relatively low cost. Some designers appreciate that software solutions can have recurring hidden costs, such as service, maintenance and de-bugging, but these need not be prohibitive. Software solutions are usually easy to modify by plugging in a new program. Hardware solutions implemented in circuit boards and shipped with every product create a recurring cost, which can be prohibitive. Hardware modifications and enhancements often require a new device, which can translate into PCB revisions. Because of these cost considerations, software solutions are usually preferred over hardware solutions for higher volume products.

Hardware advantages

This is not to say that hardware solutions do not have their advantages. Often, a hardware approach can yield a result that is suitable for many users. From a customer perspective, the product is likely to have been proven in someone else's application, although this is often also true for a software solution. Generally, hardware will be well proven by the time it reaches the market, because any bugs in the hardware will probably have had such a major impact that they will have prevented the product launch until they have been fixed.

Generally speaking, hardware solutions are faster and more precise and the hardware solution is ready to go. Therefore, development times are often improved dramatically. Functions such as A/D converters, D/A converters, pulse-width modulators and counters are often better-implemented in hardware. A timer/counter design provides a simple example of the hardware/software trade-offs. Most controllers and processors contain at least one timer/counter, but if the designer needs more than are provided on-chip, the options are to purchase a device that has more than one or write the program for the missing timer(s). The software route uses a lot of processor time, leaving little for other tasks. An advantage is that the timer can be changed by the software, but the debugging work will have to be repeated to ensure that the accuracy of the timer is not lost. Alternatively, hardware timers/counters can run much faster and with higher resolution.

Software is often used to produce an interim solution and then, as time permits, the software design is migrated to a hardware solution. Although today's processors and controllers offer a large amount of processing power, this can be eaten up very quickly by 'soft peripherals'. Often, it is much more efficient to off-load simple programming tasks such as PWM timer/counters to the hardware equivalent. The availability of on- or off-chip peripherals offering complex communication protocols such as CANopen, DeviceNet, TCP/IP and USB can save the designer from some tricky programming problems.

Generally, software program solutions dominate when product-cost is critical. However, a hardware solution can be more effective when time to market is critical. As a result, the design engineer often has to consider both hardware and software in order to effectively produce competitive products.

References: 'Hardware/software Tradeoffs in Microcontroller-Based Systems', Fink, Scott, Embedded Systems Conference, West, 1997.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

General-purpose evaluation board
Altron Arrow DSP, Micros & Memory
Based on the 32-bit Arm Cortex-M7 S32K3 MCU in a 172 HDQFP package, the S32K3X4EVB-T172 offers dual cores configured in lockstep mode, ASIL D safety hardware, and HSE security engine.

Read more...
Zero drift current shunt monitors
Altron Arrow Power Electronics / Power Management
The NCS21671 and NCV21671 from onsemi are a series of voltage output current sense amplifiers offered in gains of 25, 50, 100, and 200 V/V.

Read more...
Unlock power efficiency with the new generation of ultra-low-power MCUs
DSP, Micros & Memory
STMicroelectronics has announced a one-hour webinar on its STM32U0, the company’s latest generation of entry-level, ultra-low-power MCUs.

Read more...
Wi-Fi 6/BLE module enables rapid development
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Telit Cinterion has announced the WE310K6, a fully integrated, low-power module featuring dual-band, dual-stream Wi-Fi 6, and dual-mode Bluetooth/BLE.

Read more...
Using AMD HLS to supercharge your design performance
DSP, Micros & Memory
This workshop explores the power and capabilities of High-Level Synthesis (AMD Vitis HLS) to dramatically accelerate embedded software to hardware speeds.

Read more...
Analysis of switch-mode power supply: inductor violations
Altron Arrow Editor's Choice Power Electronics / Power Management
Common switch-mode power supply (SMPS) design errors are discussed, and their appropriate rectification is specified, with details on complications that arise with the power stage design of DC-DC switching regulators.

Read more...
Microsoft Windows IoT on ARM
Altron Arrow Computer/Embedded Technology
This expansion means that the Windows IoT ecosystem can now harness the power of ARM processors, known for their energy efficiency and versatility.

Read more...
The 8-bit survival syndrome – Part 2
DSP, Micros & Memory
Just like the 4-bit pre-microcontroller, the 8-bit MCU has been finding ways to stick around. Their features and speeds have been improving, offering competitive reasons to work with them.

Read more...
Accelerating the commercialisation of the 5G IoT markets
Altron Arrow Editor's Choice Telecoms, Datacoms, Wireless, IoT
Fibocom unveils Non-Terrestrial Networks (NTN) module MA510-GL, enabling satellite and cellular connectivity to IoT applications.

Read more...
Microchip introduces ECC608 TrustMANAGER
Altron Arrow Circuit & System Protection
To increase security on IoT products and facilitate easier setup and management, Microchip Technology has added the ECC608 TrustMANAGER with Kudelski IoT keySTREAM, Software as a Service (SaaS) to its Trust Platform portfolio of devices, services and tools.

Read more...