-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip ci] Implement synthesis domains in primitive definitions
- Loading branch information
1 parent
f6099b1
commit 0c38d65
Showing
35 changed files
with
950 additions
and
1,342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,42 @@ | ||
[ { "BlackBox" : | ||
{ "name" : "Clash.Signal.Internal.clockGate" | ||
{ "name" : "Clash.Signal.Internal.toEnabledClock" | ||
, "kind" : "Declaration" | ||
, "type" : | ||
"clockGate | ||
:: Clock domain gated -- ARG[0] | ||
-> Signal domain Bool -- ARG[1] | ||
-> Clock domain 'Gated" | ||
"toEnabledClock | ||
:: Clock dom -- ARG[0] | ||
-> Signal dom Bool -- ARG[1] | ||
-> Clock dom" | ||
, "template" : | ||
"// clockGate begin~IF ~ISGATED[0] ~THEN | ||
"// toEnabledClock begin~IF ~ISENABLED[0] ~THEN | ||
assign ~RESULT = {~ARG[0][1],~ARG[0][0] & ~ARG[1]};~ELSE | ||
assign ~RESULT = {~ARG[0],~ARG[1]};~FI | ||
// clockGate end" | ||
// toEnabledClock end" | ||
} | ||
} | ||
, { "BlackBox" : | ||
{ "name" : "Clash.Signal.Internal.unsafeFromAsyncReset" | ||
{ "name" : "Clash.Signal.Internal.unsafeFromReset" | ||
, "workInfo" : "Never" | ||
, "kind" : "Expression" | ||
, "type" : | ||
"unsafeFromAsyncReset :: Reset domain Asynchronous -> Signal domain Bool" | ||
"unsafeFromReset :: Reset dom -> Signal dom Bool" | ||
, "template" : "~ARG[0]" | ||
} | ||
} | ||
, { "BlackBox" : | ||
{ "name" : "Clash.Signal.Internal.unsafeToAsyncReset" | ||
, "workInfo" : "Never" | ||
{ "name" : "Clash.Signal.Internal.unsafeToReset" | ||
, "kind" : "Expression" | ||
, "type" : | ||
"unsafeToAsyncReset :: Signal domain Bool -> Reset domain Asynchronous" | ||
, "template" : "~ARG[0]" | ||
} | ||
} | ||
, { "BlackBox" : | ||
{ "name" : "Clash.Signal.Internal.fromSyncReset" | ||
, "workInfo" : "Never" | ||
, "kind" : "Expression" | ||
, "type" : | ||
"fromSyncReset :: Reset domain Synchronous -> Signal domain Bool" | ||
, "template" : "~ARG[0]" | ||
"unsafeToReset :: KnownDomain dom conf => Signal dom Bool -> Reset dom" | ||
, "template" : "~ARG[1]" | ||
} | ||
} | ||
, { "BlackBox" : | ||
{ "name" : "Clash.Signal.Internal.unsafeToSyncReset" | ||
, "workInfo" : "Never" | ||
, "kind" : "Expression" | ||
, "type" : | ||
"unsafeToSyncReset :: Signal domain Bool -> Reset domain Synchronous" | ||
, "template" : "~ARG[0]" | ||
{ "name" : "Clash.Signal.Internal.tbEnableGen" | ||
, "workInfo" : "Always" | ||
, "kind" : "Declaration" | ||
, "type" : "tbEnableGen :: Enable dom" | ||
, "template" : "assign ~RESULT = 1'b1;" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.