From: Luke Kenneth Casson Leighton Date: Wed, 11 Sep 2019 01:59:20 +0000 (+0100) Subject: whitespace X-Git-Tag: convert-csv-opcode-to-binary~4114 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=673a48a42739eca45fcda3943b5b0a3e67f32715;p=libreriscv.git whitespace --- diff --git a/ztrans_proposal.mdwn b/ztrans_proposal.mdwn index fedf011ad..a4c3befb1 100644 --- a/ztrans_proposal.mdwn +++ b/ztrans_proposal.mdwn @@ -95,11 +95,12 @@ covered by Supercomputer Vectorisation Standards (such as RVV). **The "contra"-requirements are**: * NOT for use with RVV (RISC-V Vector Extension). These are *scalar* opcodes. - Ultra Low Power Embedded platforms (smart watches) are sufficiently resource constrained that Vectorisation - (of any kind) is likely to be unnecessary and inappropriate. + Ultra Low Power Embedded platforms (smart watches) are sufficiently + resource constrained that Vectorisation (of any kind) is likely to be + unnecessary and inappropriate. * The requirements are **not** for the purposes of developing a full custom - proprietary GPU with proprietary firmware - driven by *hardware* centric optimised design decisions as a priority over collaboration. + proprietary GPU with proprietary firmware driven by *hardware* centric + optimised design decisions as a priority over collaboration. * A full custom proprietary GPU ASIC Manufacturer *may* benefit from this proposal however the fact that they typically develop proprietary software that is not shared with the rest of the community likely to @@ -135,9 +136,10 @@ have extremely competitive power-efficiency and power-budget requirements that are completely at odds with the other market at the other end of the spectrum: Numerical Computation. -Interoperability in Numerical Computation is absolutely critical: it implies (correlates directly with) -IEEE754 compliance. However full IEEE754 compliance automatically and -inherently penalises a GPU on performance and die area, where accuracy is simply just not necessary. +Interoperability in Numerical Computation is absolutely critical: it +implies (correlates directly with) IEEE754 compliance. However full +IEEE754 compliance automatically and inherently penalises a GPU on +performance and die area, where accuracy is simply just not necessary. To meet the needs of both markets, the two new platforms have to be created, and [[zfpacc_proposal]] is a critical dependency. Runtime selection of @@ -161,8 +163,9 @@ Compiler) would conclude, reasonably and rationally, that, likewise, the opcodes were best suited to be added to RVV, and, further, that their requirements conflict with the HPC world, due to the reduced accuracy. This on the basis that the silicon die area required for IEEE754 is far -greater than that needed for reduced-accuracy, and thus their product would -be completely unacceptable in the market if it had to meet IEEE754, unnecessarily. +greater than that needed for reduced-accuracy, and thus their product +would be completely unacceptable in the market if it had to meet IEEE754, +unnecessarily. An "Embedded 3D" GPU has radically different performance, power and die-area requirements (and may even target SoftCores in FPGA). @@ -197,14 +200,15 @@ of the RISC-V ecosystem. However given that 3D revolves around Standards - DirectX, Vulkan, OpenGL, OpenCL - users have much more influence than first appears. Compliance -with these standards is critical as the userbase (Games writers, scientific -applications) expects not to have to rewrite extremely large and costly codebases to conform -with *non-standards-compliant* hardware. +with these standards is critical as the userbase (Games writers, +scientific applications) expects not to have to rewrite extremely large +and costly codebases to conform with *non-standards-compliant* hardware. -Therefore, compliance with public APIs (Vulkan, OpenCL, OpenGL, DirectX) is paramount, and compliance with -Trademarked Standards is critical. Any deviation from Trademarked Standards -means that an implementation may not be sold and also make a claim of being, -for example, "Vulkan compatible". +Therefore, compliance with public APIs (Vulkan, OpenCL, OpenGL, DirectX) +is paramount, and compliance with Trademarked Standards is critical. +Any deviation from Trademarked Standards means that an implementation +may not be sold and also make a claim of being, for example, "Vulkan +compatible". This in turn reinforces and makes a hard requirement a need for public compliance with such standards, over-and-above what would otherwise be @@ -220,9 +224,9 @@ these primitives well-established in high-profile software libraries and compilers in both GPU and HPC Computer Science divisions. Collaboration and shared public compliance with those standards brooks no argument. -The combined requirements of collaboration and multi accuracy requirements mean that -*overall this proposal is categorically and wholly unsuited to -relegation of "custom" status*. +The combined requirements of collaboration and multi accuracy requirements +mean that *overall this proposal is categorically and wholly unsuited +to relegation of "custom" status*. # Quantitative Analysis @@ -286,21 +290,25 @@ However, some markets may not wish to *use* CORDIC, for reasons mentioned above, and, again, one market would be penalised if SINPI was prioritised over SIN, or vice-versa. -In essence, then, even when only the two primary markets (3D and Numerical Computation) have been identified, this still leaves two (three) diametrically-opposed *accuracy* sub-markets as the prime conflict drivers: +In essence, then, even when only the two primary markets (3D and +Numerical Computation) have been identified, this still leaves two +(three) diametrically-opposed *accuracy* sub-markets as the prime +conflict drivers: * Embedded Ultra Low Power * IEEE754 compliance * Khronos Vulkan compliance Thus the best that can be done is to use Quantitative Analysis to work -out which "subsets" - sub-Extensions - to include, provide an additional "accuracy" extension, be as "inclusive" -as possible, and thus allow implementors to decide what to add to their -implementation, and how best to optimise them. +out which "subsets" - sub-Extensions - to include, provide an additional +"accuracy" extension, be as "inclusive" as possible, and thus allow +implementors to decide what to add to their implementation, and how best +to optimise them. This approach *only* works due to the uniformity of the function space, and is **not** an appropriate methodology for use in other Extensions -with huge (non-uniform) market diversity even with similarly large numbers of potential opcodes. -BitManip is the perfect counter-example. +with huge (non-uniform) market diversity even with similarly large +numbers of potential opcodes. BitManip is the perfect counter-example. # Proposed Opcodes vs Khronos OpenCL Opcodes @@ -421,11 +429,15 @@ FATANH | inverse hyperbolic tan | rd = atanh(rs1) | Zfhyp | # Subsets -The full set is based on the Khronos OpenCL opcodes. If implemented entirely it would be too much for both Embedded and also 3D. +The full set is based on the Khronos OpenCL opcodes. If implemented +entirely it would be too much for both Embedded and also 3D. -The subsets are organised by hardware complexity, need (3D, HPC), however due to synthesis producing inaccurate results at the range limits, the less common subsets are still required for IEEE754 HPC. +The subsets are organised by hardware complexity, need (3D, HPC), however +due to synthesis producing inaccurate results at the range limits, +the less common subsets are still required for IEEE754 HPC. -MALI Midgard, an embedded / mobile 3D GPU, for example only has the following opcodes: +MALI Midgard, an embedded / mobile 3D GPU, for example only has the +following opcodes: E8 - fatan_pt2 F0 - frcp (reciprocal) @@ -449,17 +461,24 @@ Vivante Embedded/Mobile 3D (etnaviv