module Trace where
import Clash.Prelude
topEntity :: Signal System Bool
topEntity = traceSignal1 "boolean" $ pure True
main = sampleN @System 10 topEntity
clashi 1.2:
Clash.Prelude> :l Trace.hs
[1 of 1] Compiling Trace ( Trace.hs, interpreted )
Ok, one module loaded.
*Trace> main
[True,True,True,True,True,True,True,True,True,True]
*Trace> :r
[1 of 1] Compiling Trace ( Trace.hs, interpreted )
Ok, one module loaded.
*Trace> main
*** Exception: Already tracing a signal with the name: 'boolean'.
CallStack (from HasCallStack):
error, called at src/Clash/Signal/Trace.hs:171:7 in clash-prelude-1.2.0-inplace:Clash.Signal.Trace
And then clashi needs to be restarted to properly run main again.
Code:
clashi
1.2:And then
clashi
needs to be restarted to properly runmain
again.