Le 2015-10-29 16:13, Tristan Gingold a écrit :

The std_logic type is represented by a single byte.  So the
corresponding C struct would be:

struct {
  unsigned char value[32];
  unsigned char valid;
  unsigned char ack;
};

Tristan.

but std_logic_vector is an array, right ?
in my memories, there is an indirection to the unsigned char value[32];
because the descriptor contains the size, direction and base pointer
(but this is not fresh in my mind, this must be somehow verified).

yg

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to