build/platform: allow doing a loose lookup_request (return None instead of Constraint...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 5 May 2020 09:23:46 +0000 (11:23 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 5 May 2020 09:23:46 +0000 (11:23 +0200)
commitd0b8daa005c332b97e3014576b4e6aabfaeccef1
tree1c541cc484a95ee7b900ab4229c6c748dba5d847
parentb8f9f83a8fb0a9280dadde45ea9ac8d2ae53bb43
build/platform: allow doing a loose lookup_request (return None instead of ConstraintError) and allow subname in lookup_request.

In the platforms, insead of doing:
self.lookup_request("eth_clocks").rx
we can now do:
self.lookup_request("eth_clocks:rx")

This allows some try/except simplifications on constraints.
litex/build/altera/platform.py
litex/build/generic_platform.py
litex/build/lattice/platform.py
litex/build/microsemi/platform.py
litex/build/xilinx/platform.py