def mkTop():
    m = Module('top')
    led = mkLed()
    params = m.copy_params(led)
    ports = m.copy_ports(led)
    m.Instance(led, 'inst_' + led.name,
               connect_same_name(*params.values()),
               connect_same_name(*ports.values()))
    return m
dataset/ETHPy150Open PyHDI/veriloggen/tests/extension/fsm_/hook_nested/fsm_hook_nested.py/mkTop/original