3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-23 06:01:27 +00:00

Update generator to reflect IdString changes

This commit is contained in:
Miodrag Milanovic 2025-11-12 13:47:47 +01:00
parent 5e0bc3fd9f
commit 10b49f3a91

View file

@ -168,9 +168,8 @@ pyosys_headers = [
"global_negative_id_prefix_storage_",
"global_refcount_storage_",
"global_free_idx_list_",
"last_created_idx_ptr_",
"last_created_idx_",
"builtin_ff_cell_types",
"substrings",
}
),
),
@ -455,7 +454,7 @@ class PyosysWrapperGenerator(object):
) -> str:
is_method = isinstance(function, Method)
function_return_type = function.return_type.format()
if class_basename == "Const" and function_return_type in {
if class_basename in {"Const","IdString"} and function_return_type in {
"iterator",
"const_iterator",
}: