summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Kerneis2013-12-16 13:49:00 +0000
committerGabriel Kerneis2013-12-16 13:49:00 +0000
commitc65c621b136c12ec21ea0c766d6baf6907c137b0 (patch)
tree75c4ff8b1b6e939c20e733254828cd3d5d1c9c6e
parent25a7606844f3b0efd6b1488c657ae7ee8637c714 (diff)
minor wip on tiny model
-rw-r--r--src/test/tiny.sail24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/test/tiny.sail b/src/test/tiny.sail
index 4666c18b..e8ef0805 100644
--- a/src/test/tiny.sail
+++ b/src/test/tiny.sail
@@ -25,22 +25,18 @@ typedef funcT = const union { unit fADD; ... }
*)
-(****
----------------------------------------------
--- State
----------------------------------------------
+(**** State ****)
-declare
-{
- PC :: addrT -- Program Counter
- R :: regT -> wordT -- Registers
- IM :: memT -- Instruction Memory
+addrT PC (* Program Counter *)
+regT -> wordT R (* Registers *)
+memT IM (* Instruction Memory *)
(* not sure the interpreter will recognize rmem through the typedef *)
- DM :: memT -- Data Memory
- InRdy :: bool -- Input Ready
- InData :: wordT -- Input Data
- OutStrobe :: wordT -- Output Data
-}
+DM :: memT (* Data Memory *)
+InRdy :: bool (* Input Ready *)
+InData :: wordT (* Input Data *)
+OutStrobe :: wordT (* Output Data *)
+
+(****
---------------------------------------------
-- Operations