feature article
Subscribe Now

Take as Much Time as You Need

Those of you familiar with San Francisco may have traveled a beautiful seaside stretch of road called the Great Highway, which runs from Ocean Beach down to the zoo. The portion south of Golden Gate Park is less traveled and passes through sparsely vegetated dunes with no intersecting roads. However, even though the road is isolated from the Sunset District’s vehicular traffic, the beach is made accessible to local pedestrians via a series of crosswalks protected by stoplights.

Coursing down this way at 2 in the morning, you’ve got a good chance of being free of competing traffic, and there are no pedestrians crossing. So the temptation arises to take advantage of a long, uninterrupted stretch of asphalt and clear some of the carbon from your cylinders. But, for no apparent reason, and with no other cars or people in sight, the stoplight at the next crosswalk will turn red, and your straightaway dreams are dashed, at least for the moment. Presently, the light will, of course, turn green, giving you one more opportunity to feel the rumble of latent horsepower heaving and straining under the bridle of provincial speed limits. Again you go, and again the next light turns red, and you must once more concede an ignominious halt.

You can repeat this as many times as you want, and lo, you will find that you are stopping at every light. After driving this road a couple times, with the same result each time, it occurs to you: the lights are timed. You will get through when the lights let you get through, no faster. An impressive display of acceleration will get you to the end no earlier, and, in fact, taking into account the full impact of your frustrated attempt at glory, you will find that you have burned an inordinate amount of fuel with nothing to show for it, save perhaps a few well-placed black marks on the road and a commensurate reduction in the life of your tires.

The trick lies in slowing down: if you go at just the right speed – something under 30 mph – you will find that, once you get in synch, each red light will obligingly turn green for you as you arrive. You will be tempted to feather your brake as you approach the next red light, but if you keep the faith, the lights will gracefully guide you down the entire stretch of road without your having to touch either the brake or the accelerator. Attempting to get from one light to the next any faster provides no benefit, and only costs more in energy.

The philosophy of going only as fast as needed is taking hold in circuit design. Time was when the one clock frequency on a chip was determined by the neediest portion of the system, and all other parts of the circuit hewed to that clock. So if video needed compressing, an audio packet needed decoding, an Ethernet packet needed exploring, it was done at a rate determined by some other part of the circuit and might complete long before needed.

So what’s wrong with that? Looking at it one way, let’s say that it takes 30,000 clock cycles to complete a task, and that task involves 50 signals making a combined, oh, 600 transitions (just making numbers up). If you do that task in 30 µs or in 30 ms (with a 1000x slower clock), it will still involve 30,000 clock cycles and 600 transitions on 50 signals. Since dynamic power is determined by transitions, on the face of it, you’ve done the same amount of “work,” and so have burned the same amount of energy (assuming the same slew rates). Power will be lower in the slower case, since it takes longer to complete the task, and so the rate of energy burn is reduced, but, in the end, the energy consumed is the same. So slowing down would appear to have no real impact.

But today’s chips aren’t the simple monolithic entities of yore. Modern behemoths have multiple frequency domains and – importantly – multiple power domains. The real benefit of slowing down to smell the sea salt comes not from the reduced frequency itself, but from the fact that, with a less frenetic frequency requirement, the circuit can be fed by a lower voltage. While power is linearly related to frequency, it goes as the square of voltage. So reducing the frequency reduces power somewhat, without reducing the energy used, but reducing the voltage has a beneficial impact on both power and energy.

Reducing the voltage also cuts back on the static leakage in a manner that simply reducing frequency can’t accomplish. You may also be able to raise the VTs on the transistors since they don’t need to operate as quickly. That further reduces gate leakage and helps trim the static power consumption. All of the required work of the chip can be completed on schedule, with reductions in dynamic and static power, and, most critically, with a lower energy bill.

So just as powering your way from stoplight to stoplight uses more fuel to no advantage, so driving your circuits faster than necessary uses more energy, also to no advantage. Granted, creating a new power domain involves some circuitry and some complexity in the design and verification of the circuit, so it’s not entirely without cost. However, such increased sophistication has become standard fare in any self-respecting SoC, and so, in practical fact, it really imposes no significant extra burden. Since it’s not necessary (or advisable, or even possible) to optimize every circuit to the point where each little block is exactly optimally timed, you can combine many such blocks in a single domain and thus better amortize the cost of managing the domain.

So consider it permission to relax. First car to the stoplight does not win. Hurry up and wait seems a bit silly, like testosterone dashed with cold water. Heck, it’s always good form to look busy: if you complete your work too fast, you end up sitting around looking idle, which is never recommended when the boss comes around. So pace yourself; don’t be late but don’t be early. Reduce your stress level and your blood pressure. It will all come together, and you’ll have energy to spare when the day is done.

And because you don’t have to pay so much attention to the stoplights, you can look around and enjoy the scenery. OK, fair enough, you can’t see the ocean because of the dunes, and it’s hard to see much at 2 AM anyway. But at a more relaxed pace, you can open the window and let the gentle breeze waft the savory scents of sand and seaweed through the car, and, if you’re lucky, you can watch the fog muffle the beam of your headlights as it envelops you in soft marine silence.

Leave a Reply

featured blogs
Aug 19, 2018
Consumer demand for advanced driver assistance and infotainment features are on the rise, opening up a new market for advanced Automotive systems. Automotive Ethernet allows to support more complex computing needs with the use of an Ethernet-based network for connections betw...
Aug 18, 2018
Once upon a time, the Santa Clara Valley was called the Valley of Heart'€™s Delight; the main industry was growing prunes; and there were orchards filled with apricot and cherry trees all over the place. Then in 1955, a future Nobel Prize winner named William Shockley moved...
Aug 17, 2018
Samtec’s growing portfolio of high-performance Silicon-to-Silicon'„¢ Applications Solutions answer the design challenges of routing 56 Gbps signals through a system. However, finding the ideal solution in a single-click probably is an obstacle. Samtec last updated the...
Aug 16, 2018
All of the little details were squared up when the check-plots came out for "final" review. Those same preliminary files were shared with the fab and assembly units and, of course, the vendors have c...
Jul 30, 2018
As discussed in part 1 of this blog post, each instance of an Achronix Speedcore eFPGA in your ASIC or SoC design must be configured after the system powers up because Speedcore eFPGAs employ nonvolatile SRAM technology to store its configuration bits. The time required to pr...