base.circuits module¶
-
class
base.circuits.
Circuit
(node, name, path)¶ Bases:
object
Represents the circuit defined by the configuration of a Node.
Stores file and validity information as well as a reference to the Node representing the circuit.
-
node
¶ The Node representing this circuit.
Type: Node
-
name
¶ A string identifying the circuit uniquely. It is used to generate the circuit’s internal ID using a hash function.
Type: str
-
hash
¶ Internal unique identification of this Circuit. Calculated as
hash(self.name)
.Type: str
-
path
¶ The absolute path to the directory in which the circuit files shall be stored.
Type: str
-
file_name
¶ Name of the circuit files without extension. Generated as
self.path + "/" + self.hash
.Type: str
-
file_verilog
¶ Name of the circuit’s Verilog file. Generated as
self.file_name + ".v"
.Type: str
-
file_blif
¶ Name of the circuit’s BLIF file. Generated as
self.file_name + ".blif"
.Type: str
-
valid
¶ True if and only if this Circuit has been validated sucessfully.
Type: boolean
-
validated
¶ Set to True after validation.
Type: boolean
-
-
class
base.circuits.
ApproximatedCircuits
(path)¶ Bases:
object
This class holds the throught the approx. process generated approx. circuits. A list of approximated circuits, ordered by time of generation.
Parameters: path (str) – The absolute path to the directory in which the approximated circuit files are stored. -
path
¶
-
append
(circuit)¶
-
appendNode
(node)¶ Appends the Circuit represented by a given Node.
-