Skip to content

Q: Initialization procedure  #175

@leloup314

Description

@leloup314

Is there a particular reason for the following syntax to be necessary?

from basil.dut import Dut

# Instantiate my_device
my_device = Dut(my_config)
my_device.init()  # Additionally call an init method on the instance manually

Why not call my_device.init inside the instances __init__?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions