aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/14-Matrix-Square/02.vsm
diff options
context:
space:
mode:
Diffstat (limited to 'problems/14-Matrix-Square/02.vsm')
-rw-r--r--problems/14-Matrix-Square/02.vsm17
1 files changed, 17 insertions, 0 deletions
diff --git a/problems/14-Matrix-Square/02.vsm b/problems/14-Matrix-Square/02.vsm
new file mode 100644
index 0000000..e4ca741
--- /dev/null
+++ b/problems/14-Matrix-Square/02.vsm
@@ -0,0 +1,17 @@
+hmwrite $llm0vr $ly0; hbfn/9 $llm0vr $lr0v
+hmwrite $llm16vr $ly4; hbfn/9 $llm16vr $lr8v
+hmwrite $llm32vr $ly8; hbfn/9 $llm32vr $lr16v
+hmwrite $llm48vr $ly12; hbfn/9 $llm48vr $lr24v
+
+hmwrite $llr0v $llx0; hmread $lly0 $nowrite
+hmwrite $llr16v $llx8; hmread $lly8 $nowrite; hbfn/9 $mreadf $lls0v
+hbfn/9 $mreadf $llr0v
+
+hmmul $lx $ls0v $lln0v
+hmmul $lx $ls8v $lln16v
+hmmul $lx $lr0v $lln32v
+hmmul $lx $lr8v $lln48v
+
+# BF, write to $x
+# write to $y, read from $y^T, BF
+# mmul