Download EDK Reference Manual
Transcript
Tcl Flow During Hardware Platform Generation
UPDATE Procedure for a Parameter After System Level Analysis
You can use the parameter subproperty SYSLEVEL_UPDATE_VALUE_PROC to specify the Tcl
procedure that computes the parameter value, based on other parameters of the same IP.
The input handle is a handle to the parameter object of a particular instance of that IP. Note
that when this procedure is called, system level parameters computed by Platgen (for
example, C_NUM_MASTERS on a bus) are already updated with the correct values.
## MPD snippet
PARAMETER C_PARAM1 = 5, ..., SYSLEVEL_UPDATE_VALUE_PROC =
sysupdate_param1
## Tcl snippet
proc sysupdate_param1 {param_handle} {
set retval [somehow_compute_param1]
return $reetval;
}
UPDATE Procedure for the IP Instance After System-Level Analysis
You can use the OPTION SYSLEVEL_UPDATE_PROC to perform certain actions associated
with a specific IP. This procedure is associated with the complete IP and not with a specific
parameter, so it cannot be used to update the value of a specific parameter.
For example, you can use this procedure to copy certain files associated with the IP in a
particular directory. The input handle is a handle to an instance of the IP:
## MPD Snippet
OPTION SYSLEVEL_UPDATE_PROC = syslevel_update_proc
## Tcl snippet
Proc myip_syslevel_update_proc {ipinst_handle} {
## do something
return 0;
}
DRC Procedure for a Parameter After System Level Analysis
Use the tag SYSLEVEL_DRC_PROC to specify Tcl procedure that performs DRC on the
complete IP, based on how the IP has been used in the system. Input is a handle to the
parameter object of a particular instance of that IP.
PARAMETER C_MYPARAM = 5, ..., SYSLEVEL_DRC_PROC = sysdrc_myparam
Embedded System Tools Reference Manual
UG111 July 06, 2011
www.xilinx.com
251