Skip to content

Commit

Permalink
RFC #69: fix editing error.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jul 19, 2024
1 parent e159c9a commit 527df0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text/0069-simulation-port.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class SPIController(wiring.Component):
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:

```python
sck_port = io.SimulationPort(1, direction="o")
copi_port = io.SimulationPort(1, direction="o")
cipo_port = io.SimulationPort(1, direction="i")
sck_port = io.SimulationPort("o", 1)
copi_port = io.SimulationPort("o", 1)
cipo_port = io.SimulationPort("i", 1)

dut = SPIController(sck_port, copi_port, cipo_port)

Expand Down

0 comments on commit 527df0a

Please sign in to comment.