blarney
Copyright(c) Matthew Naylor 2019
LicenseMIT
Maintainermattfn@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred

Blarney.Core.Lookup

Description

 
Synopsis
  • class Lookup c i e | c -> e where
    • (!) :: c -> i -> e

Documentation

class Lookup c i e | c -> e where Source #

Index a collection c of elements e using index i

Methods

(!) :: c -> i -> e infixl 8 Source #

Instances

Instances details
Interface a => Lookup [a] OneHotList a #

Index a list using a one-hot bit list

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: [a] -> OneHotList -> a Source #

Lookup [a] Integer a #

Index a list using an Integer

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: [a] -> Integer -> a Source #

Lookup [a] Int a #

Index a list using an Int

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: [a] -> Int -> a Source #

Lookup (Bit n) OneHotList (Bit 1) #

Index a bit vector using a one-hot bit list

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: Bit n -> OneHotList -> Bit 1 Source #

Lookup (Bit n) Integer (Bit 1) #

Index a bit vector using an Integer

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: Bit n -> Integer -> Bit 1 Source #

Lookup (Bit n) Int (Bit 1) #

Index a bit vector using an Int

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: Bit n -> Int -> Bit 1 Source #

(Interface a, KnownNat n) => Lookup [a] (Bit n) a #

Index a list using a bit vector

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: [a] -> Bit n -> a Source #

KnownNat m => Lookup (Bit n) (Bit m) (Bit 1) #

Index a bit vector using a bit vector

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: Bit n -> Bit m -> Bit 1 Source #

Lookup (RegFile a d) a d #

Index a register file

Instance details

Defined in Blarney.Core.Lookup

Methods

(!) :: RegFile a d -> a -> d Source #

Lookup (Vec m a) Integer a #

Index a vector using an Integer

Instance details

Defined in Blarney.Vector

Methods

(!) :: Vec m a -> Integer -> a Source #

Lookup (Vec m a) Int a #

Index a vector using an Int

Instance details

Defined in Blarney.Vector

Methods

(!) :: Vec m a -> Int -> a Source #

(Interface a, KnownNat n) => Lookup (Vec m a) (Bit n) a #

Index a vector using a bit vector

Instance details

Defined in Blarney.Vector

Methods

(!) :: Vec m a -> Bit n -> a Source #