In chisel-template test example there are some init calls method for decoupled value:
class GCDSpec extends FreeSpec with ChiselScalatestTester {
"Gcd should calculate proper greatest common denominator" in {
test(new DecoupledGcd(16)) { dut =>
dut.input.initSource()
dut.input.setSourceClock(dut.clock)
dut.output.initSink()
dut.output.setSinkClock(dut.clock)
//...
I can't find documentation explained the purpose of these methods. Why do we have to «init source or sink» of decoupled input ?
The api documentation is not filled with documentation for it.