fc866cb9214371dacb5e3637404f27e58dc1d82d
1 from UserDict
import UserDict
4 """ a wire which can be hi, lo or tri-state
6 def __init__(self
, wires
, name
):
8 self
.wires
[name
] = self
12 class TestPin(object):
13 """ a test pin can be an output, input or in-out
14 and it stores the state in an associated wire
17 class Wires(UserDict
):
21 UserDict
.__init
__(self
)
23 def dummytest(ps
, output_dir
, output_type
):
24 print ps
, output_dir
, output_type
28 # basically we need to replicate the entirety of the
29 # verilog module's inputs and outputs, so that we can
30 # set inputs hi/lo and then test expected outputs hi/lo.
31 # so, set up some wires by going through the interfaces