def init_hwcode(self, hwcode):
    self.hwcode = hwcode
    if (hwcode in hwconfig):
        self.chipconfig = hwconfig[hwcode]
    else:
        self.chipconfig = chipconfig()
    self.default_values(hwcode)
def init_hwcode(self, hwcode):
    self.hwcode = hwcode
    if (hwcode in hwconfig):
        self.chipconfig = hwconfig[hwcode]
    else:
        self.chipconfig = chipconfig()
    self.default_values(hwcode)