zombieZero
Technical User
Sorry if this is a simple question, but I just can't figure out how to do it (if there is actually even a way to do it). Here's what I'm trying to do:
Say I have a file:
DUT1.tcl
Within that file, I define a class:
itcl::class DUT1 { etc...
Within that class, I define a method:
public method clearCounters {port args}
Then, I add the method itself:
itcl::body DUT1::clearCounters {port args} { etc...
NOW; I make a change to the clearCounters method; I want to basically reload the method to get the change. If I try to resource DUT1.tcl it will fail because the class DUT1 already exists.
Is there a way to basically reload a method?
Say I have a file:
DUT1.tcl
Within that file, I define a class:
itcl::class DUT1 { etc...
Within that class, I define a method:
public method clearCounters {port args}
Then, I add the method itself:
itcl::body DUT1::clearCounters {port args} { etc...
NOW; I make a change to the clearCounters method; I want to basically reload the method to get the change. If I try to resource DUT1.tcl it will fail because the class DUT1 already exists.
Is there a way to basically reload a method?