This commit is contained in:
Nikolaj
2021-12-16 14:04:17 +01:00
parent 066ca1ca8a
commit 281b65339c
19 changed files with 1359 additions and 0 deletions

17
A5/ip_reg.h Normal file
View File

@ -0,0 +1,17 @@
/*
IP Register
*/
#include "wires.h"
struct ip_register;
typedef struct ip_register *ip_reg_p;
ip_reg_p ip_reg_create();
void ip_reg_destroy(ip_reg_p);
// associate with a tracefile for validation
void ip_reg_tracefile(ip_reg_p reg, const char *filename);
val ip_read(ip_reg_p reg);
void ip_write(ip_reg_p reg, val value, bool wr_enable);