The maximum project length allowed in Lattice Diamond is same as the maximum allowable path length in Windows operating system which is of 260 characters.
Below are the steps to calculate the project path length in diamond.
Maximum allowable path length = directory_name:\project_path\ {project_name}_{implementation_name}.tcl
Example: Assume project is located in the C directory and the project name is diamond_project.
Tcl file name will be {project_name}_{implementation_name}.tcl
Therefore
Total path_length = C:\diamond_project\diamond_project_diamond_project_synpflify.tcl = 64
In this case path length is 64 Characters and it is within the allowable range.
This size should not exceed the allowable length of 260 characters, if this happens Diamond throws an error in the synthesis stage.
Tcl file is an intermediate file that gets generated when we give synthesis run command.
Tcl file will not get created if the total path length exceeds the allowable range.