finish the first version of nim8304 ioc and opi