aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Traynor <wmat@riscv.org>2022-10-27 16:08:02 -0400
committerBill Traynor <wmat@riscv.org>2022-10-27 16:08:02 -0400
commit77122f15b976e9e2774a5d74dc4786917e4fe13e (patch)
tree36e9b9feedb3492f5defbcec57863b71b13fd13c /src
parentc6d7d3bb945d458eda0c489009dce7958b031bfc (diff)
downloadriscv-isa-manual-77122f15b976e9e2774a5d74dc4786917e4fe13e.zip
riscv-isa-manual-77122f15b976e9e2774a5d74dc4786917e4fe13e.tar.gz
riscv-isa-manual-77122f15b976e9e2774a5d74dc4786917e4fe13e.tar.bz2
Added half precision floating point to floating point conv wavedrom.
Added new precision floating point to floating point conversion wavedrom file. Fixed a small typo in another wavedrom and cleaned up post conversion garbage characters.
Diffstat (limited to 'src')
-rw-r--r--src/images/wavedrom/half-prec-flpt-to-flpt-conv.adoc16
-rw-r--r--src/zfh.adoc12
2 files changed, 18 insertions, 10 deletions
diff --git a/src/images/wavedrom/half-prec-flpt-to-flpt-conv.adoc b/src/images/wavedrom/half-prec-flpt-to-flpt-conv.adoc
new file mode 100644
index 0000000..77aad59
--- /dev/null
+++ b/src/images/wavedrom/half-prec-flpt-to-flpt-conv.adoc
@@ -0,0 +1,16 @@
+//## 16.3 Half-Precision Floating Point to Floating Point Conversion Instructions
+
+
+
+[wavedrom, ,]
+....
+{reg: [
+ {bits: 7, name: 'opcode', attr: ['OP-FP','OP-FP','OP-FP','OP-FP','OP-FP','OP-FP'], type: 8},
+ {bits: 5, name: 'rd', attr: ['dest','dest','dest','dest','dest','dest'], type: 2},
+ {bits: 3, name: 'rm', attr: ['RM','RM','RM','RM','RM','RM'], type: 8},
+ {bits: 5, name: 'rs1', attr: ['src','src','src','src','src','SRC'], type: 4},
+ {bits: 5, name: 'rs2', attr: ['H','S','H','D','H','Q'], type: 3},
+ {bits: 2, name: 'fmt', attr: ['S','H','D','H','Q','H'], type: 2},
+ {bits: 5, name: 'funct5', attr: ['FCVT.S.H','FCVT.H.S','FCVT.D.H','FCVT.H.D','FCVT.Q.H','FCVT.H.Q'], type: 8},
+]}
+.... \ No newline at end of file
diff --git a/src/zfh.adoc b/src/zfh.adoc
index 2ee18d1..bf5284d 100644
--- a/src/zfh.adoc
+++ b/src/zfh.adoc
@@ -87,16 +87,8 @@ is present, FCVT.Q.H or FCVT.H.Q converts a half-precision
floating-point number to a quad-precision floating-point number, or
vice-versa, respectively.
-R@F@R@R@F@R@O +
-& & & & & & +
-& & & & & & +
-& 2 & 5 & 5 & 3 & 5 & 7 +
-FCVT.S.H & S & H & src & RM & dest & OP-FP +
-FCVT.H.S & H & S & src & RM & dest & OP-FP +
-FCVT.D.H & D & H & src & RM & dest & OP-FP +
-FCVT.H.D & H & D & src & RM & dest & OP-FP +
-FCVT.Q.H & Q & H & src & RM & dest & OP-FP +
-FCVT.H.Q & H & Q & src & RM & dest & OP-FP +
+include::images/wavedrom/half-prec-flpt-to-flpt-conv.adoc[]
+[half-prec-flpt-to-flpt-conv]
Floating-point to floating-point sign-injection instructions, FSGNJ.H,
FSGNJN.H, and FSGNJX.H are defined analogously to the single-precision