Skip to content

Index array using an enumerated type

type fu_group_t[Cfg : Cva6Config]

    | FLU
    | MUL
    | LSU
    | XIF If Cfg.Cvxif
    | ACC If Cfg.Acc

---

// un tableau indexé par le type énuméré => 1 élément par variant
let ports = fu_group_t * result_t
let branch_result = ports[FLU]
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information