Skip to content

Commit

Permalink
increase verbosity of some log msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Dec 11, 2023
1 parent 2073c1c commit 195cf37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cocotb/caravel_cocotb/models/apb_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, json_file) -> None:
with open(json_file, 'r') as file:
self.data = json.load(file)
self.init_regs()
cocotb.log.info(f"[{__class__.__name__}] {self.get_regs()}")
cocotb.log.debug(f"[{__class__.__name__}] {self.get_regs()}")

def init_regs(self):
regs = {}
Expand Down Expand Up @@ -137,7 +137,7 @@ def write_reg_value(self, address, value):
cocotb.log.debug(f"[{__class__.__name__}] value before write to address {hex(address)}: {hex(self.regs[address]['val'])}")
if "w" in self.regs[address]["mode"]:
self.regs[address]["val"] = value & ((1 << int(self.regs[address]["size"])) - 1)
cocotb.log.info(f"[{__class__.__name__}] value after write to address {hex(address)}: {hex(self.regs[address]['val'])}")
cocotb.log.debug(f"[{__class__.__name__}] value after write to address {hex(address)}: {hex(self.regs[address]['val'])}")

def read_reg_value(self, address):
return self.regs[address]["val"]
Expand All @@ -150,7 +150,7 @@ def __init__(self, hdl, queue, ip_regs) -> None:
self._queue_fork = cocotb.scheduler.add(self.apb_monitor(queue))
if ip_regs.get_irq_exist():
self._irq_fork = cocotb.scheduler.add(self.irq_monitor(queue))
cocotb.log.info("[TEST] Start UART APB Monitor")
cocotb.log.debug("[TEST] Start APB Monitor")

async def irq_monitor(self, queue):
self.irq_hdls()
Expand Down

0 comments on commit 195cf37

Please sign in to comment.