| 1 |
301 |
jshamlet |
; Copyright (c)2022 Jeremy Seth Henry
|
| 2 |
|
|
; All rights reserved.
|
| 3 |
|
|
;
|
| 4 |
|
|
; Redistribution and use in source and binary forms, with or without
|
| 5 |
|
|
; modification, are permitted provided that the following conditions are met:
|
| 6 |
|
|
; * Redistributions of source code must retain the above copyright
|
| 7 |
|
|
; notice, this list of conditions and the following disclaimer.
|
| 8 |
|
|
; * Redistributions in binary form must reproduce the above copyright
|
| 9 |
|
|
; notice, this list of conditions and the following disclaimer in the
|
| 10 |
|
|
; documentation and/or other materials provided with the distribution,
|
| 11 |
|
|
; where applicable (as part of a user interface, debugging port, etc.)
|
| 12 |
|
|
;
|
| 13 |
|
|
; THIS SOFTWARE IS PROVIDED BY JEREMY SETH HENRY ``AS IS'' AND ANY
|
| 14 |
|
|
; EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 15 |
|
|
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 16 |
|
|
; DISCLAIMED. IN NO EVENT SHALL JEREMY SETH HENRY BE LIABLE FOR ANY
|
| 17 |
|
|
; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 18 |
|
|
; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 19 |
|
|
; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
| 20 |
|
|
; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 21 |
|
|
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
| 22 |
|
|
; THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 23 |
|
|
;
|
| 24 |
|
|
;------------------------------------------------------------------------------
|
| 25 |
|
|
; sys_hw_map.s
|
| 26 |
|
|
;
|
| 27 |
|
|
; Defines the interface between HDL and assembly, and should be derived from
|
| 28 |
|
|
; Open8_cfg.vhd (this is a minimal configuration)
|
| 29 |
|
|
;
|
| 30 |
|
|
; Revision History
|
| 31 |
|
|
; Author Date Change
|
| 32 |
|
|
;---------------- -------- ---------------------------------------------------
|
| 33 |
|
|
; Seth Henry 7/15/22 Initial Release
|
| 34 |
|
|
;------------------------------------------------------------------------------
|
| 35 |
|
|
|
| 36 |
|
|
;------------------------------------------------------------------------------
|
| 37 |
|
|
; System Memory Map from Open8_cfg
|
| 38 |
|
|
;------------------------------------------------------------------------------
|
| 39 |
|
|
.DEFINE RAM_Address $0000 ; System RAM
|
| 40 |
|
|
.DEFINE WPR_Address $1000 ; RAM Write Protect Mask
|
| 41 |
|
|
.DEFINE WQL_Address $1020 ; I/O Write Qual Register
|
| 42 |
|
|
.DEFINE INT_Address $1040 ; Cascaded Interrupt Manager
|
| 43 |
|
|
;...
|
| 44 |
|
|
.DEFINE ROM_Address $8000 ; Application ROM
|
| 45 |
|
|
.DEFINE ISR_Start_Addr $FFF0 ; ISR vector table
|
| 46 |
|
|
;------------------------------------------------------------------------------
|
| 47 |
|
|
|
| 48 |
|
|
;------------------------------------------------------------------------------
|
| 49 |
|
|
; Interrupt Manager Selection
|
| 50 |
|
|
;
|
| 51 |
|
|
; Uncomment the INTMGR16 define if using the 16-bit "complex" interrupt manager
|
| 52 |
|
|
; firmware. Otherwise, the 8-bit "simple" external interrupt manager is
|
| 53 |
|
|
; assumed. Note that the interfaces are NOT register compatible, so this will
|
| 54 |
|
|
; break the system if the wrong manager is selected!
|
| 55 |
|
|
;
|
| 56 |
|
|
;.DEFINE INTMGR16
|
| 57 |
|
|
;------------------------------------------------------------------------------
|
| 58 |
|
|
|
| 59 |
|
|
;------------------------------------------------------------------------------
|
| 60 |
|
|
; RAM Configuration
|
| 61 |
|
|
;------------------------------------------------------------------------------
|
| 62 |
|
|
; Define the size of the memory and number of partitions in order to configure
|
| 63 |
|
|
; the region size constant - which will be used by tasks to assign their
|
| 64 |
|
|
; write-protection requirements
|
| 65 |
|
|
.DEFINE RAM_Size 4096
|
| 66 |
|
|
.DEFINE RAM_Partitions 32
|
| 67 |
|
|
;------------------------------------------------------------------------------
|
| 68 |
|
|
|
| 69 |
|
|
;------------------------------------------------------------------------------
|
| 70 |
|
|
; Write Qualification Groups from Open8_cfg
|
| 71 |
|
|
;------------------------------------------------------------------------------
|
| 72 |
|
|
|
| 73 |
|
|
;------------------------------------------------------------------------------
|