eth/example: Use logging.getLogger instead of SimLog

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-11-17 21:34:06 -08:00
parent 75d28d5adb
commit 7449dcfdc3
22 changed files with 22 additions and 44 deletions

View File

@@ -15,7 +15,6 @@ import os
import cocotb_test.simulator
import cocotb
from cocotb.log import SimLog
from cocotb.clock import Clock
from cocotb.triggers import RisingEdge, Combine
@@ -27,7 +26,7 @@ class TB:
def __init__(self, dut, speed=100e6):
self.dut = dut
self.log = SimLog("cocotb.tb")
self.log = logging.getLogger("cocotb.tb")
self.log.setLevel(logging.DEBUG)
cocotb.start_soon(Clock(dut.clk, 8, units="ns").start())