Skip to content

Commit

Permalink
applet.interface.jtag_svf: automatically insert DUT reset in more cases.
Browse files Browse the repository at this point in the history
See #303.
  • Loading branch information
wanda-phi authored and whitequark committed Jul 3, 2024
1 parent 00ad180 commit c361361
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions software/glasgow/applet/interface/jtag_svf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ async def svf_state(self, state, path):
if not path and state == "RESET":
await self._enter_state(state)
return
if self.lower.get_state() == JTAGState.UNKNOWN:
# The SVF specification doesn't mention whether, at entry, the DUT is assumed to be
# in a known state or not, and it looks like some SVF generators assume it is, indeed,
# reset; accept that, but warn.
self._log("test vector did not reset DUT explicitly, resetting",
level=logging.WARN)
await self.lower.enter_test_logic_reset()
state = getattr(JTAGState, state)
if path:
path = [getattr(JTAGState, s) for s in path] + [state]
Expand Down

0 comments on commit c361361

Please sign in to comment.