docs: Update up_counter to avoid deprecation warning
authorJoel Stanley <joel@jms.id.au>
Fri, 15 Jan 2021 02:58:21 +0000 (13:28 +1030)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:25:46 +0000 (15:25 +0000)
nmigen/docs/_code/up_counter.py:44: DeprecationWarning: instead of nmigen.back.pysim.*, use nmigen.sim.*
  from nmigen.back.pysim import Simulator

docs/_code/up_counter.py

index 227b3c5f82475ed065b6f368b3aaea8ef36518c1..6f49360fea11f8be563b1e989d18b0ceb6c28a0b 100644 (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)