Skip to content

Commit

Permalink
Code cleanup (#174)
Browse files Browse the repository at this point in the history
Cleanup and run black -l 120
  • Loading branch information
themperek authored Feb 3, 2022
1 parent 16b38b1 commit 2c71f37
Show file tree
Hide file tree
Showing 19 changed files with 224 additions and 256 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ pip install -v -e cocotb-test
from cocotb_test.simulator import run
def test_dff():
run(
verilog_sources=["dff.v"], # sources
verilog_sources=["dff.sv"], # sources
toplevel="dff", # top level HDL
module="dff_cocotb" # name of cocotb test module
)
```

- Run [pytest](https://docs.pytest.org/en/latest/contents.html) (need `dff.v` and `dff_cocotb.py` in same directory where running `pytest`):
- Run [pytest](https://docs.pytest.org/en/latest/contents.html) (need `dff.sv` and `dff_cocotb.py` in same directory where running `pytest`):
```bash
SIM=icarus pytest -o log_cli=True test_dff.py
```
Expand Down
1 change: 1 addition & 0 deletions cocotb_test/run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import cocotb_test.simulator


# For partial back compatibility
def run(simulator=None, **kwargs):

Expand Down
Loading

0 comments on commit 2c71f37

Please sign in to comment.