#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
# File: def_rules.mk
|
# File: def_rules.mk
|
# Author: David Burnette
|
# Author: David Burnette
|
# Date: April 7, 2008
|
# Date: April 7, 2008
|
#
|
#
|
# Description:
|
# Description:
|
#
|
#
|
# Usage:
|
# Usage:
|
# This make file fragment contains default translate rules.
|
# This make file fragment contains default translate rules.
|
#
|
#
|
# Dependencies:
|
# Dependencies:
|
# Depends on 'def_cmds.mk' fragment.
|
# Depends on 'def_cmds.mk' fragment.
|
#
|
#
|
# Revision History:
|
# Revision History:
|
# dgb 2008-04-07 Original version
|
# dgb 2008-04-07 Original version
|
#
|
#
|
#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
|
|
#===================================================================
|
#===================================================================
|
# Include default commands
|
# Include default commands
|
|
|
include $(MKFRAGS)/def_cmds.mk
|
include $(MKFRAGS)/def_cmds.mk
|
|
|
#===================================================================
|
#===================================================================
|
# TRANSLATE RULES
|
# TRANSLATE RULES
|
|
|
# RULE: .asm => .s19
|
# RULE: .asm => .s19
|
# Assemble 6809 source into S19 record file
|
# Assemble 6809 source into S19 record file
|
%.s19: %.asm
|
%.s19: %.asm
|
@$(ECHO)
|
@$(ECHO)
|
@$(ECHO) "======= Running 6809 assembler to generate ROM code ================"
|
@$(ECHO) "======= Running 6809 assembler to generate ROM code ================"
|
$(ASM) $(notdir $<) >$(basename $@).lst
|
$(ASM) $(notdir $<) >$(basename $@).lst
|
|
|
# RULE: .s19 => .vhd
|
# RULE: .s19 => .vhd
|
# Build a VHDL file instantiated BRAMS initialized with the source from a S19 file
|
# Build a VHDL file instantiated BRAMS initialized with the source from a S19 file
|
%.vhd: %.s19
|
%.vhd: %.s19
|
@$(ECHO)
|
@$(ECHO)
|
@$(ECHO) "======= Generating Xilinx block RAM to hold ROM code ================"
|
@$(ECHO) "======= Generating Xilinx block RAM to hold ROM code ================"
|
$(s19tovhd) $< $@ $(ENTITY) $(ADDRS)
|
$(s19tovhd) $< $@ $(ENTITY) $(ADDRS)
|
$(CAT) $(TOP_RAM) >>$@
|
$(CAT) $(TOP_RAM) >>$@
|
|
|
|
|