Package dsc_suite :: Package tools :: Module benchmarks :: Class YAL
[hide private]
[frames] | no frames]

Class YAL

source code

object --+    
         |    
 Benchmark --+
             |
            YAL

class YAL(Benchmark) - reading yal benchmarks

Use this class to load a YAL file. This is a 2D benchmark format.

Currently tested only for benchmarks from folders 'Beasley and OKP' and 'MCNC'.

Instance Methods [hide private]
 
__init__(filename)
filename ...
source code
data
parse_benchmark_string(text)
text ...
source code
 
transform(data)
data ...
source code

Inherited from Benchmark: add_connections, get_blocks, get_connections, get_dimensions, get_status, join, load_benchmark, remove_blocks, remove_connections, rename_blocks, set_connections, to_3d

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from Benchmark: load_benchmark_file

Class Variables [hide private]

Inherited from Benchmark: CONNECTIONS, DIMENSIONS, MODULETYPE

Properties [hide private]

Inherited from Benchmark: blocks, connections, dimensions, status

Inherited from object: __class__

Method Details [hide private]

__init__(filename)
(Constructor)

source code 

filename ... YAL benchmark file

Loads YAL benchmark file and creates data set.

Overrides: object.__init__

parse_benchmark_string(text)

source code 

text ... string representation of benchmark file data ... dictionary representation of benchmark

Parsing string representation of YAL benchmark. data format: {modulename: [moduletype, dimensions, connections]}

Returns: data
Overrides: Benchmark.parse_benchmark_string

transform(data)

source code 

data ... parsed benchmark data

Transforms connections from net based to a combination of priority plus partner information for each module. (i.e., ['net1', 'net2', ...] -> {block_x : 3, block_y : 4, ...}) Not efficient, yet. Possible improvements: exploit symmetries, Modifies data dictionary given by reference!