Hello all,
I'm using vivado & trying to create a script that can change files to and from simulation/synthesiable.
Classic example of the use. You have a constant pacakge that has values for simulation, but different values in the synth product. The values are identified by anchors(i.e --@synth_start/--@synth_end) arround the block of code
The problem I'm getting is that the lsearch feature is falling over vhdl commands like
constant x :std_logic_vector(x downto 0) := "00100";
Code:
if {[lsearch -exact $line $add_start]== 0} then {
set add_comment_flag 1
It appears that the
is causing problems with the lsearch.
I've used
however this throws all sorts of crazy syntax ;, \, " etc into the line & makes my search freak out.
Anyone know what I can do to get the search working? Without list freaking out at places where there is a quote followed by some other character.
I don't want to change all the possible vhdl files by manually adding a space after the quotations on the line.
I may be able to give sample code & source later, however for now I do not have access to these.
Regards,
Wesley