It looks like in a combinational block of a RTL model, zext function does not support taking an element of a WireList. If one does so, that model will fail to translate to Verilog.
For example, suppose one wants to write a 64-bit adder:
Then the Verilog translation tool will complain:
"AttributeError: Problem translating comb_logic() in model Add64UnitRTL_0x791afe0d4d8c:
'WireList' object has no attribute 'nbits'"
It works for a Wire instead of a member of a WireList:
It looks like in a combinational block of a RTL model, zext function does not support taking an element of a WireList. If one does so, that model will fail to translate to Verilog.
For example, suppose one wants to write a 64-bit adder:
Then the Verilog translation tool will complain: "AttributeError: Problem translating comb_logic() in model Add64UnitRTL_0x791afe0d4d8c: 'WireList' object has no attribute 'nbits'"
It works for a Wire instead of a member of a WireList: