Skip to content

Commit

Permalink
Allow Chip.global_data as backwards-compatible alias for for Chip.glo…
Browse files Browse the repository at this point in the history
…bal_data_ecp5.
  • Loading branch information
cr1901 committed Aug 22, 2020
1 parent 3babbaf commit 7428bfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libtrellis/src/PyTrellis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ BOOST_PYTHON_MODULE (pytrellis)
.def_readwrite("tiles", &Chip::tiles)
.def_readwrite("usercode", &Chip::usercode)
.def_readwrite("metadata", &Chip::metadata)
// Alias for backwards compatibility.
.def_readwrite("global_data", &Chip::global_data_ecp5)
.def_readwrite("global_data_ecp5", &Chip::global_data_ecp5)
.def_readwrite("global_data_machxo2", &Chip::global_data_machxo2)
.def(self - self);
Expand Down

0 comments on commit 7428bfc

Please sign in to comment.