OpenCores
URL https://opencores.org/ocsvn/System09/System09/trunk

Subversion Repositories System09

[/] [System09/] [rev_86/] [src/] [Flex9/] [Makefile] - Blame information for rev 171

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 59 davidgb
#-----------------------------------------------------------------
2
# File:    Makefile
3
# Author:  David Burnette
4
# Date:    April 7, 2008
5
#
6
# Description:
7
#  This makefile generates a VHDL file from assembler source.
8
#  A translate rule in mktargets.mk handles compiling the .asm
9 80 davidgb
#  into a S19 record file (.s19) and then running s19tovhd to
10 59 davidgb
#  generate a VHDL file with SPARTAN3 block rams with INIT generics
11
#  containing the binary data.
12
#
13
#  This particular makefile handles generating FLEX9 code.
14
#
15
# Usage:
16
#  This make file is called recursively by the board-specific
17
#  makefiles in the 'rtl' directory. The targets generated by
18
#  this makefile are:
19
#
20
#    make                     - makes all variants
21
#    make all                 - makes all variants
22
#    make flex9ide.vhd        - Flex for and IDE drive mapped at $E100 with
23
#                               16 bit transfers (Used on XSA-3S1000/XST-3.0)
24
#    make flex9cf8.vhd        - Flex for Compact Flash mapped at $E040
25
#                               with 8 bit transfers (Used on B5-X300)
26
#    make flex9ram.vhd        - Flex with RAM disk drivers (Untested)
27
#                               (Used on Spartan 3 Starter board)
28
#    make flex9ads.vhd        -
29
#
30
# Target Descriptions:
31
#  The first file listed is the source file passed to assembler.
32
#  Remaining files are the dependencies. The option variables
33
#  ADDRS, ENTITY and TOP_RAM are used by the s19tovhd utility
34
#  to generate the VHDL file.
35
#
36
# Dependencies:
37
#  This makefile depends on def_rules.mk and the top-level
38
#  ram model file flex_ram_vhd.
39
#
40
# Revision History:
41
#   dgb 2008-04-07   Original version
42
#
43
#-----------------------------------------------------------------
44
 
45
ifeq "$(MKFRAGS)" ""
46
MKFRAGS := ../../mkfiles
47
endif
48
 
49
include $(MKFRAGS)/def_rules.mk
50
 
51
BASE_FLEX_FILES := \
52
  f9-moneq.asm \
53
  f9-equ.asm \
54
  f9-spool.asm \
55
  f9-sfcb.asm \
56
  f9-init.asm \
57
  f9-var.asm \
58
  f9-data.asm \
59
  f9-cli.asm \
60
  f9-monio.asm \
61
  f9-fms.asm
62
 
63
all: flex9ide.vhd flex9cf8.vhd flex9ram.vhd flex9ads.vhd
64
 
65
flex9ide.vhd: flex9ide.asm $(BASE_FLEX_FILES) f9-dkide.asm
66
flex9ide.vhd: ADDRS=C000 C800 D000 D800
67
flex9ide.vhd: ENTITY=FLEX9
68
flex9ide.vhd: TOP_RAM=flex_ram_vhd
69
 
70
flex9cf8.vhd: flex9cf8.asm $(BASE_FLEX_FILES) f9-dkcf8.asm
71
flex9cf8.vhd: ADDRS=C000 C800 D000 D800
72
flex9cf8.vhd: ENTITY=FLEX9
73
flex9cf8.vhd: TOP_RAM=flex_ram_vhd
74
 
75
flex9ram.vhd: flex9ram.asm $(BASE_FLEX_FILES) f9-dkram.asm
76
flex9ram.vhd: ADDRS=C000 C800 D000 D800
77
flex9ram.vhd: ENTITY=FLEX9
78
flex9ram.vhd: TOP_RAM=flex_ram_vhd
79
 
80
flex9ads.vhd: flex9ads.asm $(BASE_FLEX_FILES) f9-dkfdc.asm
81
flex9ads.vhd: ADDRS=C000 C800 D000 D800
82
flex9ads.vhd: ENTITY=FLEX9
83
flex9ads.vhd: TOP_RAM=flex_ram_vhd
84
 
85
.PHONY: clean
86
clean:
87 80 davidgb
        -$(RM) *.s19
88 59 davidgb
        -$(RM) *.lst
89
        -$(RM) *.vhd

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.