Skip to content

Commit 36c5d0a

Browse files
committed
test: cover framebuffer memory backends
Build the Nexys Video framebuffer in both its normal LiteDRAM configuration and with integrated main RAM. These no-compile target builds guard native and system-bus framebuffer integration without introducing unverified board modes.
1 parent 30ea19b commit 36c5d0a

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

test/test_targets.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,30 @@ def test_target_parsers_smoke(self):
252252
if result.returncode != 0:
253253
self.fail(result.stdout)
254254

255+
# Build a framebuffer target with native SDRAM and integrated main RAM.
256+
def test_video_framebuffer_memory_backends(self):
257+
configurations = {
258+
"litedram" : [],
259+
"integrated_ram" : ["--integrated-main-ram-size=0x400000"],
260+
}
261+
for name, args in configurations.items():
262+
with self.subTest(configuration=name):
263+
output_dir = os.path.join("build", "test_video_framebuffer_memory_backends", name)
264+
shutil.rmtree(output_dir, ignore_errors=True)
265+
cmd = [
266+
sys.executable,
267+
"-m", "litex_boards.targets.digilent_nexys_video",
268+
"--cpu-type=vexriscv",
269+
"--cpu-variant=minimal",
270+
"--uart-name=stub",
271+
"--with-video-framebuffer",
272+
"--build",
273+
"--no-compile",
274+
"--output-dir", output_dir,
275+
*args,
276+
]
277+
subprocess.check_call(cmd)
278+
255279
# Build simple design for all platforms.
256280
def test_platforms(self):
257281
# Collect platforms.

0 commit comments

Comments
 (0)