113676Sjason@lowepower.com# This format supports comments using the '#' symbol as the leading
213676Sjason@lowepower.com# character of the line
313676Sjason@lowepower.com#
413676Sjason@lowepower.com# The file format contains [STATE]+ [INIT] [TRANSITION]+ in any order,
513676Sjason@lowepower.com# where the states are the nodes in the graph, init describes what
613676Sjason@lowepower.com# state to start in, and transition describes the edges of the graph.
713676Sjason@lowepower.com#
813676Sjason@lowepower.com# STATE <id> <duration (ticks)> <type>
913676Sjason@lowepower.com#
1013676Sjason@lowepower.com# State IDLE idles
1113676Sjason@lowepower.com#
1213676Sjason@lowepower.com# States LINEAR and RANDOM have additional <percent reads> <start addr>
1313676Sjason@lowepower.com# <end addr> <access size (bytes)> <min period (ticks)> <max period (ticks)>
1413676Sjason@lowepower.com# <data limit (bytes)>
1513676Sjason@lowepower.com#
1613676Sjason@lowepower.com# State TRACE plays back a pre-recorded trace once
1713676Sjason@lowepower.com#
1813676Sjason@lowepower.com# Addresses are expressed as decimal numbers. The period in the linear
1913676Sjason@lowepower.com# and random state is from a uniform random distribution over the
2013676Sjason@lowepower.com# interval. If a specific value is desired, then the min and max can
2113676Sjason@lowepower.com# be set to the same value.
2213676Sjason@lowepower.comSTATE 0 1000000 TRACE tgen-simple-mem.trc 100
2313676Sjason@lowepower.comSTATE 1 100000000 RANDOM 0 0 134217728 64 30000 30000 0
2413676Sjason@lowepower.comSTATE 2 1000000000 IDLE
2513676Sjason@lowepower.comSTATE 3 100000000 LINEAR 0 0 134217728 64 30000 30000 0
2613676Sjason@lowepower.comSTATE 4 1000000 IDLE
2713676Sjason@lowepower.comINIT 0
2813676Sjason@lowepower.comTRANSITION 0 1 1
2913676Sjason@lowepower.comTRANSITION 1 2 1
3013676Sjason@lowepower.comTRANSITION 2 3 0.5
3113676Sjason@lowepower.comTRANSITION 2 4 0.5
3213676Sjason@lowepower.comTRANSITION 3 2 1
3313676Sjason@lowepower.comTRANSITION 4 4 1
34