Lattice Radiant: How do I Write values to ROM after implementation using ECO Editor
In order to use the ECO editor tcl command, you must get the mem_id value from the ECO GUI. The tcl command was meant to record/repeat the operation of the GUI. There is no other way than to use the GUI first to check the id values.
Here is the sample flow:
prj_run PAR -impl impl_1 -task PARTrace
eco_config_memory -mem_id {lscc_rom_inst/u_rom/BEHV_MODE.mem} -init_file {C:/Users/crasilo1/Desktop/sample_memory_for_ECO.mem} -format HEX
eco_save_design -udb {C:/Users/crasilo1/Documents/RadiantSampleProjects/sample_v3p0/impl_1/sample_v3p0_impl_1.udb}
prj_run Export -impl impl_1 -task Bitgen
The key here is to overwrite the udb generated by the initial PAR, which follows the format <project_name>_<implementation_name>.udb