Apply a setacf change
setacf_applyApply a MAX+plus II .acf change, backing up the file first and returning a line diff. Requires confirm:true to write.
Instructions
Execute a setacf change. Backs the .acf up first and returns a line diff. Requires confirm:true. Prefer calling setacf_plan first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | Pin number to assign. | |
| kind | No | Assignment kind. INPUT_PIN, OUTPUT_PIN or BIDIR_PIN sets a pin; omit it when setting a device or a raw variable. | |
| root | No | MAX+PLUS II installation root, for example C:\maxplus2. Defaults to MAXPLUS2_ROOT, then a scan of common paths. | |
| async | No | Run in the background and return a jobId immediately instead of blocking. Use for any compile or simulation that may outrun the client timeout: a client timeout does NOT stop the child process, so a blocking call that is abandoned keeps running with nobody holding the result. Poll with job_status. | |
| value | No | Value paired with variable for advanced use. | |
| backup | No | Back up the .acf first (default true). | |
| create | No | Create the .acf if it does not exist (-c). Use only when bootstrapping a new project. | |
| device | No | Device to assign, for example EP1K30TC144-1. Written as the DEVICE variable in the CHIP section. | |
| signal | No | Signal name to constrain, for example "|CLK" or "CLK". A leading pipe is added automatically if absent. | |
| confirm | Yes | Must be true to actually write. | |
| project | Yes | Project name (for example "top") or an absolute path to its .acf file. A bare name is resolved against workspace, and is rejected as ambiguous if several projects share it. | |
| section | No | ACF section name. Device and pin edits default to CHIP; other settings live in sections such as SIMULATOR_CONFIGURATION. | |
| modifyTo | No | New value for an existing section (-m). Requires section and sectionValue. | |
| variable | No | Raw setacf variable for advanced use, for example "DEVICE" or a full "\"|SIG\":PIN" form. | |
| timeoutMs | No | Hard timeout in milliseconds. A client timeout is wall-clock and progress does not extend it, so keep this below the client budget. | |
| workspace | No | Directory that a relative project name is resolved against. Defaults to MAXPLUS2_WORKSPACE, then the server working directory. | |
| prependPath | No | Hierarchy path prefix to prepend to the variable (-p), for a signal inside a sub-design. | |
| sectionValue | No | Section value, for example the chip name in "CHIP top". Required when the section does not exist yet, because setacf cannot name a section it is creating. | |
| deleteVariable | No | Name of the variable to delete from its section (-d). |