docs: Update up_counter to avoid deprecation warning

nmigen/docs/_code/up_counter.py:44: DeprecationWarning: instead of nmigen.back.pysim.*, use nmigen.sim.*
  from nmigen.back.pysim import Simulator
This commit is contained in:
Joel Stanley 2021-01-15 13:28:21 +10:30 committed by whitequark
parent 3a4b61c16e
commit 490fca5745

View file

@ -41,7 +41,7 @@ class UpCounter(Elaboratable):
return m
# --- TEST ---
from nmigen.back.pysim import Simulator
from nmigen.sim import Simulator
dut = UpCounter(25)