beautypg.com

Checksum, Usage, Options – Altera Quartus II Scripting User Manual

Page 297: Description, Example, Checksum –167

background image

Chapter 3: Tcl Packages & Commands

3–167

misc

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

checksum

Usage

checksum [-algorithm ]

Options

-algorithm : Option to specify the checksum algorithm. Uses the CRC-32
algorithm by default.

: Option to specify the input file

Description

Returns the checksum value in hexadecimal format based on the specified algorithm which defaults to
crc32.

Example

set file "one_wire.sof"

# Use CRC-32

puts "$file -> [checksum $file]"
puts "$file -> [checksum $file -algorithm crc32]"

# Use ADLER-32

puts "$file -> [checksum $file -algorithm adler32]"