class LiteScopeUART2WB(Module, AutoCSR):
cmds = {
- "write" : 0x01,
- "read" : 0x02
+ "write": 0x01,
+ "read": 0x02
}
def __init__(self, pads, clk_freq, baudrate=115200, share_uart=False):
self.wishbone = wishbone.Interface()
class LiteScopeUARTDriver:
cmds = {
- "write" : 0x01,
- "read" : 0x02
+ "write": 0x01,
+ "read": 0x02
}
def __init__(self, port, baudrate=115200, addrmap=None, busword=8, debug=False):
self.port = port
def change(self, cnt):
r = ""
- try :
+ try:
if self.values[cnt+1] != self.val:
r += "b"
r += dec2bin(self.values[cnt+1], self.width)
r += self.vcd_id
r += "\n"
return r
- except :
+ except:
return r
return r