mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 00:13:18 +00:00
add more tests for bounds attributes, fix attributes appearing in verilog
This commit is contained in:
parent
e91e95f501
commit
03033ab6d4
4 changed files with 259 additions and 16 deletions
|
@ -433,7 +433,7 @@ void VerificImporter::import_attributes(dict<RTLIL::IdString, RTLIL::Const> &att
|
|||
auto type_range = nl->GetTypeRange(obj->Name());
|
||||
if (!type_range)
|
||||
return;
|
||||
if (type_range->IsTypeScalar()) {
|
||||
if (nl->IsFromVhdl() && type_range->IsTypeScalar()) {
|
||||
const long long bottom_bound = type_range->GetScalarRangeLeftBound();
|
||||
const long long top_bound = type_range->GetScalarRangeRightBound();
|
||||
const unsigned bit_width = type_range->NumElements();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue