On Oct 15, 2006, at 1:13 PM, Timothy Miller wrote:

One idea I had was to define stylistic requirements on C functions
where a function takes a single struct as input and returns a single
struct as a result.  The structs can contain any primitive data items.
This would be relatively easy to parse and convert to Verilog, which
we would synthesize for the FPGA.

By primitive data items, do you mean non-pointers?

Of course, taking a single struct as input is equivalent to taking an arbitrary number of structs (because you could just cat them together). It's also OK to take a struct like

    struct Foo
    {
        int x;
        struct Bar b;
        int y;
    };

because its memory layout is the same as some longer struct where b (however struct Bar is defined) is inlined.

Ben

_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to