vhdlpp: Minor code cleaning.
This commit is contained in:
parent
e896f0c8e6
commit
76aab15798
|
|
@ -879,11 +879,8 @@ const VType* ExpNameALL::probe_type(Entity*, Architecture*) const
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const VType* ExpRelation::probe_type(Entity*ent, Architecture*arc) const
|
const VType* ExpRelation::probe_type(Entity*, Architecture*) const
|
||||||
{
|
{
|
||||||
/* const VType*type1 = */ peek_operand1()->probe_type(ent, arc);
|
|
||||||
/* const VType*type2 = */ peek_operand2()->probe_type(ent, arc);
|
|
||||||
|
|
||||||
return &primitive_BOOLEAN;
|
return &primitive_BOOLEAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -391,16 +391,6 @@ int ExpCharacter::emit_primitive_bit_(ostream&out, Entity*, Architecture*,
|
||||||
switch (etype->type()) {
|
switch (etype->type()) {
|
||||||
case VTypePrimitive::BOOLEAN:
|
case VTypePrimitive::BOOLEAN:
|
||||||
case VTypePrimitive::BIT:
|
case VTypePrimitive::BIT:
|
||||||
switch (value_) {
|
|
||||||
case '0':
|
|
||||||
case '1':
|
|
||||||
out << "1'b" << value_;
|
|
||||||
return 0;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case VTypePrimitive::STDLOGIC:
|
case VTypePrimitive::STDLOGIC:
|
||||||
switch (value_) {
|
switch (value_) {
|
||||||
case '0':
|
case '0':
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,9 @@ void VTypePrimitive::write_to_stream(ostream&fd) const
|
||||||
case STDLOGIC:
|
case STDLOGIC:
|
||||||
fd << "std_logic";
|
fd << "std_logic";
|
||||||
break;
|
break;
|
||||||
|
case CHARACTER:
|
||||||
|
fd << "character";
|
||||||
|
break;
|
||||||
case BOOLEAN:
|
case BOOLEAN:
|
||||||
fd << "boolean";
|
fd << "boolean";
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue