Old Content - visit altium.com/documentation

Parent page: Technical Reference - FPGA API

FPGA API: LowLevel API Reference

Contents of this reference:

FPGA Constants
FPGA types
FPGA Functions
FPGA Classes

 

FPGA Constants

FPGAVendorKindStrings

FPGAVendorKindStrings : Array [TFPGAVendorKind] Of TDynamicString =
('Altera',
 'Xilinx',
 'Actel',
 'Lattice');

FPGAVendorPinFilterStrings

FPGAVendorPinFilterStrings : Array[TFPGAVendorKind] Of TDynamicString =
('Altera Pin, Report files (*.pin, *.fit.rpt)|*.PIN;*.FIT.RPT',
 'Xilinx UCF, PAD, CSV files (*.ucf; *.pad; *.csv)|*.UCF;*.PAD;*.CSV',
 'Actel Report files (*.rpt)|*.RPT',
 'Lattice PAD Files (*.pad)|*.PAD'
);

FPGAAttributeNameStrings

FPGAAttributeNameStrings : Array[TFPGAAttributes] Of TDynamicString =
('ARRAY_TO_NUMERIC',
 'CLOCK_BUFFER',
 'CRITICAL',
 'ENUM_ENCODING',
 'FPGA_GSR',
 'INHIBIT_BUF',
 'MACROCELL',
 'NUMERIC_TO_ARRAY',
 'PART_NAME',
 'PINNUM',
 'PROPERTY',
 'UNGROUP',
 'XILINX_BUFG',
 'XILINX_GSR'
);

FPGA types

TFPGAVendorKind

TFPGAVendorKind = (eFPGAVendor_Altera,
                   eFPGAVendor_Xilinx,
                   eFPGAVendor_Actel,
                   eFPGAVendor_Lattice);

TFPGAAttributes

TFPGAAttributes = (eFPGA_ArrayToNumeric   ,
                   eFPGA_ClockBuffer      ,
                   eFPGA_Critical         ,
                   eFPGA_EnumerateEncoding,
                   eFPGA_GSR              ,
                   eFPGA_InhibitBuffer    ,
                   eFPGA_Macrocell        ,
                   eFPGA_NUmericToArray   ,
                   eFPGA_PartName         ,
                   eFPGA_PinNumber        ,
                   eFPGA_Property         ,
                   eFPGA_Ungroup          ,
                   eFPGA_XilinxBUFG       ,
                   eFPGA_XilinxGSR);

FPGA Functions

CreatePinMapForVendorKind

Function CreatePinMapForVendorKind (AVendorKind : TFPGAVendorKind) : TFPGAVendorPinMap;

GetVendorKindFromFileName

Function GetVendorKindFromFileName (AFileName : TDynamicString)  : TFPGAVendorKind;

GetFPGAVendorKind

Function GetFPGAVendorKind(AVendorKind : TDynamicString)  : TFPGAVendorKind;

GetFPGAPinMapFileFromUser

Function GetFPGAPinMapFileFromUser(Var AFileName   : TDynamicString;
                                   Var AVendorKind : TFPGAVendorKind;
                                       LimitFiltersToVendor : Boolean = False) : Boolean;

UpperCasePos

Function UpperCasePos (ASubStr, AString : TDynamicString) : Integer;

GetFPGAPinMap

Function GetFPGAPinMap(AConfirmWarningsFlag     : Boolean;
                       AVendorName, ADeviceName : TDynamicString;
                       APinCount                : Integer) : TFPGAVendorPinMap;

GetConstraintMapper

Function GetConstraintMapper : TConstraintMapper;

FPGA Classes

The FPGA Classes include:

  • TFPGAVendorPin class
  • TFPGAVendorMap class
  • TFPGAAlteraPinMap class
  • TFPGAXilinxPinMap class
  • TFPGAActelPinMap class
  • TFPGALatticePinMap class
  • TConstraintMapper class

TFPGAVendorPin class

Overview

TFGPAVEndorPin Fields
Number
NetName
Mode
PinType
Voltage
SlewRate
DriveStrength
Bank
IsUserNet
TFPGAVendorPin methods
GetDescription
HasPinElectrical
GetPinElectrical
GetPinElectricalString
Destroy
Create
TFPGAVendorPin properties

See also

Fields

Number        : TDynamicString;
NetName       : TDynamicString;
Mode          : TDynamicString;
PinType       : TDynamicString;
Voltage       : TDynamicString;
SlewRate      : TDynamicString;
DriveStrength : TDynamicString;
Bank          : TDynamicString;
IsUserNet     : Boolean;

Methods

Constructor Create(ANumber, ANetName : TDynamicString);
Function    GetDescription         : TDynamicString;
Function    HasPinElectrical       : Boolean;
Function    GetPinElectrical       : TPinElectrical;
Function    GetPinElectricalString : TDynamicString;

Properties

N/A

TFPGAVendorMap class

Overview

TFGPAVendorMap Fields
FAllins
FStatus
FDeviceName
Pins
Chip
Designator
TFPGAVendorMap methods
ConvertName
SkipLine
Create
Destroy
SortBy_Number
SortBy_Name
SetDeviceName
Load
AddPin
GetLongestNetName
TFPGAVendorMap properties

See also

Fields

Private fields
FAllPins    : Boolean;
FStatus     : Boolean;Methods
FDeviceName : TDynamicString;
Public fields
Pins       : TList;
Chip       : TDynamicString;
Designator : TDynamicString;

Methods

Function    ConvertName(AName : TDynamicString) : TDynamicString; Virtual;
Function    SkipLine   (ALine : TDynamicString) : Boolean;        Virtual;
Constructor Create;
Destructor  Destroy; Override;
Procedure   SortBy_Number;
Procedure   SortBy_Name;
Procedure   SetDeviceName(ADeviceName : TDynamicString);
Function    Load(AFileName : TDynamicString) : Boolean;    Virtual;
Function    AddPin(ANumber, ANetName : TDynamicString): TFPGAVendorPin;
Function    GetLongestNetName : TDynamicString;
Function    ContainsAllPins   : Boolean;
Function    GetPinByNumber       (ANumber  : TDynamicString) : TFPGAVendorPin;
Function    GetPinByNetname      (ANetName : TDynamicString) : TFPGAVendorPin;
Function    GetPinNumberForNet   (ANetName : TDynamicString) : TDynamicString; Virtual;
Function    GetPinNumberForBusNet(ANetName : TDynamicString; Range1, Range2 : Integer) : TDynamicString; Virtual;

TFPGAAlteraPinMap class

Overview

TFGPAAlteraPinMap Fields
 
TFPGAAlteraPinMap methods
ConvertName
ConvertMode 
ConvertDrive 
SkipLine         
ParsePinToken
ParseInputToken
ParseOutputToken
ParseBiDirToken
ParseChipStatement
TFPGAAlteraPinMap properties

See also

Fields

N/A

Methods

Function    ConvertName       (AName : TDynamicString) : TDynamicString; Override;
Function    ConvertMode       (AMode     : TDynamicString) : TDynamicString; Virtual;
Function    ConvertDrive      (ADrive    : TDynamicString) : TDynamicString; Virtual;
Function    SkipLine          (ALine : TDynamicString) : Boolean;        Override;
Procedure   ParsePinTokens    (Tokens : TStringList);                    Virtual;
Procedure   ParseInputTokens  (Tokens : TStringList);
Procedure   ParseOutputTokens (Tokens : TStringList);
Procedure   ParseBiDirTokens  (Tokens : TStringList);
Procedure   ParseChipStatement(ALine : TDynamicString);                  Virtual;
Function   Load(AFileName : TDynamicString) : Boolean;    Override;

TFPGAXilinxPinMap class

Overview

TFGPAVendorMap Fields
FDelimiter
TFPGAVendorMap methods
ConvertName     
SkipLine        
ConvertBank     
ConvertMode     
ConvertSlew     
ConvertDrive    
ParseUCFPinTokens
ParsePADPinTokens
LoadUCFFile     
LoadPADFile     
Load
GetPinNumberForNet
StripPinNumberPrefix
TFPGAVendorMap properties

See also

Fields

FDelimiter : Char;

Methods

Function  ConvertName         (AName     : TDynamicString) : TDynamicString; Override;
Function  SkipLine            (ALine     : TDynamicString) : Boolean;        Override;
Function  ConvertBank         (ABank     : TDynamicString) : TDynamicString; Virtual;
Function  ConvertMode         (AMode     : TDynamicString) : TDynamicString; Virtual;
Function  ConvertSlew         (ASlew     : TDynamicString) : TDynamicString; Virtual;
Function  ConvertDrive        (ADrive    : TDynamicString) : TDynamicString; Virtual;
Procedure ParseUCFPinTokens   (Tokens    : TStringList);                     Virtual;
Procedure ParsePADPinTokens   (Tokens    : TStringList);                     Virtual;
Procedure LoadUCFFile         (AFileName : TDynamicString);                  Virtual;
Procedure LoadPADFile         (AFileName : TDynamicString);                  Virtual;
Function  Load(AFileName : TDynamicString) : Boolean;                        Override;
Function  GetPinNumberForNet   (ANetName : TDynamicString) : TDynamicString; Override;
Function  StripPinNumberPrefix(APrefix   : TDynamicString) : Boolean;

TFPGAActelPinMap class

Overview
This class represents the Pin Mapping information of an Actel device. The FPGAActelPinmap class is inherited from the generic TFPGAVendorPinMap class.

TFGPAActelPinMap Fields
 
TFPGAActelPinMap methods TFPGAActelPinMap properties

See also
TFPGAVendorPinMap class.

Fields

N/A

Methods

Function  ConvertName   (AName : TDynamicString) : TDynamicString; Override;
Procedure ParsePinTokens(Tokens : TStringList);                    Virtual;
Function Load(AFileName : TDynamicString) : Boolean;     Override;

TFPGALatticePinMap class

Overview

TFGPALatticePinMap Fields
 
TFPGALatticePinMap methods
ConvertName
ExtractPinNumAndBank 
ExtractStandardAndType
ExtractDriveAndSlew
ParsePADPinTokens
ExtractDriveAndSlew
ParsePADPinTokens
Load
TFPGALatticePinMap properties

See also

Methods

Function  ConvertName (AName : TDynamicString) : TDynamicString; Override;
Function  ExtractPinNumAndBank  (AString : TDynamicString; Var Pin, Bank:         TDynamicString) : Boolean;
Function  ExtractStandardAndType(AString : TDynamicString; Var Standard, PinType: TDynamicString) : Boolean;
Function  ExtractDriveAndSlew   (AString : TDynamicString; Var Drive, Slew:       TDynamicString) : Boolean;
Procedure ParsePADPinTokens     (Tokens : TStringList);
Function  Load(AFileName : TDynamicString) : Boolean;     Override;

TConstraintMapper class

Overview

TConstraintMapper methods
GetVendorConstraintValue
GetGenericConstraintValueForDevice
GetGenericConstraintValueForVendor
Destroy
Create
TConstraintMapper properties

See also

Fields
Methods

Function GetVendorConstraintValue(
             ADeviceName : TDynamicString;
             AConstraintName  : TDynamicString;
             AConstraintValue : TDynamicString) : TDynamicString;
 
Function GetGenericConstraintValueForDevice(
             ADeviceName : TDynamicString;
             AConstraintName  : TDynamicString;
             AConstraintValue : TDynamicString) : TDynamicString;
 
Function GetGenericConstraintValueForVendor(
             AVendorName : TDynamicString;
             AConstraintName  : TDynamicString;
             AConstraintValue : TDynamicString) : TDynamicString;
 
Destructor  Destroy; Override;
Constructor Create(AFileName : TDynamicString);

You are reporting an issue with the following selected text and/or image within the active document:
Altium Designer 免费试用
Altium Designer Free Trial
我们开始吧!首先,您或者您的公司已经在使用Altium Designer了吗?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

既然您在使用Altium Designer,为何仍需要试用?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

好的,实际上您无需下载一个试用版本。

点击下方按钮下载最新版本的Altium Designer安装包

下载Altium Designer 安装包

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

填写下方表格,获取Altium Designer最新报价。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

如果您是Altium维保期内客户,您不需要下载试用版本。

如果您不是Altium维保客户,请填写下方表格免费试用。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

您为何想要试用Altium Designer?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

那您来对地方了!请填写下方表格申请试用吧。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

听上去很棒!您知道我们为学生提供了特殊折扣么?欲知详情,请点击这里。.

同时,请填写下方表格申请免费试用吧。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

好的,您可以下载免费的Altium Designer Viewer查看文档,有效期6个月。

请填写下方表格申请。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

好棒!创作是一件超酷的事情,我们可以为您提供完美的设计软件。

Upverter是一个社区导向的交流平台,专为您这样的创客量身定做。

点击这里看看吧!

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

好的,您可以下载免费的Altium Designer Viewer查看文档,有效期6个月。

请填写下方表格申请。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。