summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-15 13:53:43 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-15 13:53:43 +0100
commitc6777aae2467194d63db245b8d5c9cdbab1e0f66 (patch)
tree7ebe87a151c7e9ca597eb04bb897cc0d0d5e964e
parentfc00f29076aa8171dd238d1d70607ee6abbbba7a (diff)
downloadSystDigit-Projet-c6777aae2467194d63db245b8d5c9cdbab1e0f66.tar.gz
SystDigit-Projet-c6777aae2467194d63db245b8d5c9cdbab1e0f66.zip
Added a TODO, changed a few comments.
-rw-r--r--README1
-rw-r--r--csim/sim.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/README b/README
index 911f578..1570c9d 100644
--- a/README
+++ b/README
@@ -249,6 +249,7 @@ TODO
- More advanced commands for the simulator (cf Jonathan's simulator)
- RAM reads give result immediately
+- Optimisation : SELECT/SLICE a variable which is a CONCAT
NEXT STEPS
----------
diff --git a/csim/sim.h b/csim/sim.h
index 27b492d..d77465a 100644
--- a/csim/sim.h
+++ b/csim/sim.h
@@ -114,15 +114,17 @@ typedef struct {
// The functions for doing stuff with these data structures
+// Implemented in load.c
t_program *load_dumb_netlist(FILE *stream);
void add_rom(const char *prefix, FILE *file);
+// Implemented in sim.c
t_machine *init_machine(t_program *p);
void read_inputs(t_machine *m, FILE *stream);
void machine_step(t_machine *m);
void write_outputs(t_machine *m, FILE *stream);
-// util
+// Implemented in util.c
int pow2(int exp);
t_value read_bool(FILE *stream, t_value *mask);
int is_prefix(char *prefix, char *str);