make beeper seperate from gpu and also move modules into their own files

This commit is contained in:
Nicholas Orlowsky 2024-01-31 15:53:31 -06:00
parent 6bd5af390f
commit 044d846313
3 changed files with 13 additions and 354 deletions

View file

@ -2,10 +2,10 @@ SDL_CFLAGS = `sdl2-config --cflags`
SDL_LDFLAGS = `sdl2-config --libs`
lint:
verilator --lint-only --timing yayacemu.sv rom_loader.sv
verilator --lint-only --timing *.sv
build: lint
verilator --cc --exe --build --timing -j 0 yayacemu.sv rom_loader.sv yayacemu.cpp -CFLAGS "${SDL_CFLAGS}" -LDFLAGS "${SDL_LDFLAGS}" && clear
verilator --cc --exe --build --timing -j 0 --top-module yayacemu *.sv yayacemu.cpp -CFLAGS "${SDL_CFLAGS}" -LDFLAGS "${SDL_LDFLAGS}" && clear
run: build
obj_dir/Vyayacemu ${ROM_FILE}