Declare the numeric signed type.

This commit is contained in:
Stephen Williams 2011-02-19 16:50:36 -08:00
parent c6ea2f3bf5
commit acc4f73186
1 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,10 @@ static void import_ieee_use_numeric_bit(perm_string name)
{
bool all_flag = name=="all";
if (all_flag || name == "signed") {
vector<VTypeArray::range_t> dims (1);
global_types[perm_string::literal("signed")] = new VTypeArray(&primitive_STDLOGIC, dims);
}
if (all_flag || name == "unsigned") {
vector<VTypeArray::range_t> dims (1);
global_types[perm_string::literal("unsigned")] = new VTypeArray(&primitive_BIT, dims);
@ -59,6 +63,10 @@ static void import_ieee_use_numeric_std(perm_string name)
{
bool all_flag = name=="all";
if (all_flag || name == "signed") {
vector<VTypeArray::range_t> dims (1);
global_types[perm_string::literal("signed")] = new VTypeArray(&primitive_STDLOGIC, dims);
}
if (all_flag || name == "unsigned") {
vector<VTypeArray::range_t> dims (1);
global_types[perm_string::literal("unsigned")] = new VTypeArray(&primitive_STDLOGIC, dims);