From 156d60ada6aee39df635a3c2f687164da0b02a3a Mon Sep 17 00:00:00 2001 From: Pat Deegan Date: Fri, 26 May 2023 15:34:25 -0400 Subject: [PATCH] io_in/out renamed for tt03p5 --- testing/lib/testutils/truthtable.py | 8 ++++---- testing/src-tpl/test.py | 4 ++-- testing/src-tpl/test_wokwi.v | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/testing/lib/testutils/truthtable.py b/testing/lib/testutils/truthtable.py index 3181ff0..2f222bd 100644 --- a/testing/lib/testutils/truthtable.py +++ b/testing/lib/testutils/truthtable.py @@ -4,7 +4,7 @@ A simple system to take truth table data from yosys, like - io_in | io_out + ui_in | uo_out ---------- | ----------- 8'11111000 | 8'xxxxxxx0 8'11111001 | 8'xxxxxxx1 @@ -30,8 +30,8 @@ @cocotb.test() async def truthTableCompare(dut): - i_bus = dut.io_in - o_bus = dut.io_out + i_bus = dut.ui_in + o_bus = dut.uo_out tt = truthtable.loadSimpleTruthTable('test/truthtable.txt') await tt.testAll(i_bus, o_bus, dut._log) @@ -497,7 +497,7 @@ def loadMarkdownTruthTable(filepath:str, logger=None): return None TruthTableExample = ''' - \\io_in | \\io_out + \\ui_in | \\uo_out ---------- | ----------- 8'11111000 | 8'xxxxxxx0 8'11111001 | 8'xxxxxxx1 diff --git a/testing/src-tpl/test.py b/testing/src-tpl/test.py index 74b8124..12a5d38 100644 --- a/testing/src-tpl/test.py +++ b/testing/src-tpl/test.py @@ -16,8 +16,8 @@ async def truthTableCompare(parentDUT): truthTableCompare -- loads markdown truth table and, if load succeeded, actually performs the tests. ''' usermodule = parentDUT.dut - i_bus = parentDUT.io_in - o_bus = parentDUT.io_out + i_bus = parentDUT.ui_in + o_bus = parentDUT.uo_out tt = truthtable.loadMarkdownTruthTable('truthtable.md', usermodule._log) if tt is None: usermodule._log.info('No truth table loaded, no table compare test to run') diff --git a/testing/src-tpl/test_wokwi.v b/testing/src-tpl/test_wokwi.v index 564f9be..ec283e1 100644 --- a/testing/src-tpl/test_wokwi.v +++ b/testing/src-tpl/test_wokwi.v @@ -3,16 +3,16 @@ `default_nettype none module test_wokwi (); - wire [7:0] io_out; - wire [7:0] io_in; + wire [7:0] uo_out; + wire [7:0] ui_in; tt_um_wokwi_WOKWI_ID dut ( `ifdef GL_TEST .vccd1( 1'b1), .vssd1( 1'b0), `endif - .io_in (io_in), - .io_out(io_out) + .ui_in(ui_in), + .uo_out(uo_out) ); initial begin