Table of
...
Figures
Hierarchy report providing user modules detection
...
Copyright Notice
All the contents of this document are protected by the copyright law. They may not be disclosed to third parties or copied or duplicated in any form without the written consent of NanoXplore.
Introduction
This document is intended to guide users of NanoXplore NXmap Impulse software through all the steps involved in the design flow and the options available in NanoXplore design suite:
nxmap impulse is a graphical interface that allows user to view and compile an existing project.
nxpython is a wrapper around Python executable that allows user to control nxmap impulse software as a wrapper. It fully supports Python syntax, structures and external modules.
The creation of a new project can be performed with both nxmap impulse and nxpython tools.
All commands described in this document for NXpython can be applied to the provided VHDL examples in example folder.
Package
...
Description
The provided nXmap impulse archive contains the following directories:
bin folder contains binary files for each supported Linux distribution
doc folder contains documentation files in pdf format
example folder contains several examples of different projects with design sources in VHDL
lib64 folder contains dynamic libraries and Python modules for each supported Linux distribution and associated Python version
share folder contains additional files (vhdl libraries, simulation libraries, etc...)
Installation
To install nxmapimpulse, the user needs to unpack nxmapnxdesignsuite-VERSION.tar.gz file into the installation directory (e.g. /opt/NanoXplore) using the following command:
Code Block |
---|
$> tar xzf nxmapnxdesignsuite-VERSION.tar.gz -C /opt/NanoXplore |
...
Where servername is the hostname of the server running the license daemon and 27000 is the port the daemon listens to.
Run
...
NXPython
To run nxpython, use the following command:
Code Block |
---|
$> /opt/NanoXplore/NXmap3impulse/VERSION/bin/nxpython |
To use the nanoxmap module in python, user must first call the following command in nxpython:
Code Block | ||
---|---|---|
| ||
from nxmapnxpython import * |
Anchor | ||||
---|---|---|---|---|
|
...
NXPython Specification
Command
...
List and
...
Context
Heraafter a The table of below list all available nxpython commands and the context they affect:
Méthod | Project | Synthesize | Place & Route | Bitstream | STA | Simulation | |
addBank |
|
|
| X |
|
| |
addBanks |
|
|
| X |
|
| |
addBlackBox |
| X |
|
|
|
| |
addDSPLocation |
|
| X |
|
|
| |
addFalsePath |
|
|
|
| X | X | |
addFile | X |
|
|
|
|
| |
addFiles | X |
|
|
|
|
| |
addHSSLLocation | |||||||
addIP | X |
|
|
|
|
| |
addMappingDirective |
| X |
|
|
|
| |
addMaxDelayPath |
|
|
|
| X | X | |
addMemoryInitialization |
|
|
| X |
|
| |
addMinDelayPath |
|
|
|
| X | X | |
addModule |
| X |
|
|
|
| |
addMulticyclePath |
|
|
|
| X | X | |
addPLLLocation |
|
| X |
|
|
| |
addPad |
| X | X |
|
|
| |
addPads |
| X | X |
|
|
| |
addParameter | X |
|
|
|
|
| |
addParameters | X |
|
|
|
|
| |
addPin |
| X | X |
|
|
| |
addPins |
| X | X |
|
|
| |
addRAMLocation |
|
| X |
|
|
| |
addRingLocation |
|
| X |
|
|
| |
addRingLocations |
|
| X |
|
|
| |
addVerilogIncludeDirectories | X |
|
|
|
|
| |
addVerilogIncludeDirectory | X |
|
|
|
|
| |
addVlogDefine | X |
|
|
|
|
| |
addVlogDefines | X |
|
|
|
|
| |
addWFGLocation |
|
| X |
|
|
| |
adjustAperture |
|
| X |
|
|
| |
applySdcFile X |
|
|
| X |
| ||
clearBanks | X |
| X |
|
|
| |
clearPLLsclearFabricPrePlaceConstraints | X | ||||||
clearPLLs |
| X |
|
|
| ||
clearPads X |
| X |
|
|
| ||
clearPins | X |
| X |
|
|
| |
clearWFGs X |
| X |
|
|
| ||
confineModule |
|
| X |
|
|
| |
constrainModule |
| X | X |
|
|
| |
constrainPath |
| X | X |
|
|
| |
createAnalyzer |
|
|
|
| X |
| |
createClock |
|
|
|
| X |
| |
createGeneratedClock |
|
|
|
| X |
| |
createObstruction |
|
| X |
|
|
| |
createRegion |
|
| X |
|
|
| |
createSimulator |
|
|
|
|
| X | |
destroy | X |
|
|
|
|
| |
destroyObstruction | X |
|
|
|
|
| |
destroyRegion | X |
|
|
|
|
| |
developCKGs |
|
|
|
| X |
| |
exportAsIPCore | X |
|
|
|
|
| |
exportRegions | X |
|
|
|
|
| |
exportSites | X |
|
|
|
|
| |
generateBitstream |
|
|
| X |
|
| |
generateSTANetlist | X |
|
|
|
|
| |
getAnalyzer | X | ||||||
getDirectory | X |
|
|
|
|
| |
getErrorCount | X | ||||||
getHierInfo | X | ||||||
getLowskewSignals | X |
|
|
|
|
| |
getProject | X | ||||||
getRemarkCount | X | ||||||
getTimingUnit | X |
|
|
|
|
| |
getTopCellName | X |
|
|
|
|
| |
getVariantName | X |
|
|
|
|
| |
getWarningCount | X | ||||||
initRegister |
|
|
| X |
|
| |
limitLowskew |
|
| X |
|
|
| |
listAvailableLocations | X |
|
|
|
|
| |
load | X |
|
|
|
|
| |
modifyPad | X | ||||||
modifyRegion |
|
| X |
|
|
| |
place | X |
|
|
|
|
| |
progress | X |
|
|
|
|
| |
printError | X | ||||||
printHierInfo | X | ||||||
printRemark | X | ||||||
PrintText | X | ||||||
PrintWarning | X | ||||||
rejectLowskew | X |
| X |
|
|
| |
removeFile | X |
|
|
|
|
| |
removeFiles | X |
|
|
|
|
| |
removeSoftModules | X | ||||||
reportDesignComplexity | X | ||||||
reportInstances | X |
|
|
|
|
| |
reportLowskewSignals | X |
|
|
|
|
| |
reportPorts | X |
|
|
|
|
| |
reportRegions | X |
|
|
|
|
| |
reportRegisters | X |
|
|
|
|
| |
resetTimingConstraints | X |
|
|
|
|
| |
route | X |
|
|
|
|
| |
save | X |
|
|
|
|
| |
setAnalysisConditions |
|
|
|
| X |
| |
setAperture |
|
| X |
|
|
| |
setCaseAnalysis |
|
|
|
| X |
| |
setClockGroup |
|
|
|
| X |
| |
setDescription | X |
|
|
|
|
| |
setDeviceID |
|
|
| X |
|
| |
setDirectory | X |
|
|
|
|
| |
setFalsePath |
|
|
|
| X |
| |
setFocus |
|
| X |
|
|
| |
setGCKCount |
|
| X |
|
|
| |
setInputDelay |
|
|
|
| X |
| |
setMaxDelay |
|
|
|
| X |
| |
setMinDelay |
|
|
|
| X |
| |
setMulticyclePath |
|
|
|
| X |
| |
setOption | X |
|
|
|
|
| |
setOptions | X |
|
|
|
|
| |
setOutputDelay |
|
|
|
| X |
| |
setSite |
|
| X |
|
|
| |
setTopCellName | X |
|
|
|
|
| |
setVariantName | X |
|
|
|
|
| |
synthesize | X |
|
|
|
|
| |
translateAperture |
|
| X |
|
|
|
General commands
This chapter presents the general purpose commands. These commands do not need any object to be called as they are directly defined in the nxmap impulse module.
createProject([workingDirectory])
This method is used to create an empty project object. The project can then be loaded or built.
...
Code Block | ||
---|---|---|
| ||
project = createProject("/path/to/working/directory/") |
getErrorCount()
This function returns the number of errors issued during Synthesize, Place and Route flow steps.
...
Output:
Code Block |
---|
Errors: 0 |
getRemarkCount()
This function returns the number of remarks issued during Synthesize, Place and Route flow steps.
...
Output:
Code Block |
---|
Remarks: 10 |
getWarningCount()
This function returns the number of warnings issued during Synthesize, Place and Route flow steps.
...
Output:
Code Block |
---|
Warnings: 0 |
listOptions()
This method lists all available options for current project.
...
Code Block | ||
---|---|---|
| ||
| Available project options are: | +---------------------------------------------------------------------------+ | | Global | | +-------------------------------+----------+------------------------------+ | | Autosave | Yes | No Yes | | | +ClearStack | No | No Yes | | | Dynamic | No | No Yes | | | +InternalReport | No | No Yes | | | MaxRegisterCount | 2500 | Value must be an unsigned | | | +TimingDriven | No | No Yes | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Synthesis (step 1/2) | | +-------------------------------+----------+------------------------------+ | | DefaultFSMEncoding | OneHot | Binary OneHot OneHotSafe OneHotSafeExtra | | | DefaultRAMMapping | AUTO | AUTO RF RAM RAM_ECC | | | DefaultROMMapping | AUTO | AUTO LUT RF RAM RAM_ECC | | | DisableAssertionChecking | No | No Yes | | | DisableKeepPortOrdering | No | No Yes | | | DisableRAMAlternateForm | No | No Yes | | | DisableROMFullLutRecognition | No | No Yes | | | IgnoreRAMFlashClear | No | No Yes | | | ManageUnconnectedOutputs | Error | Error Power Ground | | | ManageUnconnectedSignals | Error | Error Power Ground | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Synthesis (step 2/2) | | +-------------------------------+----------+------------------------------+ | | DisableAdderBasicMerge | No | No Yes | | | DisableAdderTreeOptimization | No | No Yes | | | DisableAdderTrivialRemoval | No | No Yes | | | DisableDSPAluOperator | No | No Yes | | | DisableDSPFullRecognition | No | No Yes | | | DisableDSPPreOperator | No | No Yes | | | DisableDSPRegisters | No | No Yes | | | DisableLoadAndResetBypass | No | No Yes | | | DisableRAMRegisters | No | No Yes | | | ManageAsynchronousReadPort | No | No Yes | | | ManageUninitializedLoops | No | No Power Ground | | | MappingEffort | High | Low Medium High | | | OptimizedMux | Yes | No Yes | | | -SynthesizingEffort | Medium | Low Medium High | | | -UseSynthesisRetiming | No | No Yes | | | VariantAwareSynthesis | Yes | No Yes | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Place (step 1/5) | | +-------------------------------+----------+------------------------------+ | | BypassingEffort | Medium | Low Medium High | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Place (step 2/5) | | +-------------------------------+----------+------------------------------+ | | -SharingEffort | Medium | Low Medium High | | | -SharingFanout | 100 | 100 | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Place (step 3/5) | | +-------------------------------+----------+------------------------------+ | | CongestionEffort | High | Low Medium High | | | DensityEffort | Low | Low Medium High | | | -PartitioningEffort | Medium | Low Medium High | | | RoutingEffort | Medium | Low Medium High | | | -UnificationEffort | Low | Low Medium High | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Place (step 4/5) | | +-------------------------------+----------+------------------------------+ | | PolishingEffort | High | Low Medium High | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Place (step 5/5) | | +-------------------------------+----------+------------------------------+ | | -DoubleAccess | Yes | No Yes | | | -Permissive | Yes | No Yes | | +-------------------------------+----------+------------------------------+ | +---------------------------------------------------------------------------+ | | Route (step 1/3) | | +---------------------------------------------------------------------------+ | +---------------------------------------------------------------------------+ | | Route (step 2/3) | | +---------------------------------------------------------------------------+ | +---------------------------------------------------------------------------+ | | Route (step 3/3) | | +---------------------------------------------------------------------------+ | +---------------------------------------------------------------------------+ | | Bitstream | | +-------------------------------+----------+------------------------------+ | | ExhaustiveBitstream | No | No Config Context ConfigContext | | | GenerateBitstreamCMIC | No | No Yes | | | -MultiBlock | No | No Yes | | | UnusedPads | Floating | Floating WeakPullUp WeakPullDown | | | -noCfgCtx | No | No Yes | | | -noHeader | No | No Yes | | | -noRun | No | No Yes | | | -noThermalSensor | No | No Yes | | | -noWorkaround | No | No Yes | | | -simpleFrames | No | No Yes | | +-------------------------------+----------+------------------------------+ |
printError(message)
This function is used to print an error message in the nxmap impulse output. This includes terminal output and log file if set. An error message is prefixed by ERROR string so it can be easily found.
...
Code Block |
---|
ERROR | It's a trap! |
printRemark(message)
This function is used to print a remark message in the nxmap impulse output. This includes terminal output and log file if set. An error message is prefixed by REMARK string so it can be easily found.
...
Code Block |
---|
REMARK | This is a remark |
printText([message])
This function is used to print a message in the nxmap impulse output. This includes terminal output and log file if set. When no message is given, method prints a new line in the nxmap impulse output.
Arguments:
Name | Type | Description |
message | string | message to print |
...
Code Block |
---|
| There is no spoon. |
printWarning(message)
This function is used to print a warning message in the nxmap impulse output. This includes terminal output and log file if set. A warning message is prefixed by WARNING string so it can be easily found.
...
Code Block |
---|
WARNING | The cake is a lie. |
setCoreCount(core_count)
This function sets the number of core to use in multi-thread algorithm.
...
Code Block |
---|
| Setting core count to 2 |
setDirAutoChange(change_project_dir)
This function allows to create a user-defined directory to stock the reports created during the execution of the flow.
Arguments:
Name | Type | Description |
change_project_dir | boolean | Change project directory when loading a project file when True (default). Keep the current project directory when False |
...
Code Block | ||
---|---|---|
| ||
p = createProject() setDirAutoChange(False) p.load('my_path/routed-auto.nym') |
setLogDirectory(log_directory)
This function allows to create a user-defined directory to stock the reports created during the execution of the flow.
Arguments:
Name | Type | Description |
log_directory | string | Name of the directory to be created. |
...
Code Block |
---|
| Setting log directory to TestLogDirectory |
usage()
This method displays application usage.
...
Code Block | ||
---|---|---|
| ||
| Usage: | $> nxpython3 | will run nxpython3 in interactive mode | | $> nxpython3 file.py | will run the given python file in nxpython3 in batch mode | | options | several options can be used when running nxpython3. | Options must be placed before the file.py argument. | Any option placed after will be passed to the file.py. | -g or -gui execute nxpython3 with graphical support | -c or -core CORE execute nxpython3 with maximum core number | -v or -version display nxpython3 version | -h or -help display this help |
version()
This method displays application version.
...
Code Block |
---|
| Copyright (C) 2010-2020, NanoXplore, All rights reserved |
Expected expressions for NXpython methods
NxPython methods get a standardized format for arguments expecting a path.
This section describes the expression format specific to NX.
Impacted methods:
The following methods allow regular expressions / wildcard formats in order to match with multiple instances:
...
· getRegisters
· setSite
· …
Maintainability:
It is no longer necessary to escape (with the ‘\’ character) special characters for these methods.
...
However, the old format is still compliant and still operates.
User use:
In a usual way, a copy/paste of a path from a log file works for the constraint.
...
addMappingDirective(getModels(“add_`[1-2][0-9]`u_*”), …)
Project related methods
This section presents the methods related to the project object.
addBank(name, dict)
The method addBank allows user to configure a specific bank of the FPGA. The pads inside the defined bank will be used first to configure inputs/outputs of the HDL module. For the given bank, the configuration has two basic arguments name and dict.
...
Code Block | ||
---|---|---|
| ||
project.addBank('IOB0', {'voltage': '2.5'}) |
addBanks(dict)
The method addBanks allows user to configure several banks of the FPGA to be used for configuration of inputs/outputs of the HDL module. addBanks use a dictionary as an argument.
...
Code Block | ||
---|---|---|
| ||
ioBanks = { 'IOB0' : {'voltage': '2.5'} , 'IOB1' : {'voltage': '2.5'} , 'IOB2' : {'voltage': '2.5'} , 'IOB3' : {'voltage': '2.5'} , 'IOB4' : {'voltage': '2.5'} , 'IOB5' : {'voltage': '2.5'} , 'IOB6' : {'voltage': '2.5'} , 'IOB7' : {'voltage': '2.5'} , 'IOB8' : {'voltage': '2.5'} , 'IOB9' : {'voltage': '2.5'} , 'IOB10' : {'voltage': '2.5'} , 'IOB11' : {'voltage': '2.5'} , 'IOB12' : {'voltage': '2.5'} } project.addBanks(ioBanks) |
addBlackBox(name, type, mapping, interface)
The method addBlackBox allows users to define customized mapping of certain HDL modules on the specific FPGA blocks and to dispose the interface of the blocks.
...
Code Block | ||
---|---|---|
| ||
project.addBlackBox('myMicroCode', 'ROM', 'RF', 'AD(addr),DO(micro),CK(clk)') |
addBlackBox() : for Preplaced IP
The idea is to offer the possibility to the user to reuse the result of an nxmap impulse flow as an IP in a top design.
...
The user can then reuse the result of this first flow in another design. named top, which instanciates the IP entity several times.
Nxmap Impulse will use the result of synthesis and place from the first flow and replicate then in the top flow
...
Among the instances of the ring, some are not supported yet :PLL
, WFG
, CR5
, SOC_IF
, HSSL
addDSPLocation(pattern, place)
This method is used to select the spot in which a DSP should be placed before launching Place step execution.
...
Note |
---|
The pattern argument does not support regular expressions |
addFalsePath(from_list, to_list)
This method is used to specify the false path for the timing paths. This constraint is used by timing driver algorithms and static timing analysis.
...
In order to match with all registers, it is possible to specify empty string ('') for parameters from_list or to_list.
addFile([library], file)
This method is used to add a HDL source file to the project. The file can be added to a specific library by passing its name as the first optional library argument. The default library is work.
...
Code Block | ||
---|---|---|
| ||
project.addFile('src/simple.vhd') project.addFile('src/complex.vhd:VHDL_93') project.addFile('src/simple_verilog.v:VERILOG_95') or project.addFile('myLib', 'src/simple.vhd') |
addFiles([library], fileList)
This method is used to add several HDL source files to the project. The files can be added to a specific library by passing its name as the first optional library argument. The default library is work.
...
List of HDL source files can be in any order. nxpython will sort them such that dependencies are satisfied.
addHSSLLocation(pattern,location)
This method is used to set the spot in which a HSSL should be set.
Placement of HSSL elements can also be done during instantiation (with location generic in source code).add
Arguments:
Name | Type | Description |
pattern | string | A pattern to match the HSSL controller instance name. The path must be set entirely. |
location | string | the requested location for the HSSL block. Valid locations are HSSLn |
...
Code Block |
---|
project.addHSSLLocation('i_hssl_esistream|i_HSSL_ONLY|i_NX_HSSL_FULL|ctrl', 'HSSL2') |
addMappingDirective(name, type, mapping)
This method is used to add a mapping directive for Synthesis flow step which overrides the default nxpython mapping behavior for a specific HDL module or instance.
...
Note |
---|
It can be useful “*” in getModels and getInstances method as following: project.addMappingDirective(getModels('*myFifo*'), 'RAM', 'RAM') The first "*" is used because your model is defined in a VHD library. The second "*" is used because your "myFifo" model uses some generic map and thus is renamed to myFifo(#id) by nxmapimpulse. |
Note |
---|
Mapping a RAM into DFF is only available with getModels but not getInstances. |
addMaxDelayPath(from_list, to_list, delay)
This method is used to specify the maximum delay path for the timing paths. It is used by timing driver algorithms and static timing analysis.
Arguments:
Name | Type | Description |
from_list | string | the command which specifies how to get a list of timing path starting points. A valid timing starting point is a register. |
to_list | string | the command which specifies how to get a list of timing path ending points. A valid timing ending point is a register. |
delay | integer | the required maximum delay value in ps for specified paths. |
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.addMaxDelayPath(getRegister('UUT1|Gen_seq[3].seq_i|temp_reg[1]'), getRegister('UUT2|dout_reg[61]'), 3900) |
The name argument can be a regular expression matching a HDL module or instance name. In order to specify whether to search for module or instance, the user has to use the getModels(...) or getInstances(...) keyword.
The available file formats are:
...
Type
addMemoryInitialization(name, type, file)
This method is used to specify a file that will be used to initialize a specific memory instance.
Arguments:
Name | Type | Description |
name | string | the name of the instance that is intended to be initialized from a file. |
type | string | the file format (further details below). |
file | integer | the name of the file to load (further details below). |
The name argument can be a regular expression matching a HDL module or instance name. In order to specify whether to search for module or instance, the user has to use the getModels(...) or getInstances(...) keyword.
The available file formats are:
Type | Format |
NX | NanoXplore Proprietary format |
...
Code Block |
---|
0000 1000 100 10 1 |
addMinDelayPath(from_list, to_list, delay)
This method is used to specify the minimum delay path for the timing paths. It is used by timing driver algorithms and static timing analysis.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.addMinDelayPath(getRegister('UUT1|Gen_seq[3].seq_i|temp_reg[23]'), getRegister('UUT1|Gen_seq[3].seq_i|temp_reg[22]'), 1200) |
Anchor | ||||
---|---|---|---|---|
|
This method is used to add a HDL module definition to the current project that contains all HDL logic elements including within the model given in argument.
...
hierarchy.rpt also allows to check if pattern expression provided for model and instance arguments have been fully accepted by nxpython tool. User must especially be careful about the regular expression operator '*', which is accepted whereas the can use the wildcard operator '*' is not supported. See full details with an incorrect example.
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.addModule('mAlu*', 'alu', 'alu-%') #incorrect pattern project.addModule('mCntrl', 'cntrl', 'cntrl-%') project.addModule('mRegister*', 'register', 'cntrl-%') #incorrect pattern |
Anchor | ||||
---|---|---|---|---|
|
...
Note |
---|
Example:
Code Block | ||
---|---|---|
| ||
project = createProject()
project.addModule('mAlu*', 'alu', 'alu-%') #correct pattern
project.addModule('mCntrl', 'cntrl', 'cntrl-%')
project.addModule('mRegister*', 'register', 'cntrl-%') #correct pattern |
Note |
---|
This method is only available before Synthesize flow. The model argument expects a regular expression. |
addMulticyclePath(from_list, to_list, cycle_count)
This method is used to specify the multicycle path for the timing paths. It is used by timing driver algorithms and static timing analysis.
Arguments:
...
Name
...
Type
...
Description
...
from_list
This method is only available before Synthesize flow. The model argument expects a regular expression. |
addMulticyclePath(from_list, to_list, cycle_count)
This method is used to specify the multicycle path for the timing paths. It is used by timing driver algorithms and static timing analysis.
Arguments:
Name | Type | Description |
from_list | string | the command which specifies how to get a list of timing path starting points. A valid timing starting point is a register. |
to_list | string | the command which specifies how to get a list of timing path ending points. A valid timing ending point is a register. |
cycle_count | unsigned | An unsigned value that represents a number of cycles the data path must have for setup check. |
...
Note |
---|
This method is only available for path(s) whose source and target registers are clocked by the same clock ! |
Anchor | ||||
---|---|---|---|---|
|
This method allows user to configure an input/output of the HDL module into specific pad of the FPGA. For the given pad, the configuration has two basic argument (name and parameters).
...
LVCMOS (Default)
LVDS
LVDS_STR
SSTL
HSTL
Note |
---|
NXmap3 Impulse only supports ‘Undefined’ value for drive option when ‘LVDS’ standard is selected. |
...
The I/O differential (Default False) activation is conditioned only by the LVDS depending on standard:
standard | differential |
LVDS | True (mandatory) |
LVDS_STR | True (mandatory) |
LVCMOS | False |
SSTL | FalseTrue |
HSTL | FalseTrue |
In case of differential mode, the user must only declare the “_P” pad. The associated differential “_N” pad will be automatically set by the software with the same parameters.
...
2mA (only allowed for LVCMOS standard - Default for LVCMOS standard)
4mA (only allowed for LVCMOS standard)
8mA
16mA
I (only allowed for SSTL and HSTL standard - LVCMOS standard)
12mA (only allowed for LVCMOS standard)
16mA (only allowed for LVCMOS standard)
I (only allowed for SSTL and HSTL standard - Default for SSTL and HSTL standard)
II (only allowed for SSTL and HSTL standard)
Undefined (only allowed for LVDS standard - Default for LVDS standard)
Note |
---|
12mA drive is only allowed for NG-ULTRA. |
Note |
---|
16mA drive is not allowed for a bank configured in 1.2V in NG-ULTRA. |
As an example for NG-Large variant, the following array gives a trade-off between the maximum frequency reachable and noise limitation plus power consumption:
...
None
PullDown
PullUp (Default)
Keeper
Note |
---|
Note that only ‘None’ and ‘PullUp’ values for weakTermination are allowed in NG-MEDIUM. |
...
The termination key specifies the output impedance of the pad in Ohms. In differential mode, the impedance is two times the value. It’s specified in Ohms, in the range 30 to 80 Ohms (Default is set to minimum value).
Min and max values depend on the variant and the bank voltage.
Voltage (V) | NG-MEDIUM | NG-LARGE | NG-ULTRA | |||
Rmin (Ω) | Rmax (Ω) | Rmin (Ω) | Rmax (Ω) | Rmin (Ω) | Rmax (Ω) | |
1.2 | X | X | X | X | 30 | 84 |
1.5 | X | X | X | X | 31 | 88 |
1.8 | 31 | 85 | 30 | 85 | 32 | 92 |
2.5 | 35 | 100 | 34 | 102 | X | X |
3.3 | X | X | X | X | X | X |
Note |
---|
Can only be set if terminationReference is set. |
...
Note |
---|
Merging a register into the pad (DFR using instead of DFF) can be rejected for one of the following reasons:
|
When a key is not in the dictionary, its value is set to default, i.e. 0 for inputDelayLine/outputDelayLine/signalSlope/outputCapacity and False for all the boolean arguments.
...
Code Block | ||
---|---|---|
| ||
#LVDS implementation project.addPad( 'spw_rxd[0]' : {'location': 'IOB19_D16P', standard: LVDS, 'differential': True, 'termination': '50','terminationReference':'VT', 'turbo': True, 'drive': 'undefined'}) project.addPad( 'spw_rxs[0]' : {'location': 'IOB19_D17P', standard: LVDS, 'differential': True, 'termination': '50','terminationReference':'VT','turbo': True, 'drive': 'undefined'}) project.addPad( 'spw_txd[0]' : {'location': 'IOB19_D14P', standard: LVDS, 'differential': True, 'slewRate': 'Fast', 'drive': 'undefined'}) project.addPad( 'spw_txs[0]' : {'location': 'IOB19_D15P', standard: LVDS, 'differential': True, 'slewRate': 'Fast', 'drive': 'undefined'}) |
addPads(pads)
This method is used to configure inputs/outputs of the HDL module into specific pads of the FPGA. The argument is a dictionary that associates the HDL input/output name to a dictionary, which can contain some keys (location, type, weakTermination, slewRate, termination, inputDelayLine, outputDelayLine, differential, terminationReference, turbo) as defined in addPad(name, parameters).
...
If “pads” are not configured of configured incompletely, nxmap impulse will randomly place non assigned ports on the FPGA
addPin(name, location)
This method allow user to configure an input/output of the HDL module into specific pin of the embedded FPGA. This method is reserved to embedded variants of FPGA.
...
Code Block |
---|
project.addPin('A', 'TUI200') |
addPins(pins)
This method allow user to configure inputs/outputs of the HDL module into specific pins of the embedded FPGA. This method is reserved to embedded variants of FPGA.
...
Code Block | ||
---|---|---|
| ||
pins = { 'A': 'TUI200', 'B': 'TUI201' } project.addPins(pins) |
Anchor | ||||
---|---|---|---|---|
|
This method allows user to specify the value of the top design generic parameters.
...
Note |
---|
|
Anchor | ||||
---|---|---|---|---|
|
In case of a large number of parameters, a parameter dictionary can be created consisting of the name of the parameter as a key and its respective value. Both name and value must be string.
...
Note |
---|
|
addPLLLocation(pattern, location)
This method is used to set the spot in which a PLL should be set.
...
Code Block |
---|
#placing pll0, pll1, pll2, pll3 in different CKGs project.addPLLLocation('pll0', 'CKG1.PLL1') project.addPLLLocation('pll1', 'CKG2.PLL1') project.addPLLLocation('pll2', 'CKG3.PLL1') project.addPLLLocation('pll3', 'CKG4.PLL1') #placing a PLL located in a sub-hierarchy of the design project.addPLLLocation('FIR_MF|CLKG|PLL_20_160', 'CKG4.PLL1') |
addRAMLocation(pattern, place)
This method is used to select the spot in which a RAM should be placed. This method must be used and declared before launching Place step execution.
...
Note |
---|
The pattern argument does not support regular expressions |
addRingLocation(name, location)
This method is used to place an instance in the I/O ring of the FPGA. addRingLocation can be used instead of addPLLLocation, addWFGLocation or addPin.
...
Code Block | ||
---|---|---|
| ||
project.addRingLocation('PLL0','CKG1.PLL1') project.addRingLocation('WFG_3','CKG4.WFG_C1') |
addRingLocations(dictionary)
In case of a large number of instances to be placed in the I/O Ring, a dictionary can be created consisting in the name of the instance as a key and its association location. Both name and location must be string.
...
Code Block |
---|
rings = { 'PLL0' : 'CKG1.PLL1', 'PLL1' : 'CKG2.PLL1', 'WFG_0' : 'CKG1.WFG_C1', 'WFG_1' : 'CKG2.WFG_C1' } project.addRingLocations(rings) |
addVerilogIncludeDirectory(directory)
This method is used to add an extra directory containing Verilog files to the project. This is used when the included files are external to the working directory.
...
Code Block | ||
---|---|---|
| ||
project.addVerilogIncludeDirectory('include’) or project.addVerilogIncludeDirectory('../lib’) |
addVerilogIncludeDirectories(directoryList)
This method is used to add several extra directories containing Verilog files to the project. This is used when the included files are external to the working directory.
...
Code Block |
---|
project.addVerilogIncludeDirectories(['include’, ‘../lib’]) |
addVlogDefine(name,value)
This method is used to add a parameter definition for Verilog files.
...
Code Block | ||
---|---|---|
| ||
project.addVlogDefine('G_DATA_SIZE’,'8') |
addVlogDefines(dictionnary)
This method is used to add parameters definition for Verilog files.
...
Code Block | ||
---|---|---|
| ||
project.addVlogDefines({'G_DATA_SIZE’:'8','G_ADDR_SIZE’:'16'}) |
addWFGLocation(name, location)
This method is used to set the spot in which a WFG should be set.
...
Code Block | ||
---|---|---|
| ||
project.addWFGLocation('wfg_0', 'CKG2.WFG_M3) |
adjustAperture(regionName, above, left, right, below)
This method is used to move the aperture of a region or the whole design.
...
Code Block | ||
---|---|---|
| ||
project.setAperture(6,8,14,12) project.ajustAperture(2,3,2,2) p.createRegion('region_0',7,8,9,10) project.ajustAperture('region_0',2,3,2,2) |
applySdcFile(filePath)
This method is used to apply a Synopsys Design Constraints (SDF) file to a project for STA or TimingDriven purpose.
...
Code Block | ||
---|---|---|
| ||
project.applySdcFile(./sdc_directory/constraints.sdc) |
clearBanks()
clearBanks() method remove all bank specification previously added in the project.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.addBank('IOB0', {'voltage': '2.5'}) project.clearBanks() |
...
clearFabricPrePlaceConstraints(regionName)
Clears all preplacing constraints for fabric elements. It removes the impact of the following constraints:
setSite
addRAMLocation
addDSPLocation
It gives the ability to clear all Fabric elements constraints and add new ones.
If no argument is set, constraints for the whole fabric are cleared.
Arguments:
Name | Type | Description |
regionName | string | Region Name. Optional argument. |
Example:
Code Block |
---|
project = createProject()
project.addRAMLocation('module0|RAM', 'CGB[3x2]')
project.clearFabricPreplacedConstraints()
project.addRAMLocation('module0|RAM', 'CGB[4x2]') |
clearPLLs()
clearPLLs() method remove specification and location for PLLs previously added in the project.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.addPLLLocation('pll_0', 'CKG2.PLL1') project.clearPLLs() |
clearPads()
clearPads() method remove all inputs/outputs of the HDL module previously configured into specific pads of the FPGA.
...
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() pads = { 'clk', {'location': 'IO_B1D02P', 'standard': 'LVCMOS', 'drive' :'2mA'}, 'in_row', {'location': 'IO_B1D04P', 'standard': 'LVCMOS', 'drive' :'2mA', 'weakTermination': 'PullUp', 'slewRate': 'Slow', 'termination': '50', 'inputDelayLine': 1, 'outputDelayLine': 2, 'differential': False, 'turbo': True} project.addPads(pads)) project.clearPads() |
clearPins()
clearPins() method remove all inputs/outputs of the HDL module previously configured into specific pins of the embedded FPGA
...
Code Block |
---|
project = createProject() pins = { 'A': 'TUI200', 'B': 'TUI201' } project.addPins(pins) project.clearPins() |
clearWFGs()
clearWFGs() method remove specification and location for WFGs previously added in the project.
...
Code Block |
---|
project = createProject() project.addWFGLocation('wfg_0', 'CKG2.WFG_M3) project.clearWFGs() |
Anchor | ||||
---|---|---|---|---|
|
This method allows to confine a module into a user defined region of the FPGA.
...
Note |
---|
The module name generated by nxpython automatically starts incremental numbering with ‘-1’. ‘-0’ numbering will not be recognized in name argument when using confineModule('name-0', ‘region’). |
constrainModule(hierarchy, moduleName, type, leftCol, topRow, width, height, regionName, exclusive)
This method constrains a HDL module into a specific region. The aim of constrainModule is to provide a unique and simple function to perform the whole region driven flow described in Creating and handling regions section.
...
Note |
---|
The Creating and handling regions flow using the three methods addModule(), createRegion() and confineModule() is still available. |
constrainPath(sourceList, targetList, moduleName, type, leftCol, topRow, width, height, regionName, exclusive)
This method constrains a virtual module into a specific region. The aim of this function is to identify source and destination registers in order for all logic elements (LUT, carry) between these registers to be placed into a region created with the regionName argument.
...
Note |
---|
The difference between constrainModule() and constrainPath() id the first one is used to constrain at instance level whereas the second one allows to constrain at register to register level |
createAnalyzer
If a targeted design is already routed, user can launch static timing analysis by creating a timing analyzer.
...
Code Block |
---|
project = createProject() project.load('/home/user/example/vhdl/simple/routed.nym') analyzer = project.createAnalyzer() |
createClock(target, name, period, [rising, falling])
This method is used to create a clock constraint of a timing point. This constraint is used by timing driver algorithms and static timing analysis.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.createClock(getRegisterClock(reg1'), 'clk', 10000) or project.createClock(getPort(Clk'), 'clk', 10000) or project.createClock(getClockNet('Clk'), 'clk', 10000, 0, 5000) |
createGeneratedClock(source, target, name, relationship)
This method is used to create an internally generated clock constraint at a timing point. This constraint is used by timing driver algorithms and static timing analysis.
...
The relationship generated by above command is:
Anchor | ||||
---|---|---|---|---|
|
...
createObstruction(name, column1, row1, column2, row2)
This method is used to create an obstruction object which will be removed from nxmap impulse resources for Place & Route steps.
...
Code Block |
---|
project = createProject() project.load('synthesize.nym') project.createObstruction('obstr', 10, 2, 24, 6) |
Anchor | ||||
---|---|---|---|---|
|
This method is used to create a region among the FPGA resources where HDL elements will be placed during Place step.
...
Code Block | ||
---|---|---|
| ||
project = createProject() p.createRegion('ALU', 13, 6, 14, 6) p.createRegion('REGISTER', 22, 6, 23, 6, True) |
createSimulator()
This method is used to create a simulator object. A simulator object is used to simulate the project with a specified testbench.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('/home/user/example/vhdl/simple/routed.nym') analyzer = project.createSimulator() |
destroyObstruction(name)
This method is used to destroy a given obstruction object.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('synthesize.nym') project.createObstruction('obstr', 10, 2, 24, 6) project.destroyObstruction('obstr') |
destroyRegion(name)
This method is used to destroy a given region.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.createRegion('CNTRL', 4, 6, 5, 6) project.destroyRegion('CNTRL') |
developCKGs()
This method automatically creates a generated clock constraint on each output of the PLLs and WFGs in current project.
...
developCKGs() allows the user to create generated clocks for CKGs' output pins. For example, before activating a generated clock whose base clock is driven by a WFG, user needs to launch this method for generating the base clock.
Without this method, nxmap impulse automatically derives a clock on each output of the CKGs after activating all the given timing constraints.
...
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('routed.nym') project.createClock(getClockNet('CLK'), 'clk', 8000, 0, 4000) project.developCKGs() project.createGeneratedClock(getWFGOutput('wfg_clk[1]'),getRegister('data_reg[0]'), 'clk1_div2', {'DivideBy': 2}) |
destroy()
This method is used to destroy the project.
...
Code Block |
---|
Display after destruction Traceback (most recent call last): File "test.py", line 22, in <module> project.display() nxmapimpulse.error: Invalid Request: Obsolete object |
display()
This method is used to open current project in nxmap impulse graphic user interface. It can be called several times from the same Python script.
...
Note |
---|
nxpython does not need an X11 environment to be run, but the display() method does. In order to use the display() method, user must add the -gui or -g on the nxpython command line. This option of the tool (not the script) as shown in the following example: $> nxpython -gui script.py |
exportAsIPCore(file, options)
This method is used to export the synthesized design to an IPCore. An IPCOre is a HDL description (at NX components level) that can be given as part of new source design to nxmap impulse.
The export is different from the save() method as it is done during the second step of synthesis.
...
Name | Description |
coreName | the name of the top entity in the IPCore (default is top cell name during synthesis) |
obfuscate | if set to ‘Yes’, the generated code is obfuscated (default is ‘No’) |
encrypt | used to encrypt the generated file using IEEE P1735 standard. If set to ‘None’, the file is not encrypted, otherwise it is and the value corresponds to the software targeted: ‘NX’: to reuse file in nxmap impulse ‘MGC’: to reuse file in QuestaSim ‘All’: to reuse the file in nxmap impulse and / or QuestaSim |
author | author information used in the encrypted file header |
license | license information used in the encrypted file header |
...
Code Block |
---|
project = createProject() project.load('/home/user/example/vhdl/simple/native.nym') options = { ‘coreName’: ‘IPCore’, ‘encrypt’: ‘All’ } p.exportAsIPCore(‘IPCore.vhd’, options) p.synthesize() |
exportRegions()
This method is used to export all constrainModule constraints in the console. It can be useful if the user modified the region location or size and want to get new constraints to copy them in the script.
...
Code Block | ||
---|---|---|
| ||
project.constrainModule('|-> timer [ Inst_timer ]', 'TIMER_MOD', 'Hard', 13, 12, 19, 3, 'TIMER', False) project.modifyRegion('TIMER', 10, 8, 19, 3) project.exportRegions() |
exportSites(projectVariable,fileName)
This method is used to export all setSite constraints in a file. It can be useful in order to keep all TILE locations.
...
Code Block | ||
---|---|---|
| ||
project.exportSites('p','site_constraints.py') |
Anchor | ||||
---|---|---|---|---|
|
This method is used to save the bitstream configuration file to disk. The extension of the target file must be .nxb
...
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('/home/user/example/vhdl/simple/routed.nym') project.generateBitstream('bitstream.nxb') |
generateSTANetlist(filePath,condition)
This method is used to generate routed netlist and SDF file.
...
Code Block | ||||
---|---|---|---|---|
| ||||
project.route() project.generateSTANetlist(./output_files/routed_sta_file) |
...
setDeviceID
...
(id)
This method is used to change the Device ID in the bitstream header before generating it.
...
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('/home/user/example/vhdl/simple/routed.nym') p.setDeviceID(10) #Set Device ID to 0xA project.generateBitstream('bitstream.nxb') |
...
getAnalyzer()
This method returns the project current directory. This directory is used as root for all relative paths passed as argument of generic functions and/or methods. The default value of the directory is the current working directorycurrent analyzer associated to the project to manage STA.
This method takes no argument.
...
Code Block | ||
---|---|---|
| ||
project = createProject() directorya = project.getDirectorycreateAnalyzer() |
...
project.getAnalyzer().launch() |
getDirectory()
This method returns the project current directory. This directory is used as root for all relative paths passed as argument of generic functions and/or methods. The default value of the directory is the current working directory.
This method takes no argument.
Example:
Code Block | ||
---|---|---|
| ||
project = createProject()
directory = project.getDirectory() |
getHierInfo()
This method returns the detailed hierarchy into a dictionary variable.
This method takes no argument.
Example:
Code Block |
---|
project = createProject()
hierarchy = project.getHierInfo()
printText(hierarchy) |
getLowskewSignals(ignoreTop, showCandidates)
This method is used to get lowskew signals or potential candidates to be lowskew signals. It gives a table of impacted lobes for each lowskew signal
...
Note |
---|
This method work only for NG-ULTRA family. |
getProject()
This method returns the project object.
...
Code Block | ||
---|---|---|
| ||
createProject() project = getproject() |
getTimingUnit()
This method returns the timing unit used in STA.
...
Code Block |
---|
printText(project.getTimingUnit()) |
getTopCellName()
This method returns the name of the top HDL module. If the HDL module is defined inside a library, the name is prefixed by the name of the library followed by a # character.
...
Output:
Code Block |
---|
myLib#simple |
getVariantName()
This method returns the variant of the project. The default value of the variant is 'NG-MEDIUM'.
...
Output:
Code Block |
---|
NG-MEDIUM |
initRegister(command, value)
This method is used to write in registers during the generation of bitstream.
...
Code Block |
---|
project = createProject() project.load('/home/user/example/vhdl/simple/routed.nym') project.initRegister('SPI_CTRL', '0x01f4003f') project.generateBitstream('bitstream.nxb') |
limitLowskew(signal, lobes)
This method is used to limit a lowskew signal to be used in only specified lobes.
...
Code Block |
---|
project.limitLowskew('clk_right','Rx1,Rx2,Rx3,Rx4') |
listAvailableLocations(name)
This method is used to print all available pads for a bank or for all banks of a variant .
...
Code Block |
---|
project.listAvailableLocations() project.listAvailableLocations('IOB10') |
load(file)
This method is used to load a previously saved project from disk. The input format (file extension) must be .nym (nxmap impulse archive).
Arguments:
Name | Type | Description |
file | string | nxmap impulse archive file (extension must be .nym). |
...
Code Block | ||
---|---|---|
| ||
project = createProject('/home/user/example/vhdl/simple') project.load('synthesized.nym') |
...
modifyPad(name,
...
parameters)
This method is used to modify the location or the size configuration of an existed regionpad.
This method takes the same parameters as addPad method.
Parameters that only affect the configuration and not the placing can be changed at any time.
Arguments:
Name | Type | Description | |||
name | string | IO name of the region. | column1 | integer | the number of the . |
parameters | dictionary | Configuration parameters. |
Note |
---|
After synthesis, the following parameters cannot be modified : location, differential and registered. |
Example:
Code Block | ||
---|---|---|
| ||
project.addPad('output[0]',{'location':'IOB10D09P', 'standard': 'LVCMOS', 'drive' :'2mA', 'slewRate':'Slow'})
project.modifyPad('output[0]',{'drive' :'16mA', 'slewRate':'Fast'}) |
modifyRegion(name, column1, row1, width, height, exclusive)
This method is used to modify the location or the size of an existed region.
Arguments:
Name | Type | Description |
name | string | name of the region. |
column1 | integer | the number of the most left column of the region. |
row1 | integer | the number of the most top row of the region. |
width | integer | the width of the region (in number of columns). |
height | integer | the height of the region (in number of rows). |
exclusive | boolean | region is exclusive or not |
Example:
Code Block |
---|
project.constrainModule('|-> timer [ Inst_timer ]', 'TIMER_MOD', 'Hard', 13, 12, 19, 3, 'TIMER', False) project.modifyRegion('TIMER', 10, 8, 19, 3) |
...
place
...
()
This method is used to run the place algorithm on a project.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('/home/user/example/vhdl/simple/synthesized.nym') project.setOption('TimingDriven', 'Yes') project.place() |
...
printHierInfo(
...
)
This method allows to progress through project to a given flow step.
Arguments:
...
Name
...
Type
prints the detailed hierarchy of a project with the module matched and all instances per module.
This methods takes no argument.
Example:
Code Block | ||
---|---|---|
| ||
project = createProject()
project.progress('Synthesize', 3)
project.printHierInfo() |
progress(step, number)
This method allows to progress through project to a given flow step.
Arguments:
Name | Type | Description |
step | string | name of the global step [Synthesis, Place or Route]. |
number | unsigned | number in the global step [(1 to 2), (1 to 5) or (1 to 3)]. Synthesize step takes (1 to 2) for number, Place step takes (1 to 5) and Route step takes (1 to 3) for number. |
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('/home/user/example/vhdl/simple/synthesized.nym') project.progress('Place', 3) |
rejectLowskew(signal)
This method avoids local lowskew signal to be converted in global lowskew signal.
...
Code Block | ||
---|---|---|
| ||
project.rejctLowskew('sub_module0|local_reset') |
removeFile(libName, filePath)
This method allows to remove a file from a project.
...
Code Block | ||
---|---|---|
| ||
project.addFile('work','sub_modul_0.vhd') project.addFile('work','sub_modul_1.vhd') project.removeFile('work','sub_modul_0.vhd') project.removeFile(sub_modul_1.vhd') |
removeFiles()
This method allows to remove files from a project.
...
Code Block | ||
---|---|---|
| ||
project.addFiles('work', ['sub_modul_0.vhd', 'sub_modul_1.vhd']) project.removeFiles('work', ['sub_modul_0.vhd', 'sub_modul_1.vhd']) |
removeSoftModules(libName, fileList)
This method allows to remove all HDL soft modules from a project.
...
Note |
---|
Soft modules can be removed only at Synthesis 2/3 step or before. |
reportDesignComplexity(html_file)
This method reports the design complexity, clock domain by clock domain, indicating the logic depth for all paths of the design and illustrates it with a chart in HTML format:
Name | Type | Description |
html_file | string | output HTML file name. |
Example:
Code Block |
---|
project.reportDesignComplexity('design_complexity.html') |
The output HTML file looks like:
...
Anchor | ||||
---|---|---|---|---|
|
This method reports the instances utilization of the programmed design on the current variant. Three tables are printed. The first one contains values for all types of instances. The instances are grouped by categories:
...
Output:
Anchor | ||||
---|---|---|---|---|
|
...
reportLowskewSignals(logfile)
This method reports the lowskew signals:
Name | Type | Description |
logfile | string | path to the logfile to report (without .log extension). |
Example:
Code Block |
---|
project.reportLowskewSignals('lowskew_report') |
Anchor | ||||
---|---|---|---|---|
|
This method reports the ports found in HDL source and the ones manually added by user in the project. The report displays the following information:
Name | Name of the HDL port |
Direction | Direction of the port (can be input, output or inout) |
Location | Pad location associated to the port (can be set by the user or automatically set by nxmap impulse) |
Type | Type of the associated pad |
SlewRate | Slew rate value of the associated pad |
InputDelayLine | Input delay line of the associated pad |
OutputDelayLine | Output delay line of the associated pad |
Differential | True if the associated pad is in differential mode |
Turbo | True if the associated pad is in turbo mode |
...
Code Block |
---|
project = createProject() project.load('/home/user/example/vhdl/simple/placed.nym') project.reportPorts() |
Anchor | ||||
---|---|---|---|---|
|
This method reports occupied resources by HDL elements within every region created in the FPGA.
...
The report displays the amount and percentage placed in the created region:
Anchor | ||||
---|---|---|---|---|
|
...
resetTimingConstraints()
This method is used to reset all timing constraints for current project.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('/home/user/simple/routed.nym') project.resetTimingConstraints() |
Anchor | ||||
---|---|---|---|---|
|
This method is used to run the route algorithm on a project.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('/home/user/example/vhdl/simple/placed.nym') project.setOption('TimingDriven', 'Yes') project.route() |
Anchor | ||||
---|---|---|---|---|
|
This method is used to save the current project into a nxmap impulse archive (.nym), a design netlist (.v or .vhd) or to generate a sdf file containing delays of the design supporting bestcase, worstcase and typical scenarios.
...
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('native.nym') project.synthesize() project.save('synthesized.nym') project.save('synthesized.vhd') project.route() project.save(‘routed.vhd’) project.save('sdf_file_bestcase.sdf','bestcase') #generate a sdf file defining bestcase scenario project.save('sdf_file_worstcase.sdf','worstcase') #generate a sdf file defining worstcase scenario project.save('sdf_file_typical.sdf','typical') #generate a sdf file defining typical scenario project.save(‘routed.sdf’) |
setAnalysisConditions(conditions)
This method is used to specify the chip conditions for static timing analysis.
...
Code Block | ||
---|---|---|
| ||
project.setAnalysisConditions(WorstCase) |
Anchor | ||||
---|---|---|---|---|
|
This method is used to define the size of aperture. The default size value is bounded to the Fabric dimensions.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('synthesize.nym') project.setAperture(10, 2, 24, 6) |
setCaseAnalysis(value, net_list)
This method is used to specify a constant logic value to the given tests.
...
Setting a case value on a net results in disabling timing analysis through the emitter pin and all the receiver pins of the net. It means that timing paths through those pins are not considered.
The constant value is propagated thro
setClockGroup(group1_list, group2_list, option)
This method is used to specify which clocks are not related. This constraint is used by timing driver algorithms and static timing analysis.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.createClock(getClockNet(CLOCK[1]'), 'clk1', 2700) project.createClock(getClockNet(CLOCK[2]'), 'clk2', 5000, 0, 2000) project.setClockGroup(getClock('clk1'),getClock('clk2'), 'exclusive') |
setDescription(description)
This method is used to set a description to a project.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.setDescription('NXmapImpulse project for training') |
setDirectory(directory)
This method is used to change project directory.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.setDirectory('./new_dir') |
Anchor | ||||
---|---|---|---|---|
|
This method is used to specify the position of the focus.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('synthesize.nym') project.setFocus(4, 4) |
setGCKCount(count)
This method is used to limit the number of GCK at the end of Placing step 2.
...
Code Block | ||
---|---|---|
| ||
project.setGCKCount(20) |
setInputDelay(clock, clock_mode, minimum_delay, maximum_delay, port_list)
This method specifies the data arrival times at the specified input ports relative to the clock. The clock must refer to a clock name in the design. This constraint is used by timing driven algorithms and static timing analysis.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.createClock(getClockNet('CLK'), 'CLK', 8000) project.setInputDelay(getClock('CLK'), 'rise', 1000, 1500,getPort('RST')) |
Anchor | ||||
---|---|---|---|---|
|
This method is used to set the value of a nxpython option. An option can be set at any time of the design flow.
...
The available options are:
Name | Default | Description |
'Autosave' | 'Yes' | Enable automatic protect save after each flow step. |
'BypassingEffort' | 'Medium' | Specify the DFF load and reset spreading level into the low-skew network (can be 'Low', 'Medium' or 'High'): Low: all Load and Resetare sent in low skew Medium: |
Impulse choose an effective balance High: all Load and Reset are routed in common parts ( high routing constraint) | ||
'CMICLatency' | '0' | Additional delay between 2 CMIC scans. Expressed in number of BSM clock cycles. |
'CongestionEffort' | 'High' | Specify the routing resources limit per tile (can be 'Low', 'Medium' or 'High'):
|
'Dynamic' | 'No' | Refresh view while algorithms are running. |
'DefaultFSMEncoding' | 'OneHot' | Default encoding of finite state machine (can be 'OneHot', 'OneHotSafe', 'OneHotSafeExtra' or 'Binary'): |
|
|
Example for binary encoding with 3 states:
Example for one hot encoding with 3 states:
| ||||||
'DefaultRAMMapping' | 'AUTO' | Default mapping of RAM (can be 'AUTO', 'RF', 'RAM' or 'RAM_ECC'). | ||||
'DefaultROMMapping' | 'AUTO' | Default mapping of ROM (can be 'AUTO', 'LUT', 'RF', 'RAM' or 'RAM_ECC'). | ||||
'DensityEffort' | 'Low' | Specify the instance resources allowed per tile (can be 'Low', 'Medium' or 'High'):
| ||||
'DisableAdderBasicMerge' | 'No' | Disable carry optimization around adders and subtractors. | ||||
'DisableAdderTreeOptimization' | 'No' | Disable adder mux reordering and adder tree balancing. | ||||
'DisableAdderTrivialRemoval' | 'No' | Disable simplification of adder that could fit in 1 or 2 LUTs. | ||||
'DisableAssertionChecking' | 'No' | Deactivate VHDL assertions. | ||||
'DisableDSPAluOperator' | 'No' | Disable merge of ALU within inferred DSP. | ||||
'DisableDSPFullRecognition' | 'No' | Disable inference of DSP. | ||||
'DisableDSPPreOperator' | 'No' | Disable merge of pre-operator within inferred DSP. | ||||
'DisableDSPRegisters' | 'No' | Disable merge of registers within inferred DSP. | ||||
'DisableRegisterMergeInDspForAdd' | ‘No’ | Disable merge of registers in DSP when used as adder | ||||
'DisableKeepPortOrdering' | 'No' | Disable keep port ordering used in source files when generating HDL netlists. | ||||
'DisableLoadAndResetBypass' | 'No' | Disable load and reset signal bypass on DFF. | ||||
'DisableRAMAlternateForm' | 'No' | Disable recognition of registered address read port. | ||||
'DisableROMFullLutRecognition' | 'No' | Disable merge of ROM recognized as LUT with logic. | ||||
'DisableRAMRegisters' | 'No' | Disable merge of registers within inferred RAM. | ||||
‘ExhaustiveBitstream’ | ‘No’ | Can be used to force generation of all configurations and contexts in bitstream (can be ‘No’, ‘Config’, ‘Context’ or ‘ConfigContext’). | ||||
'GenerateBitstreamCMIC' | 'No' | Generate bitstream with CMIC. | ||||
‘InitializeContext’ | 'No' | Initialize all DFF, RFB and RAM of the chip. It increases the bitstream size. | ||||
'IgnoreRAMFlashClear' | 'No' | Do not output error when recognizing a RAM with flash clear. | ||||
'ManageAsynchronousReadPort' | 'No' | If 'Yes', detect asynchronous read port in memories and repair it in synchronous read port. The read port receive the reversed write clock. It can slow down the design and sometimes may cause invalid behavior. | ||||
'ManageUnconnectedOutputs' | 'Error' | Undriven outputs of HDL modules are treated as ‘Error', ' |
Ground', 'Power' or 'Preserve’. Error: Generates an error Ground: Connect to ' |
0' Power |
: Connect to '1' Preserve: Preserve attribute set to avoid optimization | ||
'ManageUnconnectedSignals' | 'Error' | Undriven internal signals of HDL modules are treated as ‘Error', ' |
Ground', 'Power' or 'Preserve’. Error: Generates an error Ground: Connect to ' |
0' Power |
: Connect to '1' Preserve: Preserve attribute set to avoid optimization | ||
'ManageUninitializedLoops' | 'No' | Remove reset-less looped DFF causing extra-mapping and 'X' values in simulation (can be 'No', 'Power, ''Ground'). |
'MappingEffort' | 'Low' | Effort for an optimized mapping in terms of primitive instance merging and simplification (can be 'Low', 'Medium' or 'High'):
|
'MaxRegisterCount' | '2500' | Maximum number of registers handled per HDL module (not the whole design) by the synthesizer. |
‘OptimizedMux’ | ‘Yes’ | If set to 'Yes', |
impulse will identify and convert every mux in the corresponding optimized 4-LUT structure. | ||||||
'PartitioningEffort' | 'Medium' | Define the size of the netlist subset which will be further optimized for timing goals achievement (can be 'Low', 'Medium' or 'High') :
| ||||
'PolishingEffort' | 'Medium' | It allows to regenerate locally a signal in TILE which in normal way should be provide by an others TILE in order to reduce utilization of routing resources.
| ||||
'ReadyOffWithSoftReset' | ‘Yes’ | Only available for NG-ULTRA variant. It links the ready falling edge to soft reset enabling during the power off reset sequence. | ||||
‘ReplicationApproval’ | ‘Yes’ | Allow replication in a close TILE if not possible in the current TILE.
| ||||
'RoutingEffort' | 'Medium' | Routing Optimization level in terms of routing instances (can be 'Low', 'Medium' or 'High'):
| ||||
‘SaveTiming' | ‘No’ | Save STA in .nym project files
| ||||
‘Seed’ | ‘1789’ | Seed for placing algorithm start. Depending on the seed, instances are created in a different order and placed so. Can be used in order to generate several Place & Route with the same synthesized project. | ||||
'SetRunAfterContext' | ‘No’ | Indicate the sequence in the bitstream between run (routing instances enable) and context (initialization values for DFF, RFB, RAM).
| ||||
'SharingEffort' | 'Medium' | Enables the insertion in lowskew network signal with fanout above the SharingFanout threshold.
Medium and High have the same impact. | ||||
'SharingFanout' | '100' | Fanout threshold to insert signal in lowskew network. This option has an impact only if SharingEffort is set to Medium or High. | ||||
‘SimplifyRegions’ | ‘Yes’ | Clear module and region database:
| ||||
‘SytemOutputDriven’ | 'No' | Increase placing close to the ring for instances communicating with.
| ||||
'TimingEffort' | ‘High’ | Indicates level of iterations for TimingDriven algorithm.
| ||||
'UnusedPads' | 'Floating' | State in which the pads must be set when not used. Values can be 'Floating','WeakPullUp', 'WeakPullDown'. Note that when the state is different from 'floating', all the pads are serialized in the bitstream. Note that ‘WeakPulldown’ value is not available on NX1H35S component. | ||||
‘VariantAwareSynthesis’ | ‘Yes’ | If set to ‘Yes’ synthesis will automatically map to equivalent resource when specific resource is depleted. For example using DSP when there are no more CY available (can be ‘Yes’ or ‘No’). |
Note |
---|
Bigger the ‘MaxRegisterCount’ value, bigger the memory consumption used by the synthesizer. |
...
Name | Synthesize | Place | Route | Bitstream |
'Autosave' | X | X | X | X |
'BypassingEffort' |
| X |
|
|
'CongestionEffort' |
| X |
|
|
'CMICLatency' | X | |||
'Dynamic' |
| X | X |
|
'DefaultAssertionChecking' |
|
|
|
|
'DefaultFSMEncoding' | X |
|
|
|
'DefaultRAMMapping' | X |
|
|
|
'DefaultROMMapping' | X |
|
|
|
'DensityEffort' |
| X |
|
|
'DisableAdderBasicMerge' | X |
|
|
|
'DisableAdderTreeOptimization' | X |
|
|
|
'DisableAdderTrivialRemoval' | X |
|
|
|
'DisableAssertionChecking' | X |
|
|
|
'DisableDSPAluOperator' | X |
|
|
|
'DisableDSPFullRecognition' | X |
|
|
|
'DisableDSPPreOperator' | X |
|
|
|
'DisableDSPRegisters' | X |
|
|
|
‘DisableRegisterMergeInDspForAdd’ | X | |||
'DisableKeepPortOrdering' | X |
|
|
|
'DisableLoadAndResetBypass' | X |
|
|
|
'DisableRAMAlternateForm' | X |
|
|
|
'DisableRAMRegisters' | X |
|
|
|
'DisableROMFullLutRecognition' | X |
|
|
|
‘ExhaustiveBitstream’ |
|
|
| X |
'GenerateBitstreamCMIC' |
|
|
| X |
'IgnoreRAMFlashClear' | X |
|
|
|
'InitializeContext' | X | |||
'ManageAsynchronousReadPort' | X |
|
|
|
'ManageUnconnectedOutputs' | X |
|
|
|
'ManageUnconnectedSignals' | X |
|
|
|
'ManageUninitializedLoops' | X |
|
|
|
'MappingEffort' | X |
|
|
|
'MaxRegisterCount' | X |
|
|
|
‘OptimizedMux’ | X |
|
|
|
'PartitioningEffort' |
| X |
|
|
'PolishingEffort' |
| X |
|
|
'ReadyOffWithSoftreset' | X | |||
‘ReplicationApproval’ | X | |||
'RoutingEffort' |
| X |
|
|
'SetRunAfterContext' | X | |||
‘SimplifyRegions’ | X | |||
‘SystemOutputDriven’ | X | |||
‘TimingEffort’ | X | |||
'UnusedPads' |
|
|
| X |
‘VariantAwareSynthesis’ | X |
|
|
|
...
Code Block | ||
---|---|---|
| ||
project.setOption('MappingEffort', 'Medium') |
setOptions(options)
This method allows user to set the values of several nxpython options. The options can be set at any time of the design flow.
...
Code Block | ||
---|---|---|
| ||
options = { 'MappingEffort': 'Medium', 'AdderToDSPMapThreshold': '12' } project.setOptions(options) |
setOutputDelay(clock, clock_mode, minimum_delay, maximum_delay, port_list)
This method specifies the data arrival times at the specified output ports relative to the clock. The clock must refer to a clock name in the design. This constraint is used by timing driven algorithms and static timing analysis.
...
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('routed.nym') project.createClock(getClockNet('CLK'), 'CLK', 8000) project.setOutputDelay(getClock('CLK'), 'rise', 1000, 1500, getPorts('dataout[`[0−5]`]')) |
setSite(instancePattern, siteName)
This method is used to place a set of register/LUT/Carry instances into a specific TILE site.
...
Code Block |
---|
p.setSite('i_cpt_0|s_cpt_out_reg[0]','TILE[2x2]')#DFF p.setSite('i_cpt_1|LessThan_L23/lut_0','TILE[5x2]')#LUT LESS_THAN p.setSite('i_cpt_2|add_L24_stage1','TILE[7x2]')#CY ADD |
setTopCellName([library], name)
This method is used to set the name of the HDL top module. If the HDL module is defined inside a library, the name of the library can be passed as the first argument.
...
Note |
---|
The name of the HDL top module library are case sensitive. |
setVariantName(variant)
This method is used to set the variant of the project. The default value of the variant is 'NG-MEDIUM'.
...
Code Block |
---|
project = createProject() project.setVariantName('NG−MEDIUM') project.setVariantName('NG−LARGE') project.setVariantName('NG−ULTRA') |
Anchor | ||||
---|---|---|---|---|
|
This method is used to synthesize the HDL source files and realize the technology mapping against nxpython library.
...
Code Block |
---|
project = createProject() project.load('native.nym') project.synthesize() |
translateAperture(regionName,horizontal,vertical)
This method is used to move the aperture of a region or of the whole design.
...
Code Block |
---|
project = createProject() project.translateAperture('SUB_REGION_0',1,2) project.translateAperture(3,4) |
...
Simulation related methods
This section presents the methods related to of the analyzer simulator object. The This object controls the static timing analysissimulation of the design.
...
addTestBench([library], testBench)
This method is used to destroy the analyzer object.
This method takes no argument.
...
add a testBench file. The file can be added to a specific library by passing its name as the first optional argument 'library'. The default library is 'work'.
Arguments:
Name | Type | Description |
library | string | Name of the HDL library that contains the testbench file. |
testBench | string | Testbench file relative to the project directory. |
Example:
Code Block | ||
---|---|---|
| ||
project = createProject()
project.load('/home/user/example/vhdl/simple/routed.nym')
analyzer = project.createAnalyzer()
analyzer.launch()
analyzer.destroy() |
...
simulator.addTestBench(‘testbench.vhd’)
or
simulator.addTestBench(‘myLib’, ‘testbench.vhd’) |
addTestBenchs([library], fileList)
This method is used to run the static timing analysis.
The analyzer computes a maximum of 'searchPathsLimit' paths for each domain, considering only the paths which slack is less than or equal to 'maximumSlack'.
Temperature and voltage can also be supplied to adjust timing values.
When not given, the parameters take their default valuesadd several testbench files. The files can be added to a specific library by passing its name as the first optional argument library. The default library is work.
Arguments:
Name | Type | Description |
library |
dictionary
Keys are the names of the parameters to set (see following table), values must match the type specified.
...
string | Name of the HDL library that contains the testbench file. | |
fileList | list | List of testbench files relative to the project directory. |
Example:
Code Block | ||
---|---|---|
| ||
simulator.addTestBenchs([‘testbench1.vhd’, ‘testbench2.vhd’])
or
simulator.addTestBenchs(‘myLib’, [‘testbench1.vhd’, ‘testbench2.vhd’]) |
addWave(wave)
This method is used to add a signal which will be displayed in vsim. It is also possible to add all the available waves by passing '*' as argument.
Arguments:
Name | Type | Description |
searchPathLimit
unsigned
maximum number of paths computed for each domain.
(default value is 10)
maximumSlack
integer
maximum reportable slack in ps.
(default is unlimited)
conditions
string
‘bestcase’ : Voltage = typical core voltage + 0.1V
Temperature = -40°C
'typical’ : Voltage = typical core voltage
Temperature = 25°C
‘worstcase’ : Voltage = typical core voltage - 0.1V
Temperature = 125°Cwave | string | Name of the signal. |
Example:
Code Block | ||
---|---|---|
| ||
simulator.addWave(‘*’)
or
simulator.addWave(‘A’) |
addWaves(wavelist)
This method is used to add several signals which will be displayed in vsim.
Arguments:
Name | Type | Description |
waveList | list | List of signal. |
Example:
Code Block | ||
---|---|---|
| ||
analyzer = project.createAnalyzer()
parameters = { 'searchPathLimit': 15, 'conditions': 'worstcase'}
analyzer.launch (parameters)
parameters = { 'searchPathLimit': 15, ‘maximumSlack’ : 500, 'conditions': 'worstcase' }
analyzer.launch (parameters) |
Note |
---|
The project step must be at the minimum “prepared” to run this method. |
Launching timing analyzer steps
Step 1, Creating Analyzer:
...
simulator.addWaves([‘A’, ‘B’, ‘O’]) |
destroy()
This method is used to destroy the simulator object.
This method takes no argument
Once the simulator is destroyed every python variable referencing it becomes obsolete so nxpython behavior is safe.
Example:
Code Block | ||
---|---|---|
| ||
analyzer = project.createAnalyzersimulator.destroy() |
Step 2, Launching Static Timing Analysis:
Static Timing Analysis can be launched using the following command:
Code Block |
---|
analyzer.launch()
or
analyzer.launch(parameters) |
Please check the previous section launch(parameters) for more information on how to use the launch() function.
Step 3, Generating Static Timing Analysis reports:
In nxpython, a number of reports (.timing) can be produced presenting the results in the form of timing domains, critical paths, violation details, etc... The explanation of these reports can be found in the section Timing reports.
Simulation related methods
This section presents the methods of the simulator object. This object controls the simulation of the design.
addTestBench([library], testBench)
...
launch(graphical)
This method is used to run the simulation.
To run the simulation, the simulator object must be fully initialized. You must at least have specified the testbench files and the testbench top cell.
The simulation is launched on a netlist representing the current state of the project.
If a simulation is launched when the project is on its native state, the source files must have been added to the project in the right compile order. Otherwise the simulation will fail.
Arguments:
Name | Type | Description |
graphical |
boolean |
Name of the HDL library that contains the testbench file.
testBench
string
Specify if the vsim GUI should be launched or not. |
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.load(‘routed.nym’) simulator = project.addTestBenchcreateSimulator(‘testbench.vhd’) simulator.setTestBenchTop(‘testbench’) or simulator.addTestBench(‘myLib’, ‘testbench.vhd’) simulator.launch(True) |
...
setDuration(duration)
This method is used to add several testbench files. The files can be added to a specific library by passing its name as the first optional argument library. The default library is work.set length in time of the simulation. If not specified (or set to ‘’), vsim will be launched with run -all.
Arguments:
Name | Type | Description |
duration | string |
Duration of the |
fileList
list
List of testbench files relative to the project directory.
simulation. |
Example:
Code Block | ||
---|---|---|
| ||
simulator.addTestBenchs([‘testbench1.vhd’, ‘testbench2.vhd’])
or
simulator.addTestBenchs(‘myLib’, [‘testbench1.vhd’, ‘testbench2.vhd’]) |
...
setDuration(‘250ns’) |
setTestBenchTop(testBenchTop)
This method is used to add a signal which will be displayed in vsim. It is also possible to add all the available waves by passing '*' as argumentset the top cell name of the testbench.
Arguments:
Name | Type | Description |
testBenchTop | string |
Top cell of the |
testbench. |
Example:
Code Block | ||
---|---|---|
| ||
simulator.addWavesetTestBenchTop(‘*’) or simulator.addWave(‘A’) |
...
‘testbench’) |
setWorkingDirectory(workingDirectory)
This method is used to add several signals which will be displayed in vsim.set the working directory of the simulation
Arguments:
Name | Type | Description |
workingDirectory |
list
string | Working directory, relative to the project directory. |
Example:
Code Block | ||
---|---|---|
| ||
simulator.addWaves([‘A’, ‘B’, ‘O’]) |
...
setWorkingDirectory(‘simulation’) |
Argument related methods
getClock(clock_name)
This argument method is used to destroy the simulator object.
This method takes no argument
Once the simulator is destroyed every python variable referencing it becomes obsolete so nxpython behavior is safe.
Example:
Code Block | ||
---|---|---|
| ||
simulator.destroy() |
launch(graphical)
This method is used to run the simulation.
To run the simulation, the simulator object must be fully initialized. You must at least have specified the testbench files and the testbench top cell.
The simulation is launched on a netlist representing the current state of the project.
If a simulation is launched when the project is on its native state, the source files must have been added to the project in the right compile order. Otherwise the simulation will fail.
Arguments:
...
Name
...
Type
...
Description
...
graphical
...
boolean
...
Specify if the vsim GUI should be launched or not.
get the clock from a given clock name. A valid clock should be a clock created by command createClock.
Arguments:
Name | Type | Description |
clock_name | string | the name of the clock used to get the valid clock. |
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.load(‘routed'routed.nym’nym') simulator = project.createSimulator() simulator.setTestBenchTop(‘testbench’) simulator.addTestBench(‘testbench.vhd’) simulator.launch(True) |
setDuration(duration)
...
createClock(getClockNet('CLOCK[1]'), 'clk1', 2700)
project.createClock(getClockNet('CLOCK[2]'), 'clk2', 5000, 0, 2000)
project.setClockGroup(getClock('clk1'), getClock('clk2'), 'exclusive') |
getClockNet(clock_net_name)
This argument method is used to get the net from a given clock net name. It is used by createClock method to specify a clock related point as argument.
Arguments:
Name | Type | Description |
clock_net_name | string |
the name of the |
net clock. The path must be set entirely. |
Example:
Code Block | ||
---|---|---|
| ||
simulator.setDuration(‘250ns’) |
setTestBenchTop(testBenchTop)
...
project = createProject()
project.load('routed.nym')
project.createClock(getClockNet('CLOCK[1]'), 'clk1', 2700)
project.createClock(getClockNet('CLOCK[2]'), 'clk2', 5000, 0, 2000) |
getClocks(clock_name_expression)
This argument method is used to set the top cell name of the testbench.
Arguments:
...
Name
...
Type
...
Description
...
testBenchTop
...
string
...
Top cell of the testbench.
Example:
Code Block | ||
---|---|---|
| ||
simulator.setTestBenchTop(‘testbench’) |
setWorkingDirectory(workingDirectory)
This method is used to set the working directory of the simulation
Arguments:
...
Name
...
Type
...
Description
...
workingDirectory
...
string
...
Working directory, relative to the project directory.
Example:
Code Block | ||
---|---|---|
| ||
simulator.setWorkingDirectory(‘simulation’) |
Argument related methods
getClock(clock_name)
This argument method is used to get the clock from a given clock name. A valid clock get the clocks from a given clock name expression. A valid clock should be a clock created by command createClock.
Arguments:
Name | Type | Description |
clock_name_expression | string | the name expression of the clock used to get the |
list of clocks. |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('routed.nym') project.createClock(getClockNet('CLOCK[1]'), 'clk1', 2700) project.createClock(getClockNet('CLOCK[2]'), 'clk2', 5000, 0, 2000) project.setClockGroupcreateClock(getClockgetClockNet('clk1CLOCK[3]'), getClock('clk2'), 'exclusive') |
getClockNet(clock_net_name)
This argument method is used to get the net from a given clock net name. It is used by createClock method to specify a clock related point as argument.
Arguments:
...
Name
...
Type
...
Description
...
clock_net_name
...
string
...
the name of the net clock. The path must be set entirely.
Example:
Code Block | ||
---|---|---|
| ||
project = createProject()
project.load('routed.nym')
project.createClock(getClockNet('CLOCK[1]'), 'clk1', 2700)
project.createClock(getClockNet('CLOCK[2]'), 'clk2', 5000, 0, 2000) |
...
, 'test_clkA', 5000, 0, 2000)
project.createClock(getClockNet('CLOCK[4]'), 'test_clkB', 5000, 0, 2000)
project.setClockGroup(getClocks('clk*'), getClocks('test_clk*'), 'exclusive')
project.setClockGroup(getClocks('clk[1-2]'), getClocks('test_clk`[AB]`'), 'exclusive') |
getInstances(intance_name)
This argument method is used to get the clocks from a given clock name expression. A valid clock should be a clock created by command createClockinstances from an instance name. It can be used by some nxpython methods (addMappingDirective, addMemoryInitialization).
Arguments:
Name | Type | Description |
instance_name |
string | the name |
of the |
instance used to get the |
valid instance. All regular expressions are allowed and special characters must be escaped. |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.loadaddMappingDirective(getInstances('routed.nymsmul_4|mult_S') project.createClock(getClockNet('CLOCK[1]'), 'MUL', 'clk1DSP', 2700) project.createClock(getClockNet('CLOCK[2]'), 'clk2', 5000, 0, 2000) project.createClock(getClockNet('CLOCK[3]'), 'test_clkA', 5000, 0, 2000) project.createClock(getClockNet('CLOCK[4]'), 'test_clkB', 5000, 0, 2000) project.setClockGroup(getClocks('clk*'), getClocks('test_clk*'), 'exclusive') project.setClockGroup(getClocks('clk[1-2]'), getClocks('test_clk`[AB]`'), 'exclusive') |
...
) |
Instance name must match the following pattern: 'PATHNAME|INSTANCENAME'.
It can be useful to use "*" in getInstances method as following:
project.addMappingDirective(getInstances('*myInstance'), 'RAM', 'RAM')
The first "*" is used because your instance is defined in a path.
The list of all the instances identified by impulse from your design is available in the log file operators.rpt in logs directory.
It is also possible to get the list of all the instances identified by impulse using “*” expression as instance name in getInstances method, as following:
project.addMappingDirective(getInstances('*'), 'RAM', 'RAM')
This way, you will see all the available instances in the general.log file in logs directory.
getModels(model_name)
This argument method is used to get the instances models from an instance a model name. It can be used by some nxpython methods (addMappingDirective, addMemoryInitialization).
Arguments:
Name | Type | Description |
model_name | string | the name of the |
model used to get the valid |
model. All regular expressions are allowed and special characters must be escaped. |
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.addMappingDirective(getInstancesgetModels('smul_4|mult_SmyTest_myFifo'), 'MULRAM', 'DSPDFF') |
...
It can be useful to use "*" in getInstances getModels method as following:
project.addMappingDirective(getInstancesgetModels('*myInstancemyFifo*'), 'RAM', 'RAM')
The first "*" is used because your instance model is defined in a pathVHD library.
The second "*" is used because your "myFifo" model uses some generic map and thus is renamed to myFifo(#id) by impulse.
The list of all the instances models identified by nxmap impulse from your design is available in the log file operators.rpt in logs directory.
It is also possible to get the list of all the instances models identified by nxmap impulse using “*” expression as instance model name in getInstances getModels method, as following:
project.addMappingDirective(getInstancesgetModels('*'), 'RAM', 'RAM')
This way, you will see all the available instances models in the general.log file in logs directory.
...
getPort(
...
port_name)
This argument method is used to get the models port from a model given port name. It can be used by some nxpython methods (addMappingDirective, addMemoryInitialization)Some nxpython methods need a port as argument.
Arguments:
Name | Type | Description |
port_name | string | the name of the |
port used to get the valid |
port. The path must be set entirely. |
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.addMappingDirective(getModels('myTest_myFifoload('routed.nym') project.createClock(getClockNet('CLK'), 'RAMCLK', 'DFF') |
It can be useful to use "*" in getModels method as following:
...
8000) project.setInputDelay(getClock('CLK'), ' |
...
The first "*" is used because your model is defined in a VHD library.
The second "*" is used because your "myFifo" model uses some generic map and thus is renamed to myFifo(#id) by nxmap.
The list of all the models identified by nxmap from your design is available in the log file operators.rpt in logs directory.
It is also possible to get the list of all the models identified by nxmap using “*” expression as model name in getModels method, as following:
project.addMappingDirective(getModels('*'), 'RAM', 'RAM')
This way, you will see all the available models in the general.log file in logs directory.
getPort(port_name)
This argument method is used to get the port from a given port name. Some nxpython methods need a port as argument.
Arguments:
...
Name
...
Type
...
Description
...
port_name
...
string
...
the name of the port used to get the valid port. The path must be set entirely.
Example:
Code Block |
---|
rise', 1000, 1500, getPort('RST')) |
getPorts(port_name_expression)
This argument method is used to get the ports from a given port name expression. Some nxpython methods need a list of ports as argument.
Arguments:
Name | Type | Description |
port_name_expression | string | the name expression of the port used to get the list of ports. |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('routed.nym') project.createClock(getClockNet('CLK'), 'CLK', 8000) project.setInputDelaysetOutputDelay(getClock('CLK'), 'rise', 1000, 1500, getPortgetPorts('RSTdataout[`[0−5]`]')) |
...
getRegister(
...
register_name
...
)
This argument method is used to get the ports register from a given port register name expression. Some nxpython methods need a list of ports register as argument.
Arguments:
Name | Type | Description |
register_name |
string | the name |
of the |
register used to get the |
valid register. The path must be set entirely. |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
project = createProject() project.load('routed.nym') project.createClockaddFalsePath(getClockNetgetRegister('CLKUUT1|Gen_seq[3].seq_i|temp_reg[1]'), 'CLK', 8000) project.setOutputDelay(getClock('CLK'), 'rise', 1000, 1500, getPorts('dataout[`[0−5]`]')) |
getRegister(register_name)
This argument method is used to get the register from a given register name. Some nxpython methods need a register as argument.
Arguments:
...
Name
...
Type
...
Description
...
register_name
...
string
...
the name of the register used to get the valid register. The path must be set entirely.
Example:
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.addFalsePath(getRegister('UUT1|Gen_seq[3].seq_i|temp_reg[1]'), getRegister('UUT2|dout_reg[61]')) |
getRegisterClock(register_name)
This argument method is used to get the register clock from a given register name. Some nxpython methods need a clock as argument.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.createClock(getRegisterClock('reg1'), 'clk', 10000) |
getRegisters(register_name_expression)
This argument method is used to get the registers from a given register name expression. Some nxpython methods need a list of registers as argument.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.addFalsePath(getRegisters('UUT1|Gen_seq[3].seq_i|temp_reg[`[0-9]`]'), getRegister('UUT2|dout_reg[61]')) |
getRegistersByClock(clock_name)
This argument method is used to get all the registers from the same clock domain. Clock must be created before.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.createClock(getClockNet('clk1'),'clk1',20000,0,15000) project.addFalsePath(getRegistersByClock('clk1'), getRegister('UUT2|dout_reg[61]')) |
getWFGOutput(wfg_name)
This argument method is used to get the wfg clock from a given wfg name. Some nxpython methods need a clock as argument.
...
Code Block | ||
---|---|---|
| ||
project = createProject() project.load('routed.nym') project.createClock(getClockNet('CLK'), 'clk', 8000, 0, 4000) project.developCKGs() project.createGeneratedClock(getWFGOutput('wfg_clk[1]'), getRegister('data_reg[0]'), 'clk1_div2', {'DivideBy': 2}) |
Full script example:
This chapter presents the full Python script of the provided VHDL 'simple' example.
...
Code Block | ||||
---|---|---|---|---|
| ||||
import os import sys from nxmapnxpython import * dir = os.path.dirname(os.path.realpath(__file__)) project = createProject(dir) project.setVariantName('NG-MEDIUM') project.setTopCellName('WOB_MAC_FIR') project.addFiles([ 'src/src_WOBUL/SUB_ADD.vhd', 'src/src_WOBUL/SIN_TAB_8K.vhd', 'src/src_WOBUL/SIN_TAB_8K_360.vhd', 'src/src_WOBUL/WOBUL.vhd', ]) project.addFiles([ 'src/src_MAC_FIR/MULTI_MAC_FIR_Package.vhd', 'src/src_MAC_FIR/CLKGEN.vhd', 'src/src_MAC_FIR/SRL_MEM_SYMMETRY_EVEN.vhd', 'src/src_MAC_FIR/SRL_MEM_SYMMETRY_ODD.vhd', 'src/src_MAC_FIR/TOP_SRL_MEM_MULTI_SYMMETRY.vhd', 'src/src_MAC_FIR/MAC_CAPT.vhd', 'src/src_MAC_FIR/ADDER_TREE.vhd', 'src/src_MAC_FIR/TOP_MAC_FIR.vhd', ]) project.setOptions({ 'MappingEffort': 'High', #can be replaced by 'Medium' or 'Low' }) ioBanks = { 'IOB12' : {'voltage': '2.5'}, 'IOB10' : {'voltage': '1.8'}, 'IOB01' : {'voltage': '2.5'}, 'IOB00' : {'voltage': '2.5'}, } pads = { 'CLK25M_IN' : {'location': 'IOB12_D09P', 'standard': 'LVCMOS', 'drive' :'4mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'RST_PIN' : {'location': 'IOB10_D12N', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'TRIG_IMMEDIATE_EXT' : {'location': 'IOB10_D07N', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_8' : {'location': 'IOB01_D02N', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_7_5[2]' : {'location': 'IOB01_D06P', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_7_5[1]' : {'location': 'IOB01_D06N', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_7_5[0]' : {'location': 'IOB01_D05P', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_4' : {'location': 'IOB01_D05N', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_3' : {'location': 'IOB00_D03P', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_2' : {'location': 'IOB00_D03N', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, 'LEDS_N_1' : {'location': 'IOB00_D01P', 'standard': 'LVCMOS', 'drive' :'8mA', 'registered': '', 'weakTermination': 'None', 'slewRate': 'Medium', 'differential': False, 'terminationReference': 'floating', 'inputSignalSlope': 1}, } project.addPads(pads) #clock constraint project.createClock(getClockNet('CLK25M_IN'), 'CLK25M_IN', 40000, 0, 20000) #Create regions ton confine logic project.addModule('*WOBUL', 'WOBU', 'WOBU-%') project.createRegion('WOBUR', 1, 2, 2, 4, False) project.confineModule('WOBU-1', 'WOBUR') project.addModule('SRL_MEM_SYMMETRY_EVEN', 'FIR_MF|MEM.EVEN.MLT.NR[[1-8]].OTHE.OTH_EVEN', 'OTH_EVEN-%') project.addModule('SRL_MEM_SYMMETRY_EVEN', 'FIR_MF|MEM.EVEN.MLT.NR[0].FIRST.FIRST_EVEN', 'FIRST_EVEN-%') project.addModule('SRL_MEM_SYMMETRY_EVEN', 'FIR_MF|MEM.EVEN.MLT.NR[9].CENT.CENTER_EVEN', 'CENTER_EVEN-%') project.createRegion('OTH_EV_1_R', 2, 10, 2, 10, False) project.confineModule('OTH_EVEN-1', 'OTH_EV_1_R') project.createRegion('OTH_EV_2_R', 3, 10, 3, 10, False) project.confineModule('OTH_EVEN-2', 'OTH_EV_2_R') project.createRegion('OTH_EV_3_R', 4, 10, 4, 10, False) project.confineModule('OTH_EVEN-3', 'OTH_EV_3_R') project.createRegion('OTH_EV_4_R', 5, 10, 5, 10, False) project.confineModule('OTH_EVEN-4', 'OTH_EV_4_R') project.createRegion('OTH_EV_5_R', 6, 10, 6, 10, False) project.confineModule('OTH_EVEN-5', 'OTH_EV_5_R') project.createRegion('OTH_EV_6_R', 7, 10, 7, 10, False) project.confineModule('OTH_EVEN-6', 'OTH_EV_6_R') project.createRegion('OTH_EV_7_R', 8, 10, 8, 10, False) project.confineModule('OTH_EVEN-7', 'OTH_EV_7_R') project.createRegion('OTH_EV_8_R', 9, 10, 9, 10, False) project.confineModule('OTH_EVEN-8', 'OTH_EV_8_R') project.createRegion('FIRST_EV_1_R', 1, 10, 1, 10, False) project.confineModule('FIRST_EVEN-1', 'FIRST_EV_1_R') project.createRegion('CENT_EV_R', 10, 10, 10, 10, False) project.confineModule('CENTER_EVEN-1', 'CENT_EV_R') # Synth FIR_MF_GEN_DSP_0_DSP_G_INST_DSP_DSP_INST # Routed FIR_MF_GEN_DSP_0_DSP_G_INST_DSP_DSP_INST # NXmapImpulse GUI FIR_MF|GEN_DSP_0_DSP|G_INST.DSP|DSP_INST project.addDSPLocation('FIR_MF|GEN_DSP[0].DSP|G_INST.DSP|DSP_INST', 'CGB[1x8]:L') project.addDSPLocation('FIR_MF|GEN_DSP[1].DSP|G_INST.DSP|DSP_INST', 'CGB[1x8]:R') project.addDSPLocation('FIR_MF|GEN_DSP[2].DSP|G_INST.DSP|DSP_INST', 'CGB[2x8]:L') project.addDSPLocation('FIR_MF|GEN_DSP[3].DSP|G_INST.DSP|DSP_INST', 'CGB[2x8]:R') # i_WOB_TABLE_ROM_TAB_SINUS_ram0_0_0_0 #project.addRAMLocation('*SINUS*', 'CGB[3x8]') project.addRAMLocation('WOBU|TABLE|ROM_TAB|SINUS|ram0_0_0_0', 'CGB[1x4]') project.addRAMLocation('GEN_SCOP.SCOP|MEASUR|GEN_PRE_TRG*MEM|ram0_0_0_0', 'CGB[2x4]') project.addRAMLocation('GEN_SCOP.SCOP|MEASUR|GEN_PRE_TRG*MEM|ram0_0_1_0', 'CGB[3x4]') project.addRAMLocation('GEN_SCOP.SCOP|MEASUR|GEN_PRE_TRG*MEM|ram0_0_2_0', 'CGB[4x4]') project.addRAMLocation('GEN_SCOP.SCOP|MEASUR|GEN_PRE_TRG*MEM|ram0_0_3_0', 'CGB[5x4]') #false paths declarations #project.addFalsePath(getRegisters('FIR_MF|GEN_DSP[1].DSP|MAC_OUT_reg[*'), getRegisters('FIR_MF|SUM|PRESUM_reg[*')) #project.addFalsePath(getRegisters('FIR_MF|GEN_DSP[1].DSP|MAC_OUT_reg[1]'), getRegisters('FIR_MF|SUM|PRESUM_reg[0][*')) project.addFalsePath(getRegisters('FIR_MF|GEN_DSP[1].DSP|MAC_OUT_reg[1]'), getRegisters('FIR_MF|SUM|PRESUM_reg[0][0]')) project.addFalsePath(getRegisters('FIR_MF|GEN_DSP[1].DSP|MAC_OUT_reg[1]'), getRegisters('FIR_MF|SUM|PRESUM_reg[0][1]')) project.addFalsePath(getRegisters('FIR_MF|GEN_DSP[1].DSP|MAC_OUT_reg[1]'), getRegisters('FIR_MF|SUM|PRESUM_reg[0][2]')) project.addFalsePath(getRegisters('FIR_MF|GEN_DSP[1].DSP|MAC_OUT_reg[1]'), getRegisters('FIR_MF|SUM|PRESUM_reg[0][2]')) project.addFalsePath(getRegisters('FIR_MF|GEN_DSP[1].DSP|MAC_OUT_reg[1]'), getRegisters('FIR_MF|SUM|PRESUM_reg[0][4]')) project.save('native.nym') if not project.synthesize(): sys.exit(1) project.save('WMFS_Cores_synth.vhd') if not project.place(): sys.exit(1) project.save('WMFS_Cores_placed.nym') if not project.route(): sys.exit(1) project.reportPorts() project.reportInstances() project.save('WMFS_Cores_routed.nym') project.save('WMFS_Cores_routed.vhd') analyzer = project.createAnalyzer() analyzer.launch({ 'conditions': 'worstcase', # 'typical', 'worstcase', or 'bestcase' # 'maximumSlack': 10000, 'searchPathsLimit': 100 }) #bitstream generation project.generateBitstream('WMFS_Cores.nxb') print( 'Errors: ', getErrorCount()) print( 'Warnings: ', getWarningCount()) |
Timing Analysis
Timing path
Timing path is the connection between two certain nodes in the design i.e. connection between primary input and output ports, connection between primary input ports/clock pins and data input pins of the sequential elements, and connection between intermediate clock pins and primary output ports.
Data delay
In nxmap impulse, data delay is the delay of a timing path. For example, the delay between the launch edge of the clock at the source register and data input pin of the destination register. In following picture, the path for the data delay between source register DFF1 and destination register DFF2 is shown in blue.
Anchor | ||||
---|---|---|---|---|
|
...
Clock skew
Clock skew is the difference between the latch clock delay at the destination register and launch clock delay at the source register. Considering the example shown in previous figure, clock skew is calculated as follows:
Code Block |
---|
clock skew = Clock delay at DFF2 − Clock delay at DFF1 |
Setup/Hold time
Setup time is the minimum amount of time required for a signal to be held stable before the clock transition.
Hold time is the minimum amount of time required for a signal to retain its value after the clock transition. In nxmap impulse, the analysis of setup/hold time is performed in order to calculate the data arrival time which will be explained shortly.
Recovery/Removal time
Recovery time is the minimum amount of time required for an asynchronous control signal to be held stable after its de-assertion before the next active clock edge. The recovery time calculation corresponds to the setup time calculation but for the asynchronous control signals i.e. reset.
...
Similarly, removal time is the minimum amount of time for an asynchronous signal to be held stable before its de-assertion after the previous active clock edge. The removal time calculation corresponds to the hold time calculation but for the asynchronous signals.
Timing domain
In nxmap impulse, the term ‘domain’ is used to define a group of certain timing paths. As mentioned earlier, the timing paths include the connection between primary input and output ports, connection between primary input ports/clock pins and data input pins of the sequential elements, and connection between intermediate clock pins and primary output ports.
...
For example in following figure, three domains D1, D2 and D3 are shown between input and clock "clk" (D1: input to clk), between clock "clk" of source registers and clock "clk" of destination registers (D2: clk to clk), and between clock "clk" and output (D3: clk to output) respectively.
Anchor | ||||
---|---|---|---|---|
|
...
Data arrival time
In nxmap impulse, data arrival time includes the overall data delay, clock skew and setup/hold time (recovery/removal) for a critical timing path in a domain. Based on the setup/hold verification, data arrival time can be either maximum or minimum. In both cases, data arrival time is calculated as follows:
Code Block | ||
---|---|---|
| ||
Maximum data arrival time = max{∀(path delay = data delay − clock skew + setup or recovery) : path ∈ domain} Minimum data arrival time = min{∀(path delay = data delay − clock skew − hold or removal) : path ∈ domain} |
Setup/Recovery, Hold/Removal time relationship
The transfer of data signal from one sequential element to another requires certain timing checks for correct functionality. It involves hold and setup time verification with respect to launch and latch edge of the clock at the source and destination sequential element respectively.
...
Between launch and latch clock, hold and setup time relationship is established which it is essentially the delay between the active edges of these clocks. This relationship is then used to determine positive or negative slack, validating the timing characteristics of the paths in the domain. Following are all the four cases of the active launch and latch clock edges.
Case 1
If both launch and latch clocks have active high edge, hold relationship is established between the current launch edge and the previous or current latch edge ensuring that the data is not captured by the latch edge coming before the launch edge. Similarly, setup relationship is established between the launch edge and the next latch edge ensuring that the data is captured by the latch edge coming after the launch edge.
...
Inthe following figure, hold and setup relationship is shown between a launch and latch clock with no skew. In case of having different frequencies for launch and latch clock, hold relationship is established between the active launch and latch edges with the minimum difference. Thus, hold relationship gives the minimum delay allowed between launch and latch edges. Whereas, the setup relationship is established between launch and latch edges with minimum difference, hence giving the maximum allowed delay between launch and latch edges.
Anchor | ||||
---|---|---|---|---|
|
...
Case 2
If launch and latch clocks have active high and active low edges respectively, in this case hold relationship is established between active high launch edge and the previous active low latch edge with the minimum difference. Similarly, setup relationship is established between launch edge and the next latch edge with the minimum difference.
...
The following figure shows hold and setup relationship between active high launch clock and active low latch clock.
Anchor | ||||
---|---|---|---|---|
|
...
Case 3
For the active low launch clock and active high latch clock, the hold relationship gives the minimum delay between active low launch edge and previous active high latch edge. Similarly, setup relationship gives the minimum delay between the active low launch edge and the very next active high latch edge as shown in the following figure.
Anchor | ||||
---|---|---|---|---|
|
...
Case 4
If both launch and latch clocks have active low edges, the hold relationship is established between active low launch edge and previous active low latch edge. Similarly, setup relationship is established between the active low launch edge and the very next active low latch edge as shown in the following figure.
Anchor | ||||
---|---|---|---|---|
|
...
Slack calculation
In nxmap impulse, setup/recovery slack corresponds to the difference between maximum setup/recovery relationship and maximum data arrival time whereas hold/removal slack corresponds to the difference between minimum data arrival and minimum hold/removal relationship.
Code Block | ||
---|---|---|
| ||
Setup/Recovery slack = Maximum setup/recovery relationship − Maximum data arrival time Hold/Removal slack = Minimum data arrival time − Minimum hold/removal relationship |
Anchor | ||||
---|---|---|---|---|
|
In nxmap impulse and nxpython, timing analyzer generates a set of reports presenting respectively the summary of analysis, critical paths of each domain, and violation information. All the timing reports are automatically saved in files (.timing) in ‘logs’ directory after a successful analyzing of the routed design.
STA summary
The file "Summary.timing" contains the report of the timing domains as well as hold/removal and setup/recovery summaries in the design. Such domains are grouped by categories:
...
a summary of the presenting domain (similar to Summary.timing);
two lists of critical longest paths and shortest paths;
detailed tables of each found path.
Critical paths table
The critical paths tables show the lists of longest paths and shortest paths for the given timing domain of the design. The details of such critical paths include:
...
Anchor | ||||
---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
...
Path detail
Following the critical paths table, all the listed critical paths are reported in detail. For each part of the path, the table contents the following information: source (beginning of the path), target (ending of the path), routing delay, internal delay, cumulated delay (from the source of the path), setup/recovery time (for data path), hold/removal time (for data path), clock skew (for data path).
Anchor | ||||
---|---|---|---|---|
|
...
Revision history
The following table shows the revision history of the NXmap3 user manual datasheetImpulse_NXpython specification document:
Date | Version | Revision |
20202022-0412-0215 | 31.0.1 | Initial draft datasheet. |
2020-12-18 | 3.0.3 | Various corrections for IO names to respect ballout syntaxe now used in NXmap3 software. |
2021-04-02 | 3.0.4 | constrainPath() and constrainModule() descriptions introduced. Updated addPad() description to clarify the applications of several options and provide trade-off examples. |
2021-07-23 | 3.0.5 | addMappingDirective() supports the mapping of ADD into LUT. addPad() additional precisions:
setLogDirectory() function implemented. addFile() supports VHDL_93, VERILOG_95, VERILOG_2K language identifiers for synthesis through NXmap3. bestcase, worstcase and typical scenarios supported for sdf file generation. Overview of expected expression (full path, wildcard or regular expressions or for NXpython methods) is provided in section 5.2.2 List of NXpython methods expecting expressions. |