From c98515e7bcede03bc9334e060f6386ef1e653801 Mon Sep 17 00:00:00 2001 From: Test_User Date: Thu, 17 Nov 2022 00:08:58 -0500 Subject: More VLIW format ideas --- cpu/instructions/overview.txt | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 instructions must be accepted by all CPUs TODO: define n Specific implementations may accept more, up to the maximum specifiable by the format -- cgit v1.2.3