fix a few spelling mistakes in error messages

This commit is contained in:
Ruben Undheim 2016-02-27 09:36:55 -07:00 committed by Sebastian Kuzminsky
parent f2b254974a
commit 30cb298008
1 changed files with 7 additions and 7 deletions

View File

@ -328,7 +328,7 @@ void FpgaConfig::read_bits(std::istream &ifs)
break;
default:
error("Unkown command: 0x%02x 0x%02x\n", command, payload);
error("Unknown command: 0x%02x 0x%02x\n", command, payload);
}
break;
@ -381,7 +381,7 @@ void FpgaConfig::read_bits(std::istream &ifs)
break;
default:
error("Unkown command: 0x%02x 0x%02x\n", command, payload);
error("Unknown command: 0x%02x 0x%02x\n", command, payload);
}
}
@ -854,21 +854,21 @@ int FpgaConfig::chip_width() const
{
if (this->device == "1k") return 12;
if (this->device == "8k") return 32;
panic("Unkown chip type '%s'.\n", this->device.c_str());
panic("Unknown chip type '%s'.\n", this->device.c_str());
}
int FpgaConfig::chip_height() const
{
if (this->device == "1k") return 16;
if (this->device == "8k") return 32;
panic("Unkown chip type '%s'.\n", this->device.c_str());
panic("Unknown chip type '%s'.\n", this->device.c_str());
}
vector<int> FpgaConfig::chip_cols() const
{
if (this->device == "1k") return vector<int>({18, 54, 54, 42, 54, 54, 54});
if (this->device == "8k") return vector<int>({18, 54, 54, 54, 54, 54, 54, 54, 42, 54, 54, 54, 54, 54, 54, 54, 54});
panic("Unkown chip type '%s'.\n", this->device.c_str());
panic("Unknown chip type '%s'.\n", this->device.c_str());
}
string FpgaConfig::tile_type(int x, int y) const
@ -886,7 +886,7 @@ string FpgaConfig::tile_type(int x, int y) const
return "logic";
}
panic("Unkown chip type '%s'.\n", this->device.c_str());
panic("Unknown chip type '%s'.\n", this->device.c_str());
}
int FpgaConfig::tile_width(const string &type) const
@ -896,7 +896,7 @@ int FpgaConfig::tile_width(const string &type) const
if (type == "ramb") return 42;
if (type == "ramt") return 42;
if (type == "io") return 18;
panic("Unkown tile type '%s'.\n", type.c_str());
panic("Unknown tile type '%s'.\n", type.c_str());
}
void FpgaConfig::cram_clear()