Skip to content

Commit 527df0a

Browse files
committed
RFC #69: fix editing error.
1 parent e159c9a commit 527df0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0069-simulation-port.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class SPIController(wiring.Component):
5353
To simulate such a component, instantiate `lib.io.SimulationPort` objects for each of the ports, and use their `.o`, `.oe`, and `.i` signals to verify the functionality:
5454

5555
```python
56-
sck_port = io.SimulationPort(1, direction="o")
57-
copi_port = io.SimulationPort(1, direction="o")
58-
cipo_port = io.SimulationPort(1, direction="i")
56+
sck_port = io.SimulationPort("o", 1)
57+
copi_port = io.SimulationPort("o", 1)
58+
cipo_port = io.SimulationPort("i", 1)
5959

6060
dut = SPIController(sck_port, copi_port, cipo_port)
6161

0 commit comments

Comments
 (0)