Skip to content

Commit

Permalink
Attempting to cut off testing sooner.
Browse files Browse the repository at this point in the history
  • Loading branch information
rslawson committed Oct 30, 2024
1 parent 444d9aa commit 397ca9a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions bittide-instances/src/Bittide/Instances/Hitl/SwCcTopologies.hs
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ swCcTopologyTest refClkDiff sysClkDiff syncIn rxns rxps miso =
(satSucc SatBound <$> testCounter)

cfg = fromMaybe disabled <$> testConfig
cfg' = mux testSuccessSticky (pure disabled) cfg

( txns
, txps
Expand All @@ -966,7 +967,7 @@ swCcTopologyTest refClkDiff sysClkDiff syncIn rxns rxps miso =
, _stats
, spiDone
, spiOut
, _transceiversFailedAfterUp
, transceiversFailedAfterUp
, allReady
, allStable
, calibI
Expand All @@ -981,7 +982,7 @@ swCcTopologyTest refClkDiff sysClkDiff syncIn rxns rxps miso =
rxns
rxps
miso
cfg
cfg'

captureFlag =
riseEvery
Expand Down Expand Up @@ -1061,7 +1062,7 @@ swCcTopologyTest refClkDiff sysClkDiff syncIn rxns rxps miso =
calibE
endSuccess
startBeforeAllReady
_transceiversFailedAfterUp
transceiversFailedAfterUp
testDone
testSuccess
testCounter
Expand All @@ -1079,8 +1080,8 @@ swCcTopologyTest refClkDiff sysClkDiff syncIn rxns rxps miso =
sticky
sysClk
syncRst
-- (syncStart .&&. ((not <$> allReady) .||. transceiversFailedAfterUp))
(syncStart .&&. (not <$> allReady))
(syncStart .&&. ((not <$> allReady) .||. transceiversFailedAfterUp))
-- (syncStart .&&. (not <$> allReady))

endSuccess :: Signal Basic125 Bool
endSuccess =
Expand All @@ -1099,19 +1100,21 @@ swCcTopologyTest refClkDiff sysClkDiff syncIn rxns rxps miso =
startTest
.&&. ( skip
.||. endSuccess
-- .||. transceiversFailedAfterUp
.||. transceiversFailedAfterUp
.||. startBeforeAllReady
)
testDoneSticky = sticky sysClk testReset (isRising sysClk testReset enableGen False testDone)

testSuccess =
skip
.||. ( allStable
-- .&&. (not <$> (transceiversFailedAfterUp .||. startBeforeAllReady))
.&&. (not <$> startBeforeAllReady)
.&&. (not <$> (transceiversFailedAfterUp .||. startBeforeAllReady))
-- .&&. (not <$> startBeforeAllReady)
)
testSuccessSticky = sticky sysClk testReset (isRising sysClk testReset enableGen False testSuccess)

testConfig :: Signal Basic125 (Maybe TestConfig)
testConfig = hitlVio disabled sysClk testDone testSuccess
testConfig = hitlVio disabled sysClk testDoneSticky testSuccessSticky

makeTopEntity 'swCcTopologyTest

Expand Down

0 comments on commit 397ca9a

Please sign in to comment.