litex/examples/de0_nano/build.py

22 lines
456 B
Python
Raw Normal View History

#!/usr/bin/env python3
import os
2013-02-28 16:40:35 -05:00
from mibuild.platforms import de0nano
2012-09-09 15:18:09 -04:00
import top
2013-02-28 16:40:35 -05:00
def main():
2013-03-26 17:14:25 -04:00
platform = de0nano.Platform()
soc = top.SoC(platform)
2013-02-28 16:40:35 -05:00
# set extra constraints
2013-03-26 17:14:25 -04:00
platform.add_platform_command("""
2013-02-28 16:40:35 -05:00
set_global_assignment -name FAMILY "Cyclone IV E"
set_global_assignment -name TOP_LEVEL_ENTITY "top"
set_global_assignment -name VERILOG_INPUT_VERSION SYSTEMVERILOG_2005
""")
2012-09-09 15:18:09 -04:00
2013-03-26 17:14:25 -04:00
platform.build_cmdline(soc)
2012-09-09 15:18:09 -04:00
2013-02-28 16:40:35 -05:00
if __name__ == "__main__":
main()