diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-19 17:13:52 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-19 17:13:52 +0100 |
commit | f91d7484c8d5af62dff97eb9ce5a5ac85aba2005 (patch) | |
tree | 98d98eacf343fe14eb449ac83fb89790707fd15a /csim/sim.h | |
parent | 96d05da16df5b6b32a0776ef11d6ad241e7af9bb (diff) | |
download | SystDigit-Projet-f91d7484c8d5af62dff97eb9ce5a5ac85aba2005.tar.gz SystDigit-Projet-f91d7484c8d5af62dff97eb9ce5a5ac85aba2005.zip |
RAM gives result immediately..
Diffstat (limited to 'csim/sim.h')
-rw-r--r-- | csim/sim.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -12,6 +12,7 @@ #define C_CONCAT 5 #define C_SLICE 6 #define C_SELECT 7 +#define C_READRAM 8 // Binary operators #define OP_OR 0 @@ -45,9 +46,8 @@ typedef struct { } t_reg; typedef struct { - t_id dest; int addr_size, word_size; - t_id read_addr, write_enable, write_addr, data; + t_id write_enable, write_addr, data; } t_ram; typedef struct { @@ -83,6 +83,10 @@ typedef struct { int i; t_id source; } Select; + struct { + int ram_id; + t_id source; + } ReadRAM; }; } t_equation; @@ -127,6 +131,6 @@ void write_outputs(t_machine *m, FILE *stream); // Implemented in util.c int pow2(int exp); t_value read_bool(FILE *stream, t_value *mask); -int is_prefix(char *prefix, char *str); +int is_prefix(const char *prefix, const char *str); #endif |