diff --git a/litex_boards/targets/digilent_nexys_video.py b/litex_boards/targets/digilent_nexys_video.py index ab84b03..c257b49 100755 --- a/litex_boards/targets/digilent_nexys_video.py +++ b/litex_boards/targets/digilent_nexys_video.py @@ -72,7 +72,7 @@ class _CRG(Module): class BaseSoC(SoCCore): def __init__(self, toolchain="vivado", sys_clk_freq=int(100e6), with_ethernet=False, - with_led_chaser=True, with_sata=False, vadj="1.2V", with_video_terminal=False, + with_led_chaser=True, with_sata=False, sata_gen = "gen2", vadj="1.2V", with_video_terminal=False, with_video_framebuffer=False, **kwargs): platform = nexys_video.Platform(toolchain=toolchain) @@ -127,7 +127,7 @@ class BaseSoC(SoCCore): # PHY self.submodules.sata_phy = LiteSATAPHY(platform.device, pads = platform.request("fmc2sata"), - gen = "gen2", + gen = sata_gen, clk_freq = sys_clk_freq, data_width = 16) @@ -165,6 +165,7 @@ def main(): sdopts.add_argument("--with-spi-sdcard", action="store_true", help="Enable SPI-mode SDCard support.") sdopts.add_argument("--with-sdcard", action="store_true", help="Enable SDCard support.") parser.add_argument("--with-sata", action="store_true", help="Enable SATA support (over FMCRAID).") + parser.add_argument("--sata-gen", default="2", help="SATA Gen.", choices=["1", "2", "3"]) parser.add_argument("--vadj", default="1.2V", help="FMC VADJ value.", choices=["1.2V", "1.8V", "2.5V", "3.3V"]) viopts = parser.add_mutually_exclusive_group() viopts.add_argument("--with-video-terminal", action="store_true", help="Enable Video Terminal (HDMI).") @@ -179,6 +180,7 @@ def main(): sys_clk_freq = int(float(args.sys_clk_freq)), with_ethernet = args.with_ethernet, with_sata = args.with_sata, + sata_gen = "gen" + args.sata_gen, vadj = args.vadj, with_video_terminal = args.with_video_terminal, with_video_framebuffer = args.with_video_framebuffer,