style: fix lint errors + reformat source with black

This commit is contained in:
Uri Shaked
2023-09-21 22:30:52 +03:00
parent 7d48aab542
commit aa8f760375
14 changed files with 1285 additions and 954 deletions
+10 -11
View File
@@ -1,28 +1,27 @@
'''
"""
Wokwi TinyTapeout truth-table based auto test sequence.
SPDX-FileCopyrightText: © 2023 Pat Deegan, https://psychogenic.com
SPDX-License-Identifier: Apache2.0
'''
"""
import os
import cocotb
import testutils.truthtable as truthtable
@cocotb.test()
async def truthTableCompare(parentDUT):
'''
truthTableCompare -- loads markdown truth table and, if load succeeded, actually performs the tests.
'''
"""
truthTableCompare -- loads markdown truth table and, if load succeeded, actually performs the tests.
"""
usermodule = parentDUT.dut
i_bus = parentDUT.ui_in
o_bus = parentDUT.uo_out
tt = truthtable.loadMarkdownTruthTable('truthtable.md', usermodule._log)
tt = truthtable.loadMarkdownTruthTable("truthtable.md", usermodule._log)
if tt is None:
usermodule._log.info('No truth table loaded, no table compare test to run')
return
usermodule._log.info("No truth table loaded, no table compare test to run")
return
usermodule._log.debug(str(tt))
await tt.testAll(i_bus, o_bus, usermodule._log)