From 7428bfc0cd3ffab6704bb32a45eb03c2da879ccd Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Sat, 22 Aug 2020 02:00:11 -0400 Subject: [PATCH] Allow Chip.global_data as backwards-compatible alias for for Chip.global_data_ecp5. --- libtrellis/src/PyTrellis.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtrellis/src/PyTrellis.cpp b/libtrellis/src/PyTrellis.cpp index 8133e7e1..3ea2f7dc 100644 --- a/libtrellis/src/PyTrellis.cpp +++ b/libtrellis/src/PyTrellis.cpp @@ -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);