netlistsvg icon indicating copy to clipboard operation
netlistsvg copied to clipboard

ports should also support multiple aliases

Open nturley opened this issue 6 years ago • 3 comments

allowing multiple aliases for the same symbol allows us to not duplicate the same symbols for every name that yosys might give it. Having different cell types with different port names means you can't reuse the same symbol.

nturley avatar Mar 26 '19 02:03 nturley

Is this implemented? I can see in the default.svg several aliases listed for each symbol.

<g s:type="mux" transform="translate(50, 50)" s:width="20" s:height="40">
  <s:alias val="$pmux"/>
  <s:alias val="$mux"/>
  <s:alias val="$_MUX_"/>

nobodywasishere avatar Mar 19 '21 21:03 nobodywasishere

@nobodywasishere -- I think that is aliases for the object type rather than the ports?

mithro avatar Mar 19 '21 22:03 mithro

Correct. I was running into cases where the symbol should've been able to be reused but the ports had different names.

nturley-copia avatar Mar 19 '21 22:03 nturley-copia