Reduce line width, adding some switchboxes
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
f4c62e233c
commit
a1cd9fcf73
@ -346,7 +346,7 @@ void FPGAViewWidget::paintGL()
|
||||
matrix.scale(zoom_ * 0.01f, zoom_ * 0.01f, 0);
|
||||
|
||||
// Draw grid.
|
||||
auto grid = LineShaderData(0.01f, QColor("#DDD"));
|
||||
auto grid = LineShaderData(0.001f, QColor("#DDD"));
|
||||
for (float i = -100.0f; i < 100.0f; i += 1.0f) {
|
||||
PolyLine(-100.0f, i, 100.0f, i).build(grid);
|
||||
PolyLine(i, -100.0f, i, 100.0f).build(grid);
|
||||
@ -354,7 +354,7 @@ void FPGAViewWidget::paintGL()
|
||||
lineShader_.draw(grid, matrix);
|
||||
|
||||
// Draw Bels.
|
||||
auto bels = LineShaderData(0.02f, QColor("#b000ba"));
|
||||
auto bels = LineShaderData(0.002f, QColor("#b000ba"));
|
||||
if (ctx_) {
|
||||
for (auto bel : ctx_->getBels()) {
|
||||
for (auto &el : ctx_->getBelGraphics(bel))
|
||||
@ -364,7 +364,7 @@ void FPGAViewWidget::paintGL()
|
||||
}
|
||||
|
||||
// Draw Frame Graphics.
|
||||
auto frames = LineShaderData(0.02f, QColor("#0066ba"));
|
||||
auto frames = LineShaderData(0.002f, QColor("#0066ba"));
|
||||
if (ctx_) {
|
||||
for (auto &el : ctx_->getFrameGraphics()) {
|
||||
drawElement(frames, el);
|
||||
|
@ -424,12 +424,36 @@ std::vector<GraphicElement> Arch::getBelGraphics(BelId bel) const
|
||||
if (bel_type == TYPE_ICESTORM_LC) {
|
||||
GraphicElement el;
|
||||
el.type = GraphicElement::G_BOX;
|
||||
el.x1 = chip_info->bel_data[bel.index].x + 0.1;
|
||||
el.x2 = chip_info->bel_data[bel.index].x + 0.9;
|
||||
el.y1 = chip_info->bel_data[bel.index].y + 0.10 + (chip_info->bel_data[bel.index].z) * (0.8 / 8);
|
||||
el.y2 = chip_info->bel_data[bel.index].y + 0.18 + (chip_info->bel_data[bel.index].z) * (0.8 / 8);
|
||||
el.x1 = chip_info->bel_data[bel.index].x + 0.82;
|
||||
el.x2 = chip_info->bel_data[bel.index].x + 0.92;
|
||||
el.y1 = chip_info->bel_data[bel.index].y + 0.30 + (chip_info->bel_data[bel.index].z) * (0.6 / 8);
|
||||
el.y2 = chip_info->bel_data[bel.index].y + 0.35 + (chip_info->bel_data[bel.index].z) * (0.6 / 8);
|
||||
el.z = 0;
|
||||
ret.push_back(el);
|
||||
|
||||
if (chip_info->bel_data[bel.index].z == 0) {
|
||||
int tx = chip_info->bel_data[bel.index].x;
|
||||
int ty = chip_info->bel_data[bel.index].y;
|
||||
// Local tracks to LUT input switchbox
|
||||
GraphicElement lc_lut_sw;
|
||||
lc_lut_sw.type = GraphicElement::G_BOX;
|
||||
lc_lut_sw.x1 = tx + 0.75;
|
||||
lc_lut_sw.x2 = tx + 0.8;
|
||||
lc_lut_sw.y1 = ty + 0.30;
|
||||
lc_lut_sw.y2 = ty + 0.875;
|
||||
lc_lut_sw.z = 0;
|
||||
ret.push_back(lc_lut_sw);
|
||||
// Local tracks switchbox
|
||||
GraphicElement lc_sw;
|
||||
lc_sw.type = GraphicElement::G_BOX;
|
||||
lc_sw.x1 = tx + 0.6;
|
||||
lc_sw.x2 = tx + 0.7;
|
||||
lc_sw.y1 = ty + 0.65;
|
||||
lc_sw.y2 = ty + 0.75;
|
||||
ret.push_back(lc_sw);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (bel_type == TYPE_SB_IO) {
|
||||
|
Loading…
Reference in New Issue
Block a user