Skip to content

Commit

Permalink
[Sim][#50] Avoid updating all nodes during the reset sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Jun 23, 2022
1 parent b0c645c commit 0745b28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/z80sim/z80sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,8 @@ def clear_state(self):
def __init_chip(self, skip_reset):
self.clear_state()

self.update_all_nodes()

if skip_reset:
return

Expand All @@ -766,9 +768,6 @@ def __init_chip(self, skip_reset):
self.nnmi = TRUE
self.nwait = TRUE

self.__update_nodes([n for n in self.__nodes.values()
if n not in self.__gnd_pwr])

# Propagate the reset signal.
for _ in range(31):
self.half_tick()
Expand Down

0 comments on commit 0745b28

Please sign in to comment.