beautypg.com

Include – Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual

Page 74

background image

Teledyne LeCroy

PETrainer Scripting Language

69

Example 2:

The following example shows nested templates (i.e. when one template is based on another template).

; First define the template "SomeTlp3" for TLP packet.

Template = TLP {

Name = "SomeTlp3"

TLPType = MRd32

RequesterID = (0:1:2)

Length = 0x40

LastDwBe = 0xF

FirstDwBe = 0xF

Address = 0x10000

}

; The template "SomeTlp4" is based on the template "SomeTlp3"
; with Address overridden.

Template = "SomeTlp3" {

Name = "SomeTlp4"

Address = 0x10040

}

; This TLP packet has Address parameter equal to 0x10000.

Packet = "SomeTlp3" {

Length = 0x80

}

; This TLP packet has Address parameter equal to 0x10040.

Packet = "SomeTlp4" {

Length = 0x80

}