mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
io_in/out renamed for tt03p5
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user