2121# See the License for the specific language governing permissions and
2222# limitations under the License.
2323
24- import ttboard . cocotb as cocotb
25- from ttboard . cocotb .clock import Clock
26- from ttboard . cocotb .triggers import RisingEdge , FallingEdge , Timer , ClockCycles
27- from ttboard . cocotb .utils import get_sim_time
24+ import microcotb as cocotb
25+ from microcotb .clock import Clock
26+ from microcotb .triggers import RisingEdge , FallingEdge , Timer , ClockCycles
27+ from microcotb .utils import get_sim_time
2828
2929def time_delta_not (cond :str ):
3030 return f'sim time delta not { cond } '
@@ -169,18 +169,18 @@ async def test_rgbled(dut):
169169
170170
171171from ttboard .demoboard import DemoBoard
172- import ttboard .cocotb .dut
173- from ttboard . cocotb .dut import Wire
172+ import ttboard .cocotb .dut as basedut
173+ from microcotb .dut import Wire
174174
175- class RGBLED (ttboard . cocotb . dut .DUT ):
175+ class RGBLED (basedut .DUT ):
176176 def __init__ (self , data :Wire , data_rdy :Wire ):
177177 super ().__init__ ('RGBLED' )
178178 self .data = data
179179 self .data_rdy = data_rdy
180180 self .led = self .new_slice_attribute (self .tt .uo_out , 0 )
181181 self .nreset = self .rst_n
182182
183- class TBSPI (ttboard . cocotb . dut .DUT ):
183+ class TBSPI (basedut .DUT ):
184184
185185 def __init__ (self , data :Wire , data_rdy :Wire ):
186186 super ().__init__ ('SPI' )
@@ -191,7 +191,7 @@ def __init__(self, data:Wire, data_rdy:Wire):
191191 self .sclk = self .new_bit_attribute (self .tt .ui_in , 1 )
192192 self .nsel = self .new_bit_attribute (self .tt .ui_in , 2 )
193193
194- class DUT (ttboard . cocotb . dut .DUT ):
194+ class DUT (basedut .DUT ):
195195 def __init__ (self ):
196196 super ().__init__ ('RGBDUT' )
197197 self .data = Wire ()
0 commit comments