Circuit.py#
Abstract base class for FPGA circuit representations.
Concrete subclasses (e.g. FileBasedCircuit)
implement compilation, bitstream access, and file-attribute storage for a
specific hardware format.
- class Circuit.Circuit.Circuit(index: int, filename: str, logger: Logger)[source]#
- __repr__()[source]#
Returns the string representation of this Circuit, used in functions such as ‘print’.
- Returns:
A string representation of the Circuit. (the file name)
- Return type:
- abstractmethod compile(fpga: FPGA_Compilation_Data) Result[None, Exception][source]#
Performs the upload function of this Circuit. Prerequisite to collecting data