1.4 Simulation Flow
(Ask a Question)The TVS simulation model updates the TVS macro outputs based on reading
         instructions given in the .mem file or .txt file. The
         file name must be passed to the simulation model for the TVS outputs to toggle. The
         parameter used to store the .mem file name is called “TVS_MEMFILE”. Add
         the following vsim command to pass the file name.
-gTVS_MEMFILE=“PATH_TO_FILE_RELATIVE_TO_SIMULATION_FOLDER”
      .MEM File Format
The following format of the file is in hex:
<simulation time (τ ns) in hexadecimal>
      <value of channel 0 at time τ>
      <value of channel 1 at time τ>
      <value of channel 2 at time τ>
      <value of channel 3 at time τ>
      The .mem file contains the simulation time followed by
         the digital values (16-bit) of the four ADC channels at that time. A value is required for
         the channel even if it is not used. The value can be 0. The simulation starts with all
         channel outputs being 0. The pattern can be repeated several times in the .mem file to
         reflect several values of the channel outputs. The content of the mem file is limited to
         256 lines.
