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

Re: [oc] A 'core server' ?



On Tuesday 30 October 2001 11:46, you wrote:
>
> I think we should use GPLed product for this kind
> of compiler, or get a sponsor. It would be the best,
> if we can include binaries in the core package.
>
> But why don't you use C?
>
> Maybe the problem with this generators is that not enough
> people knows them, and they significantly reduce open.
> Maybe nobody will use it if it cannot be built in the first try.
>
> Another possibility, I can think of is to add some primitives
> to VHDL and Verilog, that could build the right source.
> I suppose you need something like
>
> `repeat WIDTH
>
> `endrepeat
>
> or
> `define WIDTH 3
> `while WIDTH <= 5
> wire test_##WIDTH = WIDTH == 3;
> `endwhile
>
> resulting
> wire test_3 = 3 == 3;
> wire test_4 = 4 == 3;
> wire test_5 = 5 == 3;
>
> I can generate such precompiler for you, but first we need to
> figure out.
> Is this solution sufficent for you?
> Have in mind that we can define really powerful construct such as:
> `assign WIDTH DEBUG?32:(USER_WIDTH+1)
> Thus giving us almost full power of C, except subroutines.
>
> Marko

There is already a nice Verilog pre-processor available in the free
verilog 2000 project. I'm not sure how powerfull it is ..  Plus there is
the infamous M4 that is available on each UNIX style box and I
believe is included in Cygwindows (sic ?).

Most code generators I have seem where written in Perl. It's portable,
and very flexible. I would suggest to use that for code generators ...

Cheers,
rudi
--
To unsubscribe from cores mailing list please visit http://www.opencores.org/mailinglists.shtml