3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00
This commit is contained in:
Akash Levy 2024-11-11 11:47:58 -08:00
commit ea76abdaee
10 changed files with 167 additions and 21 deletions

View file

@ -375,6 +375,10 @@ class PoolTranslator(PythonListTranslator):
insert_name = ".insert"
orig_name = "pool"
#Sub-type for ObjRange
class ObjRangeTranslator(PythonListTranslator):
orig_name = "RTLIL::ObjRange"
#Translates dict-types (dict, std::map), that only differ in their name and
#the name of the insertion function
class PythonDictTranslator(Translator):
@ -536,13 +540,14 @@ class TupleTranslator(PythonDictTranslator):
#Associate the Translators with their c++ type
known_containers = {
"std::set" : SetTranslator,
"std::vector" : VectorTranslator,
"pool" : PoolTranslator,
"idict" : IDictTranslator,
"dict" : DictTranslator,
"std::pair" : TupleTranslator,
"std::map" : MapTranslator
"std::set" : SetTranslator,
"std::vector" : VectorTranslator,
"pool" : PoolTranslator,
"idict" : IDictTranslator,
"dict" : DictTranslator,
"std::pair" : TupleTranslator,
"std::map" : MapTranslator,
"RTLIL::ObjRange" : ObjRangeTranslator
}
class Attribute: