7490 - Radiant: How to modify the bitstream USERCODE via scripting flow?

7490 - Radiant: How to modify the bitstream USERCODE via scripting flow?

Users can perform USERCODE modification of the generated bitstream via our deployment tool (ddtcmd.exe) scripting flow.
 
Here is an example TCL script:
==========================
#change directory to where the deployment tool can be invoked:
cd C:/lscc/radiant/2023.2/programmer/bin/nt64

#deployment tool commands
exec ddtcmd -oft -bit -dev LIFCL-40 -if "C:/Users/jmanguba/Desktop/Temp/Radiant/8bit_counter/impl1/8_bit_counter_impl1.bit" -overwriteues on "AAAACCCC" -of "C:/Users/jmanguba/Desktop/Temp/Radiant/8bit_counter/impl1/8_bit_counter_impl1_2nd.bit"
==========================

Example output:



Details on the deployment tool commands used:

exec ddtcmd : invoke deployment tool
-oft <file type>: indicates the file type.
-bit : indicates the file type output to be bitstream.
-dev <device name> : fpga device of the bitstream.
-if <input file path> : file path of the input bitstream
-overwriteues on <value> : Overwrites (or replaces) the USERCODE value contained in the input file with the hex value passed in.
-of <output file path> : file path of the output bitstream.

For more information, check the "Running the Deployment Tool from the Command Line" section of the Lattice Radiant Help.