From: lkcl Date: Fri, 5 Nov 2021 13:08:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~3460 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a407733980ba791add5a39c83e6c2ba966429f4;p=libreriscv.git --- diff --git a/3d_gpu/architecture/regfile.mdwn b/3d_gpu/architecture/regfile.mdwn index 483ea4b49..7a5339070 100644 --- a/3d_gpu/architecture/regfile.mdwn +++ b/3d_gpu/architecture/regfile.mdwn @@ -125,15 +125,14 @@ Description of each heading: comma-separated. Here is how they are used: -``` -class CRInputData(IntegerData): - regspec = [('INT', 'a', '0:63'), # 64 bit range - ('INT', 'b', '0:63'), # 6B bit range - ('CR', 'full_cr', '0:31'), # 32 bit range - ('CR', 'cr_a', '0:3'), # 4 bit range - ('CR', 'cr_b', '0:3'), # 4 bit range - ('CR', 'cr_c', '0:3')] # 4 bit range -``` + + class CRInputData(IntegerData): + regspec = [('INT', 'a', '0:63'), # 64 bit range + ('INT', 'b', '0:63'), # 6B bit range + ('CR', 'full_cr', '0:31'), # 32 bit range + ('CR', 'cr_a', '0:3'), # 4 bit range + ('CR', 'cr_b', '0:3'), # 4 bit range + ('CR', 'cr_c', '0:3')] # 4 bit range This tells us, when used by MultiCompUnit, that: @@ -147,11 +146,9 @@ This tells us, when used by MultiCompUnit, that: Likewise there is a corresponding regspec for CROutputData. The two are combined and associated with the Pipeline: -``` -class CRPipeSpec(CommonPipeSpec): - regspec = (CRInputData.regspec, CROutputData.regspec) - opsubsetkls = CompCROpSubset -``` + class CRPipeSpec(CommonPipeSpec): + regspec = (CRInputData.regspec, CROutputData.regspec) + opsubsetkls = CompCROpSubset In this way the pipeline can be connected up to a generic, general-purpose class (MultiCompUnit), which would otherwise know nothing about the details of the ALU