base.information module

class base.information.GeneralInformation(cfg_file, orig_design)

Bases: object

Entity class holding all static general information about the circuit and references to CandidateSet, VariantSet and ApproximatedCircuits to be accessed by all stages.

cfg_file

The content of the used configuration file.

Type:str
cfg_file_path

The absolute path to the configuration file.

Type:str
orig_design

The absolute path to the input circuit file without file extension.

Type:str
orig_design_path

The absolute path to the input circuit file’s directory.

Type:str
orig_design_verilog

The absolute path to the input circuit’s Verilog file.

Type:str
orig_design_blif

The absolute path to the input circuit’s Blif file.

Type:str
top_module

The name of the input circuit’s top level module.

Type:str
pis

A list of the original circuit’s primary input signals.

Type:list of Signal
pos

A list of the original circuit’s primary output signals.

Type:list of Signal
base_directory

The absolute path to the base working directory in which the input circuit is typically stored.

Type:str
output_dir

The absolute path to the directory in which all output files will be stored.

Type:str
cand_set

The framework’s global CandidateSet instance in which the Candidates are stored.

Type:CandidateSet
cand_set_path

The absolute path to the directory in which candidate files are stored.

Type:str
variant_set

The framework’s global VariantSet instance in which all generated Variants are stored.

Type:VariantSet
variant_set_path

The absolute path to the directory in which variant files are stored.

Type:str
approx_circuits

The framework’s global ApproximatedCircuits instance in which all generated Circuits are stored.

Type:ApproximatedCircuits
approx_circuits_path

The absolute path to the directory in which circuit files are stored.

Type:str
timing

The framework’s global TimestampManager instance that is used to store the most important events and runtimes.

Type:TimestampManager
extractPiPo()

Gathers information about the input circuit’s primary inputs and outputs and stores it in attributes pis and pos.