1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-11 23:43:15 +00:00
Anton Blanchard 471c7e2197 Consolidate VHPI code
We had many copies of the VHPI marshalling/unmarshalling code.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
2020-01-22 14:50:45 +11:00

12 lines
273 B
C

#include <stdint.h>
#define vhpi0 2 /* forcing 0 */
#define vhpi1 3 /* forcing 1 */
char *from_string(void *__p);
uint64_t from_std_logic_vector(unsigned char *p, unsigned long len);
void to_std_logic_vector(unsigned long val, unsigned char *p,
unsigned long len);