mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
fix ethernet, factor out video mode
This commit is contained in:
parent
4756b22649
commit
45474f2e1b
1 changed files with 4 additions and 4 deletions
|
@ -109,19 +109,19 @@ class BaseSoC(SoCCore):
|
||||||
data_pads = self.platform.request("sfp", 0),
|
data_pads = self.platform.request("sfp", 0),
|
||||||
sys_clk_freq = self.clk_freq)
|
sys_clk_freq = self.clk_freq)
|
||||||
|
|
||||||
self.add_ethernet(phy=self.ethphy)
|
|
||||||
self.add_etherbone(phy=self.ethphy, ip_address="192.168.0.222")
|
self.add_etherbone(phy=self.ethphy, ip_address="192.168.0.222")
|
||||||
platform.add_platform_command("set_property SEVERITY {{Warning}} [get_drc_checks REQP-52]")
|
platform.add_platform_command("set_property SEVERITY {{Warning}} [get_drc_checks REQP-52]")
|
||||||
|
|
||||||
# Video ------------------------------------------------------------------------------------
|
# Video ------------------------------------------------------------------------------------
|
||||||
if (with_video_colorbars or with_video_framebuffer or with_video_terminal):
|
if (with_video_colorbars or with_video_framebuffer or with_video_terminal):
|
||||||
|
videomode = "800x600@60Hz"
|
||||||
self.submodules.videophy = VideoS7HDMIPHY(platform.request("hdmi_out"), clock_domain="hdmi")
|
self.submodules.videophy = VideoS7HDMIPHY(platform.request("hdmi_out"), clock_domain="hdmi")
|
||||||
if with_video_colorbars:
|
if with_video_colorbars:
|
||||||
self.add_video_colorbars(phy=self.videophy, timings="640x480@60Hz", clock_domain="hdmi")
|
self.add_video_colorbars(phy=self.videophy, timings=videomode, 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=videomode, 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=videomode, clock_domain="hdmi")
|
||||||
|
|
||||||
# Leds -------------------------------------------------------------------------------------
|
# Leds -------------------------------------------------------------------------------------
|
||||||
if with_led_chaser:
|
if with_led_chaser:
|
||||||
|
|
Loading…
Reference in a new issue