io_in/out renamed for tt03p5

This commit is contained in:
Pat Deegan
2023-05-26 22:45:41 +03:00
committed by Uri Shaked
parent 072140ac0b
commit 156d60ada6
3 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -4,7 +4,7 @@
A simple system to take truth table data from yosys, like A simple system to take truth table data from yosys, like
io_in | io_out ui_in | uo_out
---------- | ----------- ---------- | -----------
8'11111000 | 8'xxxxxxx0 8'11111000 | 8'xxxxxxx0
8'11111001 | 8'xxxxxxx1 8'11111001 | 8'xxxxxxx1
@@ -30,8 +30,8 @@
@cocotb.test() @cocotb.test()
async def truthTableCompare(dut): async def truthTableCompare(dut):
i_bus = dut.io_in i_bus = dut.ui_in
o_bus = dut.io_out o_bus = dut.uo_out
tt = truthtable.loadSimpleTruthTable('test/truthtable.txt') tt = truthtable.loadSimpleTruthTable('test/truthtable.txt')
await tt.testAll(i_bus, o_bus, dut._log) await tt.testAll(i_bus, o_bus, dut._log)
@@ -497,7 +497,7 @@ def loadMarkdownTruthTable(filepath:str, logger=None):
return None return None
TruthTableExample = ''' TruthTableExample = '''
\\io_in | \\io_out \\ui_in | \\uo_out
---------- | ----------- ---------- | -----------
8'11111000 | 8'xxxxxxx0 8'11111000 | 8'xxxxxxx0
8'11111001 | 8'xxxxxxx1 8'11111001 | 8'xxxxxxx1
+2 -2
View File
@@ -16,8 +16,8 @@ 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 usermodule = parentDUT.dut
i_bus = parentDUT.io_in i_bus = parentDUT.ui_in
o_bus = parentDUT.io_out o_bus = parentDUT.uo_out
tt = truthtable.loadMarkdownTruthTable('truthtable.md', usermodule._log) tt = truthtable.loadMarkdownTruthTable('truthtable.md', usermodule._log)
if tt is None: if tt is None:
usermodule._log.info('No truth table loaded, no table compare test to run') usermodule._log.info('No truth table loaded, no table compare test to run')
+4 -4
View File
@@ -3,16 +3,16 @@
`default_nettype none `default_nettype none
module test_wokwi (); module test_wokwi ();
wire [7:0] io_out; wire [7:0] uo_out;
wire [7:0] io_in; wire [7:0] ui_in;
tt_um_wokwi_WOKWI_ID dut ( tt_um_wokwi_WOKWI_ID dut (
`ifdef GL_TEST `ifdef GL_TEST
.vccd1( 1'b1), .vccd1( 1'b1),
.vssd1( 1'b0), .vssd1( 1'b0),
`endif `endif
.io_in (io_in), .ui_in(ui_in),
.io_out(io_out) .uo_out(uo_out)
); );
initial begin initial begin