Delete dead code
Fix an elaboration error when signal width depends on function in a package