compiler.device.schema

Compiler data types for device configuration.


const auto schema_version = 1 §
enum MemoryType : uint3 §

Device memory types

Values

  • LUT = 0 §
    

    LUTram / MLAB RAM

  • Block = 1 §
    

    Block RAMs, for example M20K on Intel FPGA

  • Deep = 2 §
    

    Deep RAMs, for example URAM on a Xilinx FPGA

struct MemoryResource §

Specifies the number of each type of RAM provide by a device

Fields

  • MemoryType type_id §
    

    Type of memory resource

  • uint32 num_available §
    

    Number of the memory resources available. 0 here means compiler will not enforce a limit.

struct MemoryConfiguration §

RAM types and configurations supported by the device

Fields

  • MemoryType type_id §
    

    Type of memory resource

  • float32 cost §
    

    Cost of the memory resource. Used in a comparison with array cost to determine whether to use an array (soft logic) or a physical memory

  • uint16 width §
    

    Width of the memory resource

  • uint16 depth §
    

    Depth of the memory resource

enum MemoryInitFileType : uint2 §

Formats for the memory initialization file

Values

  • Mif = 0 §
    

    Memory Initilization File format. Used with Intel/Altera FPGAs.

  • Mem = 1 §
    

    Memory Data File format. Used with Xilinx FPGAs.