A semiconductor integrated circuit device which guarantees the
characteristics of writing to and reading from the built-in memory even
when the manufacturing process conditions are varied, a method of
manufacturing the device, and a medium for storing a processing procedure
for deciding the number of delay circuits built in the device used for
designing. The semiconductor integrated circuit device is provided with a
cache memory which includes a BIST circuit composed of a pattern
generator, a pattern comparator, an output register, a register
controlled by a register control a register write signal; a variable
delay circuit controlled by the register; word lines, and a sense
amplifier enable signal line. The timing for enabling the sense amplifier
is changed and the memory is measured by a BIST circuit at the timing,
thereby deciding the optimal timing.