Modelsim error: "Fatal: SDF files require Lattice FPGA Edition primitive library"
Description:
In ModelSim, this error can be encountered if necessary libraries are missing to simulate the design.
Solution:
To work around this issue, please try including the following in the testbench (ecp5u used as an example):
library ecp5u;
use ecp5u.all;