Class MIFDumpFormat

java.lang.Object
mars.mips.dump.MIFDumpFormat

public class MIFDumpFormat extends Object
The Memory Initialization File (.mif) VHDL-supported file format This is documented for the Altera platform at www.altera.com/support/software/nativelink/quartus2/glossary/def_mif.html.
Version:
December 2007
Author:
Pete Sanderson
  • Constructor Details

    • MIFDumpFormat

      public MIFDumpFormat()
      Constructor. File extention is "mif".
  • Method Details

    • dumpMemoryRange

      public void dumpMemoryRange(File file, int firstAddress, int lastAddress) throws AddressErrorException, IOException
      Write MIPS memory contents according to the Memory Initialization File (MIF) specification.
      Parameters:
      file - File in which to store MIPS memory contents.
      firstAddress - first (lowest) memory address to dump. In bytes but must be on word boundary.
      lastAddress - last (highest) memory address to dump. In bytes but must be on word boundary. Will dump the word that starts at this address.
      Throws:
      AddressErrorException - if firstAddress is invalid or not on a word boundary.
      IOException - if error occurs during file output.