Skip to content

Commit

Permalink
TCP upgrades (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgherbst committed May 8, 2024
1 parent 18a18ee commit 8771fec
Show file tree
Hide file tree
Showing 8 changed files with 269 additions and 266 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
cat out.log
grep -Fxq "PASS" out.log
- name: Run TCP tests
working-directory: tests
run: |
make TCP=1
fpga_sim:
name: FPGA queue simulation
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions examples/tcp/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
from switchboard import PySbPacket, PySbTx, PySbRx, start_tcp_bridge


def main(rxq='rx.q', txq='tx.q'):
def main(txq='tx.q', rxq='rx.q'):
# create queues
tx = PySbTx(rxq, fresh=True)
rx = PySbRx(txq, fresh=True)
tx = PySbTx(txq, fresh=True)
rx = PySbRx(rxq, fresh=True)

# start TCP bridges
start_tcp_bridge(mode='server', rx=rxq)
start_tcp_bridge(mode='client', tx=txq)
start_tcp_bridge(inputs=[txq])
start_tcp_bridge(outputs=[('*', rxq)])

# form packet to be sent into the simulation. note that the arguments
# to the constructor are all optional, and can all be specified later
Expand Down
Loading

0 comments on commit 8771fec

Please sign in to comment.