2 from UserDict
import UserDict
4 from collections
import UserDict
8 """ a wire which can be hi, lo or tri-state
11 def __init__(self
, wires
, name
):
13 self
.wires
[name
] = self
18 class TestPin(object):
19 """ a test pin can be an output, input or in-out
20 and it stores the state in an associated wire
24 class Wires(UserDict
):
29 UserDict
.__init
__(self
)
32 def dummytest(ps
, output_dir
, output_type
):
33 print (ps
, output_dir
, output_type
)
37 # basically we need to replicate the entirety of the
38 # verilog module's inputs and outputs, so that we can
39 # set inputs hi/lo and then test expected outputs hi/lo.
40 # so, set up some wires by going through the interfaces