Open sgherbst opened 4 months ago
Issue reported by @azaidy.
Proposal is to have an optional shape field like numpy when declaring interfaces:
shape
interfaces = { 'umi_in': dict(type='umi', dw=dw, aw=aw, cw=cw, direction='input', shape=(m,n), txrx='umi'), 'umi_out': dict(type='umi', dw=dw, aw=aw, cw=cw, direction='output', shape=(m,n), txrx='umi'), 'umi_aux': dict(type='umi', dw=dw, aw=aw, cw=cw, direction='output', shape=(p,)) }
Elements in arrays should be accessible with standard array notation; this should apply to both coupled UmiTxRx interfaces and decoupled interfaces.
UmiTxRx
dut.net.intfs['umi'][i][j].write(...) dut.net.intfs['umi_aux'][k].send(...)
Note: this should also be possible with bundled clocks and resets
Issue reported by @azaidy.
Proposal is to have an optional
shape
field like numpy when declaring interfaces:Elements in arrays should be accessible with standard array notation; this should apply to both coupled
UmiTxRx
interfaces and decoupled interfaces.