systemc-clang icon indicating copy to clipboard operation
systemc-clang copied to clipboard

Issues with port binding list in z8test_hdl.txt

Open zhuanhao-wu opened this issue 3 years ago • 1 comments

  • u_xt_0 should only be present in DIM=2 case, but appears in DIM=3 case for port binding
hPortbinding u_xt_0 [
  hBinop ARRAYSUBSCRIPT [
    hVarref s_port [
      hBinop ARRAYSUBSCRIPT [
        hLiteral 0 NOLIST
      ]
    ]
    hLiteral 0 NOLIST
  ]
  hBinop ARRAYSUBSCRIPT [
    hBinop ARRAYSUBSCRIPT [
      hBinop ARRAYSUBSCRIPT [
        hVarref c_xt_data_scclang_global_0 NOLIST
        hLiteral 0 NOLIST
      ]
      hLiteral 0 NOLIST
    ]
    hLiteral 0 NOLIST
  ]
]
  • The port binding of s_port should be formatted as
hBinop ARRAYSUBSCRIPT [
  hBinop ARRAYSUBSCRIPT [
	  hVarref s_port NOLIST
    hLiteral 0 NOLIST
    
  ]
  hLiteral 0 NOLIST
]

zhuanhao-wu avatar Aug 22 '22 17:08 zhuanhao-wu

should be fixed in latest commit.

mayagokhale avatar Aug 23 '22 03:08 mayagokhale