prga.tools.bitgen.common module¶
-
class
prga.tools.bitgen.common.AbstractBitstreamGenerator(context)¶ Bases:
prga.util.ObjectAbstract base class for bitstream generators.
Parameters: context ( Context) –-
_none= <object object>¶
-
_reprog_param= re.compile('(?P<name>\\w+)\\[(?P<high>\\d+):(?P<low>\\d+)\\]')¶
-
_reprog_value= re.compile("(?P<width>\\d+)'(?P<notation>[bdhBDH])(?P<value>[a-fA-F0-9]+)")¶
-
context¶
-
generate_bitstream(input_, output, args)¶ Generate bitstream without storing parsed data.
Parameters: - input (
strof file-like object) – - output (
strof file-like object) – - args (
Sequence[str]) – Remaining arguments other than the ones specified in the common argument parser
- input (
-
parse_fasm(fasm)¶ Parse an FASM file. Calls
AbstractBitstreamGenerator.set_bits, which must be implemented by a sub-class.Parameters: fasm ( stror file-like object) –
-
parse_feature(line)¶ Parse one FASM feature.
Parameters: line ( str) –Returns: Return type: FASMFeatureConnorFASMFeaturePlainorFASMFeatureParam
-
set_bits(value, hierarchy=None, *, inplace=False)¶ Update bitstream with the specified
valueandhierarchy. Subclass may implement this method to useAbstractBitstreamGenerator.parse_fasm.Parameters: - value (
ProgDataValue) – - hierarchy (
AbstractInstance) –
Keyword Arguments: inplace (
bool) – If set,valuemay be modified in place.- value (
-
-
class
prga.tools.bitgen.common.FASMFeatureConn¶ Bases:
prga.tools.bitgen.common.FASMFeatureConn-
type_¶
-
-
class
prga.tools.bitgen.common.FASMFeatureParam¶ Bases:
prga.tools.bitgen.common.FASMFeatureParam-
type_¶
-
-
class
prga.tools.bitgen.common.FASMFeaturePlain¶ Bases:
prga.tools.bitgen.common.FASMFeaturePlain-
type_¶
-