SVF Operations

The following is a list of svf commands:

svf config

Configure options for SVF file

Syntax

svf config [options]

Configure and generate SVF file.

Options

Option Description
-scan-chain <list of idcode-irlength pairs> List of idcode-irlength pairs. This can be obtained from xsdb command - jtag targets
-device-index <index> This is used to select device in the jtag scan chain.
-cpu-index <processor core> Specify the cpu-index to generate the SVF file. For A53#0 - A53#3 on ZynqMP, use cpu-index 0 -3 For R5#0 - R5#1 on ZynqMP, use cpu-index 4 -5 For A9#0 - A9#1 on Zynq, use cpu-index 0 -1 If multiple MicroBlaze processors are connected to MDM, select the specific MicroBlaze index for execution.
-out <filename> Output SVF file.
-delay <tcks> Delay in ticks between AP writes.
-linkdap Generate SVF for linking DAP to the jtag chain for ZynqMP Silicon versions 2.0 and above.
-bscan <user port> This is used to specify user bscan port to which MDM is connected.
-mb-chunksize <size in bytes> This used to specify the chunk size in bytes for each transaction while downloading. Supported only for Microblaze processors.
-exec-mode Execution mode for ARM v8 cores. Supported modes are a32 - v8 core is setup in 32 bit mode. a64 - v8 core is setup in 64 bit mode.

Returns

Nothing

Example(s)

svf config -scan-chain {0x14738093 12 0x5ba00477 4} -device-index 1  -cpu-index 0 -out "test.svf"

This creates a SVF file with name test.svf for core A53#0

svf config -scan-chain {0x14738093 12 0x5ba00477 4} -device-index 0  -bscan pmu -cpu-index 0 -out "test.svf"

This creates a SVF file with name test.svf for PMU MB

svf config -scan-chain {0x23651093 6} -device-index 0 -cpu-index 0  -bscan user1 -out "test.svf"

This creates a SVF file with name test.svf for MB connected to MDM on bscan USER1

svf generate

Generate recorded SVF file

Syntax

svf generate 

Generate SVF file in the path specified in the config command.

Options

None

Returns

If successful, this command returns nothing. Otherwise it returns an error.

Example(s)

svf generate

svf mwr

Record memory write to SVF file

Syntax

svf mwr <address> <value>

Write <value> to the memory address specified by <address>.

Options

None

Returns

If successful, this command returns nothing. Otherwise it returns an error.

Example(s)

svf mwr 0xffff0000 0x14000000

svf dow

Record elf download to SVF file

Syntax

svf dow <elf file>

Record downloading of elf file <elf file> to the memory.

svf dow -data <file> <addr>

Record downloading of binary file <file> to the memory.

Options

None

Returns

If successful, this command returns nothing. Otherwise it returns an error.

Example(s)

svf dow "fsbl.elf"

Record downloading of elf file fsbl.elf.

svf dow -data "data.bin" 0x1000

Record downloading of binary file data.bin to the address 0x1000.

svf stop

Record stopping of core to SVF file

Syntax

svf stop 

Record suspending execution of current target to SVF file.

Options

None

Returns

Nothing

Example(s)

svf stop

svf con

Record resuming of core to SVF file

Syntax

svf con 

Record resuming the execution of active target to SVF file.

Options

None

Returns

Nothing

Example(s)

svf con

svf delay

Record delay in tcks to SVF file

Syntax

svf delay <delay in tcks>

Record delay in tcks to SVF file.

Options

None

Returns

Nothing

Example(s)

svf delay 1000

Delay of 1000 tcks is added to the SVF file.