1 {-# LANGUAGE DeriveDataTypeable #-}
2 module CLasH.Translator.Annotations where
4 import Language.Haskell.TH
7 data CLasHAnn = TopEntity | InitState | TestInput | TestCycles
8 deriving (Show, Data, Typeable)
10 isTopEntity :: CLasHAnn -> Bool
11 isTopEntity TopEntity = True
14 isInitState :: CLasHAnn -> Bool
15 isInitState InitState = True
18 isTestInput :: CLasHAnn -> Bool
19 isTestInput TestInput = True
22 isTestCycles :: CLasHAnn -> Bool
23 isTestCycles TestCycles = True
24 isTestCycles _ = False