ebr, mult and alu nice display
This commit is contained in:
parent
6d005f38b5
commit
19eb16045f
@ -711,7 +711,7 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
|
||||
el.style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_INACTIVE;
|
||||
el.x1 = x + slice_x1;
|
||||
el.x2 = x + 0.97;
|
||||
el.y1 = y + slice_y1;
|
||||
el.y1 = y + slice_y1 - 1 * slice_pitch;
|
||||
el.y2 = y + slice_y2 + 3 * slice_pitch;
|
||||
ret.push_back(el);
|
||||
} else if (bel_type == id_EHXPLLL) {
|
||||
|
17
ecp5/gfx.cc
17
ecp5/gfx.cc
@ -181,7 +181,7 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, int w, int h, IdS
|
||||
el.x1 = x + slice_x1 - 0.005f;
|
||||
el.x2 = x + slice_x1;
|
||||
el.y1 = y + slice_y2 - 0.0017f * (tilewire - TILE_WIRE_JADA0_EBR + 1) + 3 * slice_pitch;
|
||||
el.y2 = y + slice_y2 - 0.0017f * (tilewire - TILE_WIRE_JADA0_EBR + 1) + 3 * slice_pitch;
|
||||
el.y2 = el.y1;
|
||||
g.push_back(el);
|
||||
}
|
||||
if (wire_type == id_WIRE_TYPE_MULT18) {
|
||||
@ -191,17 +191,24 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, int w, int h, IdS
|
||||
el.x1 = x + slice_x1 - 0.005f;
|
||||
el.x2 = x + slice_x1;
|
||||
el.y1 = y + slice_y2 - 0.00085f * (tilewire - TILE_WIRE_JCLK0_MULT18 + 1) + 3 * slice_pitch;
|
||||
el.y2 = y + slice_y2 - 0.00085f * (tilewire - TILE_WIRE_JCLK0_MULT18 + 1) + 3 * slice_pitch;
|
||||
el.y2 = el.y1;
|
||||
g.push_back(el);
|
||||
}
|
||||
if (wire_type == id_WIRE_TYPE_ALU54) {
|
||||
GraphicElement el;
|
||||
el.type = GraphicElement::TYPE_LINE;
|
||||
el.style = style;
|
||||
int num = (tilewire - TILE_WIRE_JCLK0_ALU54) % 225;
|
||||
int group = (tilewire - TILE_WIRE_JCLK0_ALU54) / 225;
|
||||
if (group==0) {
|
||||
el.x1 = x + slice_x1 - 0.005f;
|
||||
el.x2 = x + slice_x1;
|
||||
el.y1 = y + slice_y2 - 0.00085f * (tilewire - TILE_WIRE_JCLK0_ALU54 + 1) + 3 * slice_pitch;
|
||||
el.y2 = y + slice_y2 - 0.00085f * (tilewire - TILE_WIRE_JCLK0_ALU54 + 1) + 3 * slice_pitch;
|
||||
} else {
|
||||
el.x1 = x + 0.97 + 0.005f;
|
||||
el.x2 = x + 0.97;
|
||||
}
|
||||
el.y1 = y + slice_y2 - 0.00085f * (num + 1) + 3 * slice_pitch;
|
||||
el.y2 = el.y1;
|
||||
g.push_back(el);
|
||||
}
|
||||
if (wire_type == id_WIRE_TYPE_V01) {
|
||||
@ -528,7 +535,7 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, int w, int h, IdS
|
||||
el.type = GraphicElement::TYPE_LINE;
|
||||
el.style = style;
|
||||
el.x1 = x + switchbox_x2;
|
||||
el.x2 = x + slice_x1 - 0.0025f;
|
||||
el.x2 = x + switchbox_x2 + 0.005f;
|
||||
el.y1 = y + slice_y2 - 0.0017f * (tilewire - TILE_WIRE_JCE0 + 1) + 3 * slice_pitch;
|
||||
el.y2 = y + slice_y2 - 0.0017f * (tilewire - TILE_WIRE_JCE0 + 1) + 3 * slice_pitch;
|
||||
g.push_back(el);
|
||||
|
Loading…
Reference in New Issue
Block a user