Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi, Thank you very much for your respond. I was able to result the problem and would like to share to anyone may have similar issue. Please kindly point me out if this isn’t a preferred method to result the SOPC2DTS bug. My problem is relate to the GenericTristateController class module in the GenericTriStateController.java (below is my modified code) which it’s locate at /tools/sopc2dts/sopc2dts/lib/components
Note: The SOPCINFO uses the value "embeddedsw.configuration.hwClassnameDriverSupportList" and "altera_avalon_lan91c111,altera_avalon_cfi_flash" boolean bChanged = false; String driverType = getParamValByName("embeddedsw.configuration.softwareDriver"); if(driverType==null) { driverType = getParamValByName("embeddedsw.configuration.hwClassnameDriverSupportDefault"); } --> if(driverType==null) --> { --> driverType = getParamValByName("embeddedsw.configuration.hwClassnameDriverSupportList"); --> } if(driverType==null) { Logger.logln("GenericTristateController: " + getInstanceName() + " failed to detect driver type.", LogLevel.WARNING); } else { if(driverType.equalsIgnoreCase("altera_avalon_cfi_flash_driver") || driverType.equalsIgnoreCase("altera_avalon_cfi_flash")|| --> driverType.equalsIgnoreCase("altera_avalon_lan91c111,altera_avalon_cfi_flash")) { Logger.logln("GenericTristateController: " + getInstanceName() + " seems to be a CFI-Flash chip.", LogLevel.INFO); SICFlash flash = new SICFlash(this); flash.setScd(SopcComponentLib.getInstance().getScdByClassName("altera_avalon_cfi_flash")); sys.removeSystemComponent(this); sys.addSystemComponent(flash); bChanged = true; } else { Logger.logln("GenericTristateController: " + getInstanceName() + " is of unsupported type: " + driverType, LogLevel.WARNING); } } return bChanged; } } -Yeung