summaryrefslogtreecommitdiff
path: root/cpu/instructions/overview.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/instructions/overview.txt')
-rw-r--r--cpu/instructions/overview.txt20
1 files changed, 19 insertions, 1 deletions
diff --git a/cpu/instructions/overview.txt b/cpu/instructions/overview.txt
index 9708e27..3cfe266 100644
--- a/cpu/instructions/overview.txt
+++ b/cpu/instructions/overview.txt
@@ -15,10 +15,11 @@ Dynamic VLIW
A)
effects:
uses space efficiently when using many repetitions of the same opcodes
+ allows reuse of immediate references
easier for the CPU to parse
requires all parameter lengths to be the same within the opcode
- wastes space when few repetitions of the same opcode exists
+ wastes space when few repetitions of the same opcode exists and immediate references are rarely reused
format:
num_opcodes
@@ -44,6 +45,23 @@ Dynamic VLIW
parameters
immediate references
+ C)
+ effects:
+ allows variable length parameters
+ allows reuse of immediate references
+
+ harder for the CPU to parse
+ larger if immediate references are not reused
+
+ format:
+ size_of_instructions
+ for each instruction:
+ opcode
+ parameters
+ size_of_immediate_references
+ for each:
+ value
+
A minimum of <n> instructions must be accepted by all CPUs
TODO: define n
Specific implementations may accept more, up to the maximum specifiable by the format