Print version information in debug output

This commit is contained in:
Alex Forencich
2020-11-22 23:09:20 -08:00
parent 306b09f967
commit 96feba1016
6 changed files with 38 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ from cocotb.log import SimLog
from collections import deque
from .version import __version__
from .constants import *
from .axil_channels import *
@@ -36,6 +37,11 @@ class AxiLiteMasterWrite(object):
def __init__(self, entity, name, clock, reset=None):
self.log = SimLog("cocotb.%s.%s" % (entity._name, name))
self.log.info("AXI lite master model")
self.log.info("cocotbext-axi version %s", __version__)
self.log.info("Copyright (c) 2020 Alex Forencich")
self.log.info("https://github.com/alexforencich/cocotbext-axi")
self.reset = reset
self.aw_channel = AxiLiteAWSource(entity, name, clock, reset)