Skip to content

Commit 6d9095e

Browse files
committed
WIP support for setting the iostd
1 parent bcab74c commit 6d9095e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

himbaechel/uarch/gowin/gowin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ NPNR_PACKED_STRUCT(struct Constraint_POD {
135135
int32_t row;
136136
int32_t col;
137137
int32_t bel;
138+
int32_t iostd;
138139
});
139140

140141
NPNR_PACKED_STRUCT(struct Extra_package_data_POD {

himbaechel/uarch/gowin/gowin_arch_gen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,12 @@ class PackageExtraData(BBAStruct):
251251

252252
def serialise_lists(self, context: str, bba: BBAWriter):
253253
bba.label(f"{context}_constraints")
254-
for (net, row, col, bel) in self.cst:
254+
for (net, row, col, bel, iostd) in self.cst:
255255
bba.u32(self.strs.id(net).index)
256256
bba.u32(row)
257257
bba.u32(col)
258258
bba.u32(ord(bel[0])-ord('A')+IOBA_Z)
259+
bba.u32(self.strs.id(iostd).index if iostd else 0)
259260

260261
def serialise(self, context: str, bba: BBAWriter):
261262
bba.slice(f"{context}_constraints", len(self.cst))

0 commit comments

Comments
 (0)