2023-02-16 01:46:22 +00:00
|
|
|
# This file is part of the 9086 project.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2023 Efthymios Kritikos
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
SOURCES=processor.v testbench.v memory.v registers.v alu.v
|
|
|
|
INCLUDES=proc_state_def.v alu_header.v config.v
|
|
|
|
SYSTEM_VVP=system.vvp
|
|
|
|
BOOT_CODE=boot_code.txt
|
|
|
|
GTKWSAVE=../gtkwave_savefile.gtkw
|
|
|
|
|
|
|
|
include ../common.mk
|
|
|
|
|
|
|
|
# COMPILING
|
|
|
|
${SYSTEM_VVP} : ${SOURCES} ${INCLUDES}
|
|
|
|
${QUIET_IVERILOG}
|
2023-02-16 23:26:32 +00:00
|
|
|
${Q}iverilog -g2012 -o "$@" ${SOURCES}
|
2023-02-16 01:46:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(call QUIET_CLEAN,system)
|
|
|
|
${Q}rm -f ${SYSTEM_VVP} *.lx2 boot_code.txt boot_code.bin *memdump *memdumptxt
|