In the "Your first circuit" section of the tutorial, the multiply-and-accumulate (MAC) circuit is introduced with the topEntity:
topEntity
:: Clock System
-> Reset System
-> Enable System
-> Signal System (Signed 9, Signed 9)
-> Signal System (Signed 9)
topEntity = exposeClockResetEnable mac
and later in the "Alternative specifications" sub-section the macN, macA and macS are given as examples of alternatives to mac.
However, while macS can be used as a drop-in replacement, both the macN and macA require a topEntity with a different signature:
topEntity
:: Clock System
-> Reset System
-> Enable System
-> (Signal System (Signed 9), Signal System (Signed 9))
-> Signal System (Signed 9)
If this is intentional, it would be nice to have it mentioned in the tutorial, as it can be confusing to newcomers.
In the "Your first circuit" section of the tutorial, the multiply-and-accumulate (MAC) circuit is introduced with the
topEntity
:and later in the "Alternative specifications" sub-section the
macN
,macA
andmacS
are given as examples of alternatives tomac
.However, while
macS
can be used as a drop-in replacement, both themacN
andmacA
require atopEntity
with a different signature:If this is intentional, it would be nice to have it mentioned in the tutorial, as it can be confusing to newcomers.