Scripting

cmp get_assignment_count (Tcl Script API Function)



The cmp get_assignment_count function has the following format:

Syntax cmp get_assignment_count <source> <destination>
Arguments

<source>

If required, the first statement in a range of statements that contain the assignment. If there is no range, or you want an assignment count for all statements, use empty double quotation marks ("").

<destination>

The statement containing the assignment, or, for a range of statements, the last statement in the range. If you want an assignment count for all statements, use empty double quotation marks ("").

Return Value

Code Name Code String Return
TCL_OK 0 <count>
TCL_ERROR 1 project has no active compiler setting
TCL_ERROR 1 no project is currently open
TCL_ERROR 1 wrong # args: should be "get_assignment_count source destination"
TCL_ERROR 1 illegal or missing destination
TCL_ERROR 1 unable to write to disk
Description Returns the number of assignments that exist in the specified statement(s) of the project's current Compiler Settings File (.csf).


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.