Skip to content

Commit 490fca5

Browse files
shenkiwhitequark
authored andcommitted
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
1 parent 3a4b61c commit 490fca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_code/up_counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def elaborate(self, platform):
4141

4242
return m
4343
# --- TEST ---
44-
from nmigen.back.pysim import Simulator
44+
from nmigen.sim import Simulator
4545

4646

4747
dut = UpCounter(25)

0 commit comments

Comments
 (0)