Skip to content

Commit

Permalink
pretty print for time sample
Browse files Browse the repository at this point in the history
  • Loading branch information
psychogenic committed Dec 6, 2024
1 parent 91f23c8 commit 88885dd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async def note_a_exact(dut):

def main():
import ttboard.cocotb.dut

from microcotb.time.value import TimeValue
class DUT(ttboard.cocotb.dut.DUT):
def __init__(self):
super().__init__('Neptune')
Expand All @@ -191,7 +191,8 @@ def __init__(self):
print("Setting mode to ASIC_RP_CONTROL")
tt.mode = RPMode.ASIC_RP_CONTROL


# I'll spend the cycles to get pretty timestamps
TimeValue.ReBaseStringUnits = True
runner = cocotb.get_runner()
dut = DUT()
dut._log.info(f"enabled neptune project, will test with {runner}")
Expand Down

0 comments on commit 88885dd

Please sign in to comment.