mkdir -p tex_out
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
- -N -o tex_out/comparison_table.tex sv/comparison_table.mdwn
+ -N -o tex_out/comparison_table_pre.tex sv/comparison_table.mdwn
+ ./texmunge.py tex_out/comparison_table_pre.tex tex_out/comparison_table.tex
tex_out/vector_isas.tex : sv/vector_isa_comparison.mdwn
mkdir -p tex_out
with open(sys.argv[2], "w") as o:
with open(sys.argv[1], "r") as f:
for line in f.readlines():
+ if sys.argv[1].endswith("comparison_table.tex") and \
+ line.startswith("\begin{itemize}"):
+ o.write(line)
+ o.write("\\itemsep -0.3em\n")
+ continue
if not line.startswith("[[!inline"):
o.write(line)
continue
\item Andrey Miroshnikov - Libre-SOC engineer, assisting with documentation - andrey@technepisteme.xyz
\end{itemize}
+\begin{landscape}
+\chapter*{Comparison Table}
+\addcontentsline{toc}{chapter}{Comparison Table} \markboth{INTRODUCTION}{}
+\hypertarget{svux2fcomparison_table}{}
+{
+\fontsize{6}{8}\selectfont
+\input{tex_out/comparison_table.tex}
+}
+\end{landscape}
+
\part{Scalable Vectors Primer}
\input{svp64-primer/acronyms}
\chapter*{Executive Summary}
}
\end{landscape}
-\chapter{Comparison Table}\hypertarget{svux2fcomparison_table}{}
-\begin{landscape}
-{
-\fontsize{7}{9}\selectfont
-\input{tex_out/comparison_table.tex}
-}
-\end{landscape}
-
\end{appendices}
\part{Scalar Instructions}
-# ISA Comparison Table
| ISA <br>name | Num <br>opcodes | Taxonomy / <br> Class | Predicate <br> Masks | Twin <br> Predication | Explicit <br> Vector regs | 128-bit | Bigint <br> capability | LDST <br> Fault-First | Data-dependent <br> Fail-first | Predicate-<br> Result | Matrix HW<br> support |
|----------------|-----------------|-----------------------|----------------------|-----------------------|----------------------------|---------|------------------------|-----------------------|--------------------------------|-----------------------|-----------------------|
--- /dev/null
+#!/usr/bin/env python3
+
+import sys
+
+with open(sys.argv[2], "w") as o:
+ with open(sys.argv[1], "r") as f:
+ for line in f.readlines():
+
+ if sys.argv[1].endswith("comparison_table_pre.tex") and \
+ line.startswith(r"\begin{itemize}"):
+ o.write(line)
+ o.write("\\itemsep -0.3em\n")
+ continue
+ o.write(line)