Merge pull request #7 from alainmarcel/new_peepopts

Leave comment about signage assumption
This commit is contained in:
alaindargelas 2024-12-18 11:36:59 -08:00 committed by GitHub
commit d98b224d07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ code
// Get properties and values of b_const and c_const
int b_const_width = mul->getParam(ID::B_WIDTH).as_int();
// b_const may be coming from the A port but it's an RTLIL invariant that A_SIGNED equals B_SIGNED
bool b_const_signed = mul->getParam(ID::B_SIGNED).as_bool();
bool c_const_signed = div->getParam(ID::B_SIGNED).as_bool();
int b_const_int = b_const.as_int(b_const_signed);