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:

More room to scale
Altron Arrow Power Electronics / Power Management
With the latest STM32H5 lines from STMicroelectronics, you can now scale within the same platform, from a compact 1 Mbyte device to higher-memory MCUs for graphics-rich and feature-heavy designs.

Read more...
1 GHz crossover MCU with Arm Cortex Cores
Future Electronics DSP, Micros & Memory
i.MX RT1170 Crossover MCUs, from NXP Semiconductor, are dual-core devices featuring an Arm Cortex-M7 and Arm Cortex-M4 for real-time microcontroller (MCU) performance and high integration for automotive, industrial and IoT applications.

Read more...
NECTO studio update 7.5.0
DSP, Micros & Memory
MIKROE have continued their collaboration with Renesas by introducing support for the RL78 architecture in NECTO Studio, expanding the IDE beyond its existing MCU platforms.

Read more...
Space saving SMD common-mode chokes
Electrocomp Passive Components
TDK Corporation presents the EP21 series of flat-wire double chokes designed for common-mode EMI filtering and available in an SMD format with dimensions of only 23,8 x 17,7 mm and heights ranging from 21,6 to 22,3 mm

Read more...
Multi-constellation GNSS module in a legacy-compatible footprint
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Telit Cinterion has announced the SE869eK2L, a single-frequency L1 GNSS module designed to help device manufacturers upgrade legacy positioning designs with improved performance and cost efficiency, while preserving design continuity.

Read more...
Compact SSI family for industrial automation
Altron Arrow Passive Components
Infineon Technologies has introduced the ISSI20BxxF Solid State Isolator (SSI) family, bringing solid-state isolation technology into high-volume applications traditionally served by photovoltaic isolators (PVIs), photovoltaic relays (PVRs), and electromechanical relays (EMRs).

Read more...
Rev 2.0 PolarFire FPGA ethernet sensor bridge
Altron Arrow Computer/Embedded Technology
Smaller, multi-camera platform enables scalable Ethernet architectures for NVIDIA Edge AI systems, while lowering power, cost and integration complexity.

Read more...
Universal IR receiver module
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Vishay Intertechnology has introduced a new series of infrared (IR) receiver modules for IR remote control applications, which feature a wide modulation frequency acceptance from 30 kHz to 68 kHz.

Read more...
UFS 5.0 flash for on-device AI
EBV Electrolink DSP, Micros & Memory
UFS 5.0 embedded flash memory solutions, designed to deliver the performance, efficiency and capacity required for the next generation of AI-enabled mobile and edge devices.

Read more...
Low profile SMD antenna
Altron Arrow Telecoms, Datacoms, Wireless, IoT
The Havok PCS.06.A antenna, from Taoglas, is a low profile SMD LTE/cellular 4G/3G/2G embedded antenna designed for direct SMD mount on a device PCB.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved