US 12,265,122 B1
Memory profiler for emulation
Prashant Kumar Mishra, Karnataka (IN); Kiran Lokhande, Karnataka (IN); Mikhail Bershteyn, New York, NY (US); and Srivatsan Raghavan, Karnataka (IN)
Assigned to SYNOPSYS, INC., Sunnyvale, CA (US)
Filed by Synopsys, Inc., Sunnyvale, CA (US)
Filed on Oct. 12, 2022, as Appl. No. 17/964,742.
Int. Cl. G01R 31/3183 (2006.01); G01R 31/317 (2006.01); G01R 31/3181 (2006.01)
CPC G01R 31/318314 (2013.01) [G01R 31/31722 (2013.01); G01R 31/31813 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for determining a sparse memory size during emulation, the method comprising:
determining, by a profiler memory coupled to a user memory, that one or more pages of the user memory are used by a first test sequence of a testbench during the emulation, wherein the user memory is divided into a plurality of pages;
identifying, by the profiler memory, a first set of page indexes of the one or more pages of the user memory used by the first test sequence based on mapping a page index of the first set of page indexes in the user memory to a corresponding address in the profiler memory;
determining a number of unique pages of the user memory that are used by the first test sequence for the emulation based on the first set of page indexes and the corresponding addresses; and
determining, by a processor, the sparse memory size for the user memory based on the number of unique pages of the user memory that are used by the testbench for the emulation and a page size of the user memory.