| 420 | } |
| 421 | |
| 422 | bool isMultidimensional(const UHDM::typespec* ts) { |
| 423 | bool isMultiDimension = false; |
| 424 | if (ts) { |
| 425 | if (ts->UhdmType() == uhdmlogic_typespec) { |
| 426 | logic_typespec* lts = (logic_typespec*)ts; |
| 427 | if (lts->Ranges() && lts->Ranges()->size() > 1) isMultiDimension = true; |
| 428 | } else if (ts->UhdmType() == uhdmarray_typespec) { |
| 429 | array_typespec* lts = (array_typespec*)ts; |
| 430 | if (lts->Ranges() && lts->Ranges()->size() > 1) isMultiDimension = true; |
| 431 | } else if (ts->UhdmType() == uhdmpacked_array_typespec) { |
| 432 | packed_array_typespec* lts = (packed_array_typespec*)ts; |
| 433 | if (lts->Ranges() && lts->Ranges()->size() > 1) isMultiDimension = true; |
| 434 | } else if (ts->UhdmType() == uhdmbit_typespec) { |
| 435 | bit_typespec* lts = (bit_typespec*)ts; |
| 436 | if (lts->Ranges() && lts->Ranges()->size() > 1) isMultiDimension = true; |
| 437 | } |
| 438 | } |
| 439 | return isMultiDimension; |
| 440 | } |
| 441 | |
| 442 | bool writeElabParameters(Serializer& s, ModuleInstance* instance, |
| 443 | UHDM::scope* m, ExprBuilder& exprBuilder) { |
no outgoing calls
no test coverage detected