Write a ROM/RAM memory image
memory_writeCreate or update Intel/Altera MIF files with explicit width, depth, and hexadecimal data, filling unused addresses. Preview changes or apply with SHA-256 checks and backups.
Instructions
Generate an Intel/Altera MIF with explicit WIDTH, DEPTH, hexadecimal addresses/data and initialized unused addresses. Arbitrary width values may use integer strings. Preview or apply to a .mif with hash checking/backups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the project/workspace. Absolute paths must remain inside that scope. | |
| depth | Yes | Number of memory addresses. | |
| width | Yes | Word width in bits. | |
| values | Yes | Address-zero-first unsigned values. Large values use decimal, 0x-prefixed hex or 0b-prefixed binary strings. | |
| confirm | No | Apply the described file change when true; otherwise return a preview. This is a tool argument, not a request for another user approval. | |
| project | No | Existing .acf project path or unambiguous project name. File paths are scoped to its directory. | |
| workspace | No | Workspace directory for resolving project names, or the scope when no project is supplied. | |
| defaultValue | No | Value for remaining addresses, default 0. | |
| expectedSha256 | No | Existing MIF SHA-256 if replacing a file. |