A5
This commit is contained in:
19
A5/registers.h
Normal file
19
A5/registers.h
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
Registers
|
||||
|
||||
A model of the 16 registers in x86prime
|
||||
*/
|
||||
|
||||
#include "wires.h"
|
||||
|
||||
struct registers;
|
||||
typedef struct registers *reg_p;
|
||||
|
||||
reg_p regs_create();
|
||||
void regs_destroy(reg_p);
|
||||
|
||||
// associate with a tracefile for verification
|
||||
void regs_tracefile(reg_p regs, const char *filename);
|
||||
|
||||
val reg_read(reg_p regs, val reg_num);
|
||||
void reg_write(reg_p regs, val reg_num, val value, bool wr_enable);
|
Reference in New Issue
Block a user