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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -391,16 +391,6 @@ int ExpCharacter::emit_primitive_bit_(ostream&out, Entity*, Architecture*,
|
|||
switch (etype->type()) {
|
||||
case VTypePrimitive::BOOLEAN:
|
||||
case VTypePrimitive::BIT:
|
||||
switch (value_) {
|
||||
case '0':
|
||||
case '1':
|
||||
out << "1'b" << value_;
|
||||
return 0;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case VTypePrimitive::STDLOGIC:
|
||||
switch (value_) {
|
||||
case '0':
|
||||
|
|
|
|||
|
|
@ -146,6 +146,9 @@ void VTypePrimitive::write_to_stream(ostream&fd) const
|
|||
case STDLOGIC:
|
||||
fd << "std_logic";
|
||||
break;
|
||||
case CHARACTER:
|
||||
fd << "character";
|
||||
break;
|
||||
case BOOLEAN:
|
||||
fd << "boolean";
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue