After synthesizing a processor code using Synopsis DC tool
Now I want to initialize 2 rams included in 2 components in this design using .mem files
how do I achieve that using the netlist file I have - the output of synthesizing - because I want to test if synthesizing was done right by testing the same code again on processor
It was easier without before synthesizing just by loading .mem files into those rams and then testing it
Any help
Don't bother loading .mem files; just initialise the memories directly in VHDL.
The simplest method - if they are ROMs - is to declare them as constant arrays. If this declaration is in a separate package you can easily script its creation from a hex file created by a compiler or assembler.
Here is an example to get you started
If they are RAMs, you can call initialise them from the same constant array.
These constructs are correctly handled by even the most primitive synthesis tools I have used in the last five years at least, so I would be very surprised if DC can't do the same.
That initial data must be preserved by the synthesis tool and appear in some form in the netlist. If you can understand that form, you can modify the data if necessary, but it is probably easier to update the source and re-synthesise.