From: skaller <skaller@users.sourceforge.net>
To: Oliver Bandel <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] From a recursive circuit to a functional/recursive OCaml-code...
Date: Sun, 05 Feb 2006 16:42:47 +1100 [thread overview]
Message-ID: <1139118167.8453.254.camel@rosella> (raw)
In-Reply-To: <20060205041600.GA5936@first.in-berlin.de>
On Sun, 2006-02-05 at 05:16 +0100, Oliver Bandel wrote:
> But I'm not clear about how to write this function "f",
> because it needs mutual recursion...
No it doesn't, not even with feedback, because your
system is CLOCKED.
A simple model is: you have a collection of
chips with inputs and outputs. In phase one,
calculate the ouputs from the inputs.
In phase 2, you have a circuit board, representing
the wiring, this is a function that copies the outputs
of all the chip to their inputs, following the
wiring diagram. That's where the feedback comes in.
If you want to know how to make a subcircuit
do the feedback *internally* on one clock,
there is a simple answer and a hard one.
The simple answer is YOU CANT. Circuits are
monolithic.
The hard answer is .. you can have multiple
clocks, synchronised by a master clock.
The implementation is simple .. a clock is
just a counter that writes TRUE when it is zero
and FALSE otherwise.
Then you invent a thing called a LATCH, which
is like wire, except it holds the output
stable and ignores the input UNLESS a special
ENABLE input is True. That's connected to your counter.
Basically .. you're asking hard questions about how
to design synchronous circuits. Don't expect a clocked
circuit to just be a simple composition of functions.
The functions get very complicated -- otherwise circuit
designers wouldn't have a job :)
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
next prev parent reply other threads:[~2006-02-05 5:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-04 21:19 Oliver Bandel
2006-02-05 2:29 ` [Caml-list] " skaller
2006-02-05 4:16 ` Oliver Bandel
2006-02-05 5:42 ` skaller [this message]
2006-02-05 14:17 ` Oliver Bandel
2006-02-05 16:05 ` skaller
2006-02-05 18:07 ` Oliver Bandel
2006-02-06 11:52 ` Oliver Bandel
2006-02-06 13:10 ` Oliver Bandel
2006-02-05 5:55 ` Bill Wood
2006-02-05 11:26 ` [Caml-list] From a recursive circuit to a functional/recursiveOCaml-code Frédéric Gava
[not found] ` <1139134445.28935.14.camel@localhost>
[not found] ` <20060205175014.GA1969@first.in-berlin.de>
[not found] ` <1139178136.463.37.camel@localhost>
2006-02-05 23:23 ` [Caml-list] From a recursive circuit to a functional/recursive OCaml-code Oliver Bandel
2006-02-05 23:46 ` Oliver Bandel
2006-02-06 3:39 ` skaller
2006-02-05 11:45 ` Oliver Bandel
2006-02-05 18:19 ` Oliver Bandel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1139118167.8453.254.camel@rosella \
--to=skaller@users.sourceforge.net \
--cc=caml-list@inria.fr \
--cc=oliver@first.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox