clash-prelude-0.9999: CAES Language for Synchronous Hardware - Prelude library
Copyright(C) 2019 Myrtle Software Ltd
LicenseBSD2 (see the file LICENSE)
MaintainerQBayLogic B.V. <clash@qbaylogic.com>
Safe HaskellSafe
LanguageHaskell2010

Clash.Magic

Description

Control module instance, and register, names in generated HDL code.

Synopsis

Documentation

prefixName :: forall (name :: Symbol) a. a -> name ::: a Source #

Prefix instance and register names with the given Symbol

suffixName :: forall (name :: Symbol) a. a -> name ::: a Source #

Suffix instance and register names with the given Symbol

setName :: forall (name :: Symbol) a. a -> name ::: a Source #

Name the instance or register with the given Symbol, instead of using an auto-generated name. Pre- and suffixes annotated with prefixName and suffixName will be added to both instances and registers named with setName and instances and registers that are auto-named.