resume in dmux

pull/2/head
Matthew Butterick 8 years ago
parent 1e6407bd1a
commit 124c83d34e

@ -16,10 +16,8 @@ CHIP Mux {
OUT out;
PARTS:
Not(in=sel, out=sel-opposite);
Not(in=a, out=not-a);
Or(a=not-a, b=sel-opposite, out=maybe-a);
Not(in=b, out=not-b);
Or(a=not-b, b=sel, out=maybe-b);
Or(a=maybe-a, b=b, out=out);
Not(in=sel, out=not-sel);
And(a=a, b=not-sel, out=a-and-not-sel);
And(a=b, b=sel, out=b-and-sel);
Or(a=a-and-not-sel, b=b-and-sel, out=out);
}

@ -1,6 +1,6 @@
#lang br
(require "helper.rkt" (for-syntax racket/base racket/syntax "helper.rkt" racket/list racket/require-transform))
(provide #%top-interaction (rename-out [mb #%module-begin]) #%app #%datum (all-defined-out))
(provide #%top-interaction (rename-out [mb #%module-begin]) #%app #%datum and or (all-defined-out))
(define #'(mb _arg ...)
#'(#%module-begin

Loading…
Cancel
Save