[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] "Tree"

On Wed, Jan 09, 2002 at 08:57:34AM +0100, Juergen Goeritz wrote:
> On Wed, 9 Jan 2002, Michael Riepe wrote:
> > > How about a simple switch that enables/disables that balancing?
> > 
> > It's not good to have too many switches. It makes the code less and less
> > readable -- especially VHDL code (the language doesn't support conditional
> > compilation well). But even in C, one should not use too many #defines.
> Then there also is another way - Source generation. You tell
> your tool which compiler you want to use and your sources
> will be generated out of some meta-sources which contain the
> switches. Since this peculiar balance switch is just needed
> in the connection level and not in the functional blocks of
> the design itself (correct me if I'm wrong here) it should be
> possible to implement this type of preprocessing, e.g. some
> "make balanced_trees" or "make no_trees_please". Comments?

Source generation is even worse. It works fine in some places (e.g. the
configuration stuff), but not for the whole package. And yes, you're
wrong -- there are high fan-outs inside some modules. Mode lines, for
example, are used a lot. The input operands in the IMU are used 64
times, too.

 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/