diff options
| author | Clifford Wolf <clifford@clifford.at> | 2018-06-06 17:08:58 +0200 | 
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2018-06-06 17:08:58 +0200 | 
| commit | afbae1bb99f6a8cd13dbe96da89bb28a4c9aa3c1 (patch) | |
| tree | 1d76901b87081a8e6ced886f985e5e4479b61df8 /ice40/chip.h | |
| parent | a04436e19b80bc3d7e308cae2134c98b7a7d6473 (diff) | |
| parent | 28e22769068fc41f8c87349a180e76565a2c297b (diff) | |
| download | nextpnr-afbae1bb99f6a8cd13dbe96da89bb28a4c9aa3c1.tar.gz nextpnr-afbae1bb99f6a8cd13dbe96da89bb28a4c9aa3c1.tar.bz2 nextpnr-afbae1bb99f6a8cd13dbe96da89bb28a4c9aa3c1.zip  | |
Merge branch 'ice40-xy'
Diffstat (limited to 'ice40/chip.h')
| -rw-r--r-- | ice40/chip.h | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/ice40/chip.h b/ice40/chip.h index 1f46ccd2..2f0a1284 100644 --- a/ice40/chip.h +++ b/ice40/chip.h @@ -164,6 +164,7 @@ struct BelInfoPOD  {  	const char *name;  	BelType type; +	int8_t x, y, z;  };  struct BelPortPOD @@ -176,6 +177,7 @@ struct PipInfoPOD  {  	int32_t src, dst;  	float delay; +	int8_t x, y;  };  struct WireInfoPOD @@ -187,10 +189,13 @@ struct WireInfoPOD  	int num_bels_downhill;  	BelPortPOD bel_uphill;  	BelPortPOD *bels_downhill; + +	float x, y;  };  struct ChipInfoPOD  { +	int width, height;  	int num_bels, num_wires, num_pips;  	BelInfoPOD *bel_data;  	WireInfoPOD *wire_data; @@ -605,7 +610,7 @@ struct Chip  	void getBelPosition(BelId bel, float &x, float &y) const;  	void getWirePosition(WireId wire, float &x, float &y) const; -	void getPipPosition(WireId wire, float &x, float &y) const; +	void getPipPosition(PipId pip, float &x, float &y) const;  	vector<GraphicElement> getBelGraphics(BelId bel) const;  	vector<GraphicElement> getWireGraphics(WireId wire) const;  	vector<GraphicElement> getPipGraphics(PipId pip) const;  | 
