minispartan6: Change video resolution to 640x480, framebuffer working with Linux-on-LiteX-Vexriscv.
This commit is contained in:
parent
09700b28d0
commit
58286ce29e
|
@ -58,8 +58,8 @@ class _CRG(Module):
|
||||||
else:
|
else:
|
||||||
pll.create_clkout(self.cd_sys_ps, sys_clk_freq, phase=90)
|
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.
|
#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_hdmi, 1*24e6, margin=0)
|
||||||
pll.create_clkout(self.cd_hdmi5x, 5*40e6)
|
pll.create_clkout(self.cd_hdmi5x, 5*24e6, margin=0)
|
||||||
|
|
||||||
# SDRAM clock
|
# SDRAM clock
|
||||||
sdram_clk = ClockSignal("sys2x_ps" if sdram_rate == "1:2" else "sys_ps")
|
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),
|
size = kwargs.get("max_sdram_size", 0x40000000),
|
||||||
l2_cache_size = kwargs.get("l2_size", 8192),
|
l2_cache_size = kwargs.get("l2_size", 8192),
|
||||||
l2_cache_min_data_width = kwargs.get("min_l2_data_width", 128),
|
l2_cache_min_data_width = kwargs.get("min_l2_data_width", 128),
|
||||||
l2_cache_reverse = True
|
l2_cache_reverse = False
|
||||||
)
|
)
|
||||||
|
|
||||||
# Video ------------------------------------------------------------------------------------
|
# Video ------------------------------------------------------------------------------------
|
||||||
if with_video_terminal or with_video_framebuffer:
|
if with_video_terminal or with_video_framebuffer:
|
||||||
self.submodules.videophy = VideoS6HDMIPHY(platform.request("hdmi_out"), clock_domain="hdmi")
|
self.submodules.videophy = VideoS6HDMIPHY(platform.request("hdmi_out"), clock_domain="hdmi")
|
||||||
if with_video_terminal:
|
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:
|
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 -------------------------------------------------------------------------------------
|
# Leds -------------------------------------------------------------------------------------
|
||||||
self.submodules.leds = LedChaser(
|
self.submodules.leds = LedChaser(
|
||||||
|
|
Loading…
Reference in New Issue