vhdlpp: Special handling for STRING type during type emission.
This commit is contained in:
parent
ba3c07a59a
commit
637d7c9633
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
# include "vtype.h"
|
# include "vtype.h"
|
||||||
# include "expression.h"
|
# include "expression.h"
|
||||||
|
# include "std_types.h"
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
# include <typeinfo>
|
# include <typeinfo>
|
||||||
# include <cassert>
|
# include <cassert>
|
||||||
|
|
@ -66,6 +67,14 @@ int VTypeArray::emit_def(ostream&out, perm_string name) const
|
||||||
if (base) {
|
if (base) {
|
||||||
assert(dimensions() == 1);
|
assert(dimensions() == 1);
|
||||||
|
|
||||||
|
// If this is a string type without any boundaries specified, then
|
||||||
|
// there is a direct counterpart in SV called.. 'string'
|
||||||
|
if(this == &primitive_STRING) {
|
||||||
|
out << "string";
|
||||||
|
emit_name(out, name);
|
||||||
|
return errors;
|
||||||
|
}
|
||||||
|
|
||||||
base->emit_def(out, empty_perm_string);
|
base->emit_def(out, empty_perm_string);
|
||||||
if (signed_flag_)
|
if (signed_flag_)
|
||||||
out << " signed";
|
out << " signed";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue