30 points · by jacquesm · 16y ago · 23 comments
It's an amazingly different way of thinking about computing. Generally async designs take up more physical die space (because of things like dual-rail logic), but the power savings can be pretty significant since you're not running a clock... basically the logic runs as fast or as slow as it needs to, and doesn't do much of anything when idle.
I took a class where we designed and did a little layout for some CPU-subset blocks. It was fun, but often very challenging. At least at the time, there weren't many (any?) good test/validation tools. A friend of mine has been working on one for the past 8 years or so (http://www.csl.cornell.edu/~fang/hackt/), first as a part of his PhD thesis, later as a part of his job.
It's been years since I've touched this stuff... if I'd continued down the EE path (like many others, I switched to software post-college) I'd (ideally) be doing async stuff now.
I've really enjoyed asynchronous design. Did you know that it's possible to make an async n-bit adder that works in O(lg lg n) average time? Or that you can make a low-power CPU that does all its operations one bit at a time, and just stops sending bits when it comes to the leading zeros? It's fun stuff.
(My only contribution to the world of async design was a smaller dual-rail completion detector. It was pretty sweet, and I'm eternally proud of it.)
That brought me to post my ideas on using 'life' as a very basic computing fabric, it's already proven to be Turing complete, so now to make it run without a global clock.
That would prove that a clock-free computing fabric of arbitrary size is a real life possibility.
I think it can be done, I'm not 100% sure yet.
That adder sounds like a bit of magic, do you have a link for that?
I can picture the cpu that 'sleeps on 0', basically the transitions are what clocks it forward so as long as you keep sending it 0's it simply never changes state right? (no state changes -> minimal power consumption).
http://ieeexplore.ieee.org/search/wrapper.jsp?arnumber=10298...
I didn't read the paper carefully enough to be sure how it works, but it looks like each cell (or region of cells) maintains a count of how many generations have passed, and it blocks until adjacent cells have caught up to it. So time propagates across the board like waves on a pond.
> That adder sounds like a bit of magic, do you have a link for that?
Sure! Here's the paper:
http://www1.cs.columbia.edu/async/publications/cheng-unger-t...
I'll summarize it briefly. You know about ripple carry adders, where the carry bits propagate across the adder and it takes O(n) time? Well, the adder for each bit can sometimes precompute its carry output. If both inputs are 1, it knows that its carry output will be 1. There are some other tricks like that. Anyway, the upshot of all this is that an asynchronous ripple carry adder can operate in O(lg n) average time, and an asynchronous carry-lookahead adder can work in O(lg lg n) average time. Or about twice as fast as a synchronous carry lookahead adder, according to transistor-level simulations.
> I can picture the cpu that 'sleeps on 0', basically the transitions are what clocks it forward so as long as you keep sending it 0's it simply never changes state right? (no state changes -> minimal power consumption).
Asynchronous design is like ideal clock gating: when part of a processor doesn't need to do anything, it just stays idle and doesn't dissipate dynamic power. In the example of a bit-serial length-adaptive datapath that I mentioned, the leading zero bits are simply ignored, and no processor work needs to be done to deal with them. Here's a paper on it:
Hah!
That's exactly what I came up with :)
I finished it at 5 am this morning and it works.
The code is here: http://ww.com/asynclife.php.txt
Thanks for the other papers, I'll be reading.
edit:
I've written a blog post about all this:
http://jacquesmattheij.com/asynchronous+life
I can't read the IEEE paper without paying for it, so I think I'll forego the honour of doing so, pity because I would like to see what they came up with exactly.
Especially whether or not they clued in to the fact that if you have a 'generation' counter you only need the lower two bits of it to keep going forever.
Anyone interested in this topic should definitely look into the Cornell University research ( http://vlsi.cornell.edu/ ). Unlike most researchers in asynchronous research, they still tape out chips.
Is it possible to make practical async logic on ordinary FPGAs? I've seen some very conservatively-designed async stuff that ran on an Altera FPGA, but I remember hearing that it was kind of flaky. (It was a Java-to-hardware synthesis program -- there's a remarkably direct mapping between the usual program structures like loops, if statements, etc., and hardware if you're willing to use a naive design.)
What are the prospects for putting asynchronous IP cores into a system-on-chip with mostly clocked parts?
What kind of async logic style do you usually use in practice? Dual-rail quasi-delay-insensitive, or bundled data with matched delays, or something so exotic that I've yet to hear of it?
I've heard some people speculating about how async circuits can be used to make fault-tolerant logic. For example, if you're using dual-rail coding, then a single bit flip is going to be detectable as a fault, and you can trigger some self-checking-and-repair logic without breaking your timing assumptions. How important/plausible would you say this is?
I failed pretty miserably: It took me several rewrites before I got one to even synthesize, and dozens before I got it to place+route onto the physical chip (fucking traveling salesman problem!). I never got my CPU's JMP instruction to work correctly within my self-imposed ideological constraints, making it rather useless.
It took me a while to realize that the fundamental problem with my design was hidden asynchrony, despite having a clock.
Getting the asynchronous IP core into a SoC system is not that difficult. You'll have to convert synchronous signals to asynchronous signals and vise versa, but once you figure that out (it's actually very simple) you can plug in the asynchronous core anywhere.
I used dual rail QDI in my circuit design, with a mix of four phase handshakes and two phase handshakes, depending on the application.
Fault-tolerant logic is definitely feasible - I worked on this for one project! The technique is patented by Achronix, but it definitely is almost bullet proof and only requires an area overhead similar to a voting schema.
I think that there are a few factors that will eventually drive asynchronous designs to become the way forward.
Here's another cool thing: by using a dual-rail encoding (one wire being high means a bit is 0, the other wire being high means the bit is 1) you can design logic that consumes roughly constant power no matter what the operands are. This makes power-analysis attacks a lot more difficult.
Here's a paper on all this that you may enjoy:
http://www.gemplus.com/smart/rd/publications/pdf/MAM03as.pdf
Unfortunately, to match the minimum to the maximum, you would likely have to design your implementation to be very slow. In the constant time case you remove all the pipelining advantages, as you would be required to 'fill' the pipeline.
Quite the inspiration all these designs doing the 'impossible' (according to some).
It's always nice to see people pursue presumed dead ends then turn up finding gold.
I think I can see at least one way to crack that 'nut' of doing without a global clock, which would scale to arbitrary large systems.
The downside is that it is a purely theoretical solution for the moment, I'll try to do some simulations to see if it is actually viable.
The tricky bit seems to be to not fall in to the 'pit' of thinking that you have it working without synchronization when actually the test system has some underwater property that makes the likelihood of a failure vanishingly small, but which when duplicated 'in real life' would lead to an error almost immediately.
The classical example is two circuits that are 'independently' clocked from some master clock that gets divided by different factors.
You'd need to test this with local clocks that are varying wildly comparing the output of the system with 'known good' output over many cycles to gain some confidence.
It's amazing how the devil really is in the details with this stuff.