From 58286ce29e6228006239a55a22bee6a9b43e6da9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 29 Mar 2021 14:36:34 +0200 Subject: [PATCH] minispartan6: Change video resolution to 640x480, framebuffer working with Linux-on-LiteX-Vexriscv. --- litex_boards/targets/scarabhardware_minispartan6.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litex_boards/targets/scarabhardware_minispartan6.py b/litex_boards/targets/scarabhardware_minispartan6.py index d30bd05..9ea2727 100755 --- a/litex_boards/targets/scarabhardware_minispartan6.py +++ b/litex_boards/targets/scarabhardware_minispartan6.py @@ -58,8 +58,8 @@ class _CRG(Module): else: pll.create_clkout(self.cd_sys_ps, sys_clk_freq, phase=90) #platform.add_false_path_constraints(self.cd_sys.clk, pll.clkin) # Ignore sys_clk to pll.clkin path created by SoC's rst. - pll.create_clkout(self.cd_hdmi, 1*40e6) - pll.create_clkout(self.cd_hdmi5x, 5*40e6) + pll.create_clkout(self.cd_hdmi, 1*24e6, margin=0) + pll.create_clkout(self.cd_hdmi5x, 5*24e6, margin=0) # SDRAM clock sdram_clk = ClockSignal("sys2x_ps" if sdram_rate == "1:2" else "sys_ps") @@ -91,16 +91,16 @@ class BaseSoC(SoCCore): size = kwargs.get("max_sdram_size", 0x40000000), l2_cache_size = kwargs.get("l2_size", 8192), l2_cache_min_data_width = kwargs.get("min_l2_data_width", 128), - l2_cache_reverse = True + l2_cache_reverse = False ) # Video ------------------------------------------------------------------------------------ if with_video_terminal or with_video_framebuffer: self.submodules.videophy = VideoS6HDMIPHY(platform.request("hdmi_out"), clock_domain="hdmi") if with_video_terminal: - self.add_video_terminal(phy=self.videophy, timings="800x600@60Hz", clock_domain="hdmi") + self.add_video_terminal(phy=self.videophy, timings="640x480@75Hz", clock_domain="hdmi") if with_video_framebuffer: - self.add_video_framebuffer(phy=self.videophy, timings="800x600@60Hz", clock_domain="hdmi") + self.add_video_framebuffer(phy=self.videophy, timings="640x480@75Hz", clock_domain="hdmi") # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser(