Hi
For this projest first I built two schematic and then I made two macro model with them and I used these marcomodels in a bigger design as two elemants.
But When simulating my project with Modelsim I had an error that the modelsim don't know my macros and they weren't in modelsim simulation libraries.
for solving the problem, I added those two subcircuits of these two macros to my project...and with this my problem removed.Because now when simulating, modelsim replaced may macros with their subcircuits and simulated them.
be successful