merge enums
This commit is contained in:
parent
b430ff0044
commit
f0d4f717ea
@ -44,35 +44,26 @@ fieldset/CSR:
|
|||||||
description: Number of results in the RDATA register.
|
description: Number of results in the RDATA register.
|
||||||
bit_offset: 19
|
bit_offset: 19
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: NRES
|
enum: Num
|
||||||
- name: NARGS
|
- name: NARGS
|
||||||
description: Number of arguments expected by the WDATA register.
|
description: Number of arguments expected by the WDATA register.
|
||||||
bit_offset: 20
|
bit_offset: 20
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: NARGS
|
enum: Num
|
||||||
- name: RESSIZE
|
- name: RESSIZE
|
||||||
description: Width of output data.
|
description: Width of output data.
|
||||||
bit_offset: 21
|
bit_offset: 21
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: RESSIZE
|
enum: Size
|
||||||
- name: ARGSIZE
|
- name: ARGSIZE
|
||||||
description: Width of input data.
|
description: Width of input data.
|
||||||
bit_offset: 22
|
bit_offset: 22
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: ARGSIZE
|
enum: Size
|
||||||
- name: RRDY
|
- name: RRDY
|
||||||
description: Result ready flag.
|
description: Result ready flag.
|
||||||
bit_offset: 31
|
bit_offset: 31
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum/ARGSIZE:
|
|
||||||
bit_size: 1
|
|
||||||
variants:
|
|
||||||
- name: Bits32
|
|
||||||
description: Use 32 bit input values.
|
|
||||||
value: 0
|
|
||||||
- name: Bits16
|
|
||||||
description: Use 16 bit input values.
|
|
||||||
value: 1
|
|
||||||
enum/FUNC:
|
enum/FUNC:
|
||||||
bit_size: 4
|
bit_size: 4
|
||||||
variants:
|
variants:
|
||||||
@ -106,7 +97,7 @@ enum/FUNC:
|
|||||||
- name: SquareRoot
|
- name: SquareRoot
|
||||||
description: Square Root function.
|
description: Square Root function.
|
||||||
value: 9
|
value: 9
|
||||||
enum/NARGS:
|
enum/Num:
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
variants:
|
variants:
|
||||||
- name: Num1
|
- name: Num1
|
||||||
@ -115,15 +106,6 @@ enum/NARGS:
|
|||||||
- name: Num2
|
- name: Num2
|
||||||
description: Two argument writes need to be performed for next calculation.
|
description: Two argument writes need to be performed for next calculation.
|
||||||
value: 1
|
value: 1
|
||||||
enum/NRES:
|
|
||||||
bit_size: 1
|
|
||||||
variants:
|
|
||||||
- name: Num1
|
|
||||||
description: Only single result value will be returned. After a single read RRDY will be automatically cleared.
|
|
||||||
value: 0
|
|
||||||
- name: Num2
|
|
||||||
description: Two return reads need to be performed. After two reads RRDY will be automatically cleared.
|
|
||||||
value: 1
|
|
||||||
enum/PRECISION:
|
enum/PRECISION:
|
||||||
bit_size: 4
|
bit_size: 4
|
||||||
variants:
|
variants:
|
||||||
@ -172,7 +154,7 @@ enum/PRECISION:
|
|||||||
- name: Iters60
|
- name: Iters60
|
||||||
description: 60 iterations.
|
description: 60 iterations.
|
||||||
value: 15
|
value: 15
|
||||||
enum/RESSIZE:
|
enum/Size:
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
variants:
|
variants:
|
||||||
- name: Bits32
|
- name: Bits32
|
||||||
|
8
transforms/CORDIC.yaml
Normal file
8
transforms/CORDIC.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
transforms:
|
||||||
|
- !MergeEnums
|
||||||
|
from: (ARG|RES)SIZE
|
||||||
|
to: Size
|
||||||
|
|
||||||
|
- !MergeEnums
|
||||||
|
from: N(ARGS|RES)
|
||||||
|
to: Num
|
Loading…
x
Reference in New Issue
Block a user