build/lattice/icestorm/add_period_constraint: improve
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 31 Dec 2019 09:25:51 +0000 (10:25 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 31 Dec 2019 09:30:09 +0000 (10:30 +0100)
commitfe4eaf58608fbffaf1ec4ce08ca3ec3c9432405f
tree73d54f1a5a5a5e9eb632fe5f80fc6fb82b198e9f
parent6b91e8827c62a78d555d50e932de657e74e8fb1a
build/lattice/icestorm/add_period_constraint: improve

- store period in ns.
- pass clocks to_build_pre_pack and do the convertion to MHz there.
- improve error message.
litex/build/lattice/icestorm.py