[Open-graphics] Center for High-Performance Reconfigurable
Computing
Benjamin Schroeder
benschroeder at acm.org
Sun Oct 15 13:33:09 EDT 2006
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
More information about the Open-graphics
mailing list