genrtlil: fix signed port connection codegen failures
authorZachary Snow <zach@zachjs.com>
Sat, 6 Feb 2021 00:38:10 +0000 (19:38 -0500)
committerZachary Snow <zach@zachjs.com>
Sat, 6 Feb 2021 00:51:30 +0000 (19:51 -0500)
commit4b2f97733104c4e68dfdb0d89c1b03da137010c4
tree6f79a19d87ca4e717bf171b9183884f0c3d0682f
parent3d9898272a5afd60f6080603bf065056d9dca000
genrtlil: fix signed port connection codegen failures

This fixes binding signed memory reads, signed unary expressions, and
signed complex SigSpecs to ports. This also sets `is_signed` for wires
generated from signed params when -pwires is used. Though not necessary
for any of the current usages, `is_signed` is now appropriately set when
the `extendWidth` helper is used.
frontends/ast/genrtlil.cc
tests/various/port_sign_extend.v
tests/various/port_sign_extend.ys