You'll want Yosys itself; I am using Yosys 0.8+531 (git commit d4f77d40).
Gather all the information you can about your target; the more, the better.
As an example, I'm going to use the publicly available [Cyclone V Device Handbook][handbook]. Intel have not released any documentation of the Cyclone V bitstream, and reverse engineering