def __init__(self, file, clockName, dataName): """ file: VCD file clockName(str): name of the clock wire in the VCD file dataName(str): name of the data wire in the VCD file """ VcdReader.__init__(self, file) self.clockName = clockName self.dataName = dataName
def __init__(self, file, dataName, baudRate, dataBits, bitOrder, parityBit, stopBits): """ file: VCD file dataName(str): name of the data wire in the VCD file baudRate(int): speed of the serial communication The other parameters are passed through to SerialDecoder. """ VcdReader.__init__(self, file) self.dataName = dataName self.period = 1. / baudRate self.decoder = UartSerialDecoder(dataBits, bitOrder, parityBit, stopBits)