Add Repo: LIV2_GottaGoFastRAM
Browse files- LIV2_GottaGoFastRAM/.github/workflows/release.yml +26 -0
- LIV2_GottaGoFastRAM/Images/wavedrom-waveforms.txt +36 -0
- LIV2_GottaGoFastRAM/LICENSE.md +189 -0
- LIV2_GottaGoFastRAM/README.md +72 -0
- LIV2_GottaGoFastRAM/RTL/gottagofast.v +326 -0
- LIV2_GottaGoFastRAM/Rev_A/LICENSE.md +189 -0
- LIV2_GottaGoFastRAM/Rev_A/README.md +48 -0
LIV2_GottaGoFastRAM/.github/workflows/release.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Generate release files
|
| 2 |
+
|
| 3 |
+
permissions:
|
| 4 |
+
contents: write
|
| 5 |
+
on:
|
| 6 |
+
push:
|
| 7 |
+
tags:
|
| 8 |
+
- "Release_**"
|
| 9 |
+
- "Rev**"
|
| 10 |
+
- "Proto**"
|
| 11 |
+
- "proto**"
|
| 12 |
+
workflow_dispatch:
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
draft_release:
|
| 16 |
+
runs-on: ubuntu-latest
|
| 17 |
+
|
| 18 |
+
steps:
|
| 19 |
+
- name: Checkout
|
| 20 |
+
uses: actions/checkout@v3
|
| 21 |
+
- name: release
|
| 22 |
+
uses: softprops/action-gh-release@v1
|
| 23 |
+
with:
|
| 24 |
+
draft: true
|
| 25 |
+
files: |
|
| 26 |
+
Binaries/*.jed
|
LIV2_GottaGoFastRAM/Images/wavedrom-waveforms.txt
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Used on wavedrom.com to generate timing diagrams
|
| 2 |
+
|
| 3 |
+
{signal: [
|
| 4 |
+
{name: 'State', wave: 'xx=========x', period: 0.5, data: "0 1 2 3 4 5 6 7 0",},
|
| 5 |
+
{name: 'CLK', wave: 'P.....',},
|
| 6 |
+
{name: 'ADDR', wave: 'xxx=......xx', period: 0.5, data: "Match"},
|
| 7 |
+
{name: 'AS', wave: '1...0....1..', period:0.5},
|
| 8 |
+
{name: 'DS', wave: '1...0....1..', period:0.5},
|
| 9 |
+
{name: 'RW', wave: '0.1.........', period:0.5},
|
| 10 |
+
{name: 'BUFFER_OE', wave: '1....0...1..', period:0.5},
|
| 11 |
+
{name: 'WR', wave: '1...........', period:0.5},
|
| 12 |
+
{name: 'DATA', wave: 'x.......=.x.', period:0.5},
|
| 13 |
+
{name: 'MADDR', wave: 'x...=..=..xx',period:0.5, data: "Row Column"},
|
| 14 |
+
{name: 'RAS', wave: '1...010...1.',period:0.5},
|
| 15 |
+
{name: 'CAS', wave: '1..0.1..0.1.',period:0.5},
|
| 16 |
+
],
|
| 17 |
+
head:{text:'Read Cycle', tock: 0,},
|
| 18 |
+
config: {hscale: 2}}
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
{signal: [
|
| 22 |
+
{name: 'State', wave: 'xx=========x', period: 0.5, data: "0 1 2 3 4 5 6 7 0",},
|
| 23 |
+
{name: 'CLK', wave: 'P.....',},
|
| 24 |
+
{name: 'ADDR', wave: 'xxx=......xx', period: 0.5, data: "Match"},
|
| 25 |
+
{name: 'AS', wave: '1...0....1..', period:0.5},
|
| 26 |
+
{name: 'DS', wave: '1.....0..1..', period:0.5},
|
| 27 |
+
{name: 'RW', wave: '1...0.....1.', period:0.5},
|
| 28 |
+
{name: 'BUFFER_OE', wave: '1.....0..1..', period:0.5},
|
| 29 |
+
{name: 'WR', wave: '1.....0..1..', period:0.5},
|
| 30 |
+
{name: 'DATA', wave: 'x....=....xx', period:0.5},
|
| 31 |
+
{name: 'MADDR', wave: 'x...=..=..xx',period:0.5, data: "Row Column"},
|
| 32 |
+
{name: 'RAS', wave: '1...010...1.',period:0.5},
|
| 33 |
+
{name: 'CAS', wave: '1..0.1..0.1.',period:0.5},
|
| 34 |
+
],
|
| 35 |
+
head:{text:'Write Cycle', tock: 0,},
|
| 36 |
+
config: {hscale: 2}}
|
LIV2_GottaGoFastRAM/LICENSE.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CERN Open Hardware Licence v1.2
|
| 2 |
+
|
| 3 |
+
Preamble
|
| 4 |
+
|
| 5 |
+
Through this CERN Open Hardware Licence ("CERN OHL") version 1.2, CERN
|
| 6 |
+
wishes to provide a tool to foster collaboration and sharing among
|
| 7 |
+
hardware designers. The CERN OHL is copyright CERN. Anyone is welcome
|
| 8 |
+
to use the CERN OHL, in unmodified form only, for the distribution of
|
| 9 |
+
their own Open Hardware designs. Any other right is reserved. Release
|
| 10 |
+
of hardware designs under the CERN OHL does not constitute an
|
| 11 |
+
endorsement of the licensor or its designs nor does it imply any
|
| 12 |
+
involvement by CERN in the development of such designs.
|
| 13 |
+
|
| 14 |
+
1. Definitions
|
| 15 |
+
|
| 16 |
+
In this Licence, the following terms have the following meanings:
|
| 17 |
+
|
| 18 |
+
“Licence” means this CERN OHL.
|
| 19 |
+
|
| 20 |
+
“Documentation” means schematic diagrams, designs, circuit or circuit
|
| 21 |
+
board layouts, mechanical drawings, flow charts and descriptive text,
|
| 22 |
+
and other explanatory material that is explicitly stated as being made
|
| 23 |
+
available under the conditions of this Licence. The Documentation may
|
| 24 |
+
be in any medium, including but not limited to computer files and
|
| 25 |
+
representations on paper, film, or any other media.
|
| 26 |
+
|
| 27 |
+
“Documentation Location” means a location where the Licensor has
|
| 28 |
+
placed Documentation, and which he believes will be publicly
|
| 29 |
+
accessible for at least three years from the first communication to
|
| 30 |
+
the public or distribution of Documentation.
|
| 31 |
+
|
| 32 |
+
“Product” means either an entire, or any part of a, device built using
|
| 33 |
+
the Documentation or the modified Documentation.
|
| 34 |
+
|
| 35 |
+
“Licensee” means any natural or legal person exercising rights under
|
| 36 |
+
this Licence.
|
| 37 |
+
|
| 38 |
+
“Licensor” means any natural or legal person that creates or modifies
|
| 39 |
+
Documentation and subsequently communicates to the public and/ or
|
| 40 |
+
distributes the resulting Documentation under the terms and conditions
|
| 41 |
+
of this Licence.
|
| 42 |
+
|
| 43 |
+
A Licensee may at the same time be a Licensor, and vice versa.
|
| 44 |
+
|
| 45 |
+
Use of the masculine gender includes the feminine and neuter genders
|
| 46 |
+
and is employed solely to facilitate reading.
|
| 47 |
+
|
| 48 |
+
2. Applicability
|
| 49 |
+
|
| 50 |
+
2.1. This Licence governs the use, copying, modification,
|
| 51 |
+
communication to the public and distribution of the Documentation, and
|
| 52 |
+
the manufacture and distribution of Products. By exercising any right
|
| 53 |
+
granted under this Licence, the Licensee irrevocably accepts these
|
| 54 |
+
terms and conditions.
|
| 55 |
+
|
| 56 |
+
2.2. This Licence is granted by the Licensor directly to the Licensee,
|
| 57 |
+
and shall apply worldwide and without limitation in time. The Licensee
|
| 58 |
+
may assign his licence rights or grant sub-licences.
|
| 59 |
+
|
| 60 |
+
2.3. This Licence does not extend to software, firmware, or code
|
| 61 |
+
loaded into programmable devices which may be used in conjunction with
|
| 62 |
+
the Documentation, the modified Documentation or with Products, unless
|
| 63 |
+
such software, firmware, or code is explicitly expressed to be subject
|
| 64 |
+
to this Licence. The use of such software, firmware, or code is
|
| 65 |
+
otherwise subject to the applicable licence terms and conditions.
|
| 66 |
+
|
| 67 |
+
3. Copying, modification, communication to the public and distribution
|
| 68 |
+
of the Documentation
|
| 69 |
+
|
| 70 |
+
3.1. The Licensee shall keep intact all copyright and trademarks
|
| 71 |
+
notices, all notices referring to Documentation Location, and all
|
| 72 |
+
notices that refer to this Licence and to the disclaimer of warranties
|
| 73 |
+
that are included in the Documentation. He shall include a copy
|
| 74 |
+
thereof in every copy of the Documentation or, as the case may be,
|
| 75 |
+
modified Documentation, that he communicates to the public or
|
| 76 |
+
distributes.
|
| 77 |
+
|
| 78 |
+
3.2. The Licensee may copy, communicate to the public and distribute
|
| 79 |
+
verbatim copies of the Documentation, in any medium, subject to the
|
| 80 |
+
requirements specified in section 3.1.
|
| 81 |
+
|
| 82 |
+
3.3. The Licensee may modify the Documentation or any portion thereof
|
| 83 |
+
provided that upon modification of the Documentation, the Licensee
|
| 84 |
+
shall make the modified Documentation available from a Documentation
|
| 85 |
+
Location such that it can be easily located by an original Licensor
|
| 86 |
+
once the Licensee communicates to the public or distributes the
|
| 87 |
+
modified Documentation under section 3.4, and, where required by
|
| 88 |
+
section 4.1, by a recipient of a Product. However, the Licensor shall
|
| 89 |
+
not assert his rights under the foregoing proviso unless or until a
|
| 90 |
+
Product is distributed.
|
| 91 |
+
|
| 92 |
+
3.4. The Licensee may communicate to the public and distribute the
|
| 93 |
+
modified Documentation (thereby in addition to being a Licensee also
|
| 94 |
+
becoming a Licensor), always provided that he shall:
|
| 95 |
+
|
| 96 |
+
a) comply with section 3.1;
|
| 97 |
+
|
| 98 |
+
b) cause the modified Documentation to carry prominent notices stating
|
| 99 |
+
that the Licensee has modified the Documentation, with the date and
|
| 100 |
+
description of the modifications;
|
| 101 |
+
|
| 102 |
+
c) cause the modified Documentation to carry a new Documentation
|
| 103 |
+
Location notice if the original Documentation provided for one;
|
| 104 |
+
|
| 105 |
+
d) make available the modified Documentation at the same level of
|
| 106 |
+
abstraction as that of the Documentation, in the preferred format for
|
| 107 |
+
making modifications to it (e.g. the native format of the CAD tool as
|
| 108 |
+
applicable), and in the event that format is proprietary, in a format
|
| 109 |
+
viewable with a tool licensed under an OSI-approved license if the
|
| 110 |
+
proprietary tool can create it; and
|
| 111 |
+
|
| 112 |
+
e) license the modified Documentation under the terms and conditions
|
| 113 |
+
of this Licence or, where applicable, a later version of this Licence
|
| 114 |
+
as may be issued by CERN.
|
| 115 |
+
|
| 116 |
+
3.5. The Licence includes a non-exclusive licence to those patents or
|
| 117 |
+
registered designs that are held by, under the control of, or
|
| 118 |
+
sub-licensable by the Licensor, to the extent necessary to make use of
|
| 119 |
+
the rights granted under this Licence. The scope of this section 3.5
|
| 120 |
+
shall be strictly limited to the parts of the Documentation or
|
| 121 |
+
modified Documentation created by the Licensor.
|
| 122 |
+
|
| 123 |
+
4. Manufacture and distribution of Products
|
| 124 |
+
|
| 125 |
+
4.1. The Licensee may manufacture or distribute Products always
|
| 126 |
+
provided that, where such manufacture or distribution requires a
|
| 127 |
+
licence under this Licence the Licensee provides to each recipient of
|
| 128 |
+
such Products an easy means of accessing a copy of the Documentation
|
| 129 |
+
or modified Documentation, as applicable, as set out in section 3.
|
| 130 |
+
|
| 131 |
+
4.2. The Licensee is invited to inform any Licensor who has indicated
|
| 132 |
+
his wish to receive this information about the type, quantity and
|
| 133 |
+
dates of production of Products the Licensee has (had) manufactured
|
| 134 |
+
|
| 135 |
+
5. Warranty and liability
|
| 136 |
+
|
| 137 |
+
5.1. DISCLAIMER – The Documentation and any modified Documentation are
|
| 138 |
+
provided "as is" and any express or implied warranties, including, but
|
| 139 |
+
not limited to, implied warranties of merchantability, of satisfactory
|
| 140 |
+
quality, non-infringement of third party rights, and fitness for a
|
| 141 |
+
particular purpose or use are disclaimed in respect of the
|
| 142 |
+
Documentation, the modified Documentation or any Product. The Licensor
|
| 143 |
+
makes no representation that the Documentation, modified
|
| 144 |
+
Documentation, or any Product, does or will not infringe any patent,
|
| 145 |
+
copyright, trade secret or other proprietary right. The entire risk as
|
| 146 |
+
to the use, quality, and performance of a Product shall be with the
|
| 147 |
+
Licensee and not the Licensor. This disclaimer of warranty is an
|
| 148 |
+
essential part of this Licence and a condition for the grant of any
|
| 149 |
+
rights granted under this Licence. The Licensee warrants that it does
|
| 150 |
+
not act in a consumer capacity.
|
| 151 |
+
|
| 152 |
+
5.2. LIMITATION OF LIABILITY – The Licensor shall have no liability
|
| 153 |
+
for direct, indirect, special, incidental, consequential, exemplary,
|
| 154 |
+
punitive or other damages of any character including, without
|
| 155 |
+
limitation, procurement of substitute goods or services, loss of use,
|
| 156 |
+
data or profits, or business interruption, however caused and on any
|
| 157 |
+
theory of contract, warranty, tort (including negligence), product
|
| 158 |
+
liability or otherwise, arising in any way in relation to the
|
| 159 |
+
Documentation, modified Documentation and/or the use, manufacture or
|
| 160 |
+
distribution of a Product, even if advised of the possibility of such
|
| 161 |
+
damages, and the Licensee shall hold the Licensor(s) free and harmless
|
| 162 |
+
from any liability, costs, damages, fees and expenses, including
|
| 163 |
+
claims by third parties, in relation to such use.
|
| 164 |
+
|
| 165 |
+
6. General
|
| 166 |
+
|
| 167 |
+
6.1. Except for the rights explicitly granted hereunder, this Licence
|
| 168 |
+
does not imply or represent any transfer or assignment of intellectual
|
| 169 |
+
property rights to the Licensee.
|
| 170 |
+
|
| 171 |
+
6.2. The Licensee shall not use or make reference to any of the names
|
| 172 |
+
(including acronyms and abbreviations), images, or logos under which
|
| 173 |
+
the Licensor is known, save in so far as required to comply with
|
| 174 |
+
section 3. Any such permitted use or reference shall be factual and
|
| 175 |
+
shall in no event suggest any kind of endorsement by the Licensor or
|
| 176 |
+
its personnel of the modified Documentation or any Product, or any
|
| 177 |
+
kind of implication by the Licensor or its personnel in the
|
| 178 |
+
preparation of the modified Documentation or Product.
|
| 179 |
+
|
| 180 |
+
6.3. CERN may publish updated versions of this Licence which retain
|
| 181 |
+
the same general provisions as this version, but differ in detail so
|
| 182 |
+
far this is required and reasonable. New versions will be published
|
| 183 |
+
with a unique version number.
|
| 184 |
+
|
| 185 |
+
6.4. This Licence shall terminate with immediate effect, upon written
|
| 186 |
+
notice and without involvement of a court if the Licensee fails to
|
| 187 |
+
comply with any of its terms and conditions, or if the Licensee
|
| 188 |
+
initiates legal action against Licensor in relation to this
|
| 189 |
+
Licence. Section 5 shall continue to apply.
|
LIV2_GottaGoFastRAM/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GottaGoFastRAM 8MB Autoconfig Fast RAM
|
| 2 |
+
|
| 3 |
+
This is an 8MB Autoconfig Fast RAM for Amiga 500/1000/2000/CDTV based on mkl's mem68k
|
| 4 |
+
It's small size allows it to be stacked on top of an ide68k board
|
| 5 |
+
Rather than use the original mem68k Abel code I have written a new memory controller in Verilog
|
| 6 |
+
|
| 7 |
+

|
| 8 |
+

|
| 9 |
+
## Table of contents
|
| 10 |
+
1. [PCB Ordering](#ordering-pcbs)
|
| 11 |
+
2. [Mounting Options](#mounting-options)
|
| 12 |
+
3. [Cfgin/out](#cfginout)
|
| 13 |
+
4. [Jumpers](#jumpers)
|
| 14 |
+
5. [CDTV](#cdtv)
|
| 15 |
+
6. [Timing Diagrams](#timing-diagrams)
|
| 16 |
+
7. [Bill of materials](#bill-of-materials)
|
| 17 |
+
8. [Known Issues](#known-issues)
|
| 18 |
+
9. [Experimental firmware](#experimental-firmware)
|
| 19 |
+
|
| 20 |
+
## Ordering PCBs
|
| 21 |
+
I recommend ordering the PCB with a 0.6 or 0.8mm thickness if you intend on stacking with an ide68k or mouting using a DIP socket/machined pin strips.
|
| 22 |
+
If you are going to mount using the socket pins and not stacking with an ide68k I'd recommend going with the usual 1.6mm to reduce flexing.
|
| 23 |
+
|
| 24 |
+
## Mounting options
|
| 25 |
+
|
| 26 |
+
1. Can be soldered to the bottom of a machined pin socket/machined pin strips (will require some cutting of the dip socket to fit the caps/ferrites near the plastic)
|
| 27 |
+
<img src="Images/mounting_strip.jpg" width=300 />
|
| 28 |
+
2. Can be soldered to socket pins and stacked with an ide68k
|
| 29 |
+
<img src="Images/stacked1.jpg" width=300 />
|
| 30 |
+
<img src="Images/stacked2.jpg" width=300 />
|
| 31 |
+
|
| 32 |
+
## Cfgin/out
|
| 33 |
+
These pins allow you to insert the memory module into your autoconfig chain.
|
| 34 |
+
If there are no other autoconfig devices in your system you can just leave these unconnected otherwise you will need to either connect CFGOut to the CFGin of the first device in your existing autoconfig chain, or connect CFGIn to the CFGOut pin of the last device in your existing autoconfig chain.
|
| 35 |
+
In the Amiga 2000 you can connect CFGIN to U606 Pin 8 which will add the device to the end of the chain but __NOTE: This takes up the config signal for the leftmost slot (CN601) so do NOT install a Zorro card there__
|
| 36 |
+
|
| 37 |
+
You can also connect cfgin and cfgout with a jumper to disable the device temporarily
|
| 38 |
+
|
| 39 |
+
## Jumpers
|
| 40 |
+
J1: Cfgin pull up/down (You will probably want to leave this at default unless you know what you're doing)
|
| 41 |
+
J2-3: Bridge these if you have not fitted the buffer U4
|
| 42 |
+
|
| 43 |
+
## CDTV
|
| 44 |
+
The CDTV's DMAC takes up the first autoconfig slot, so if you intend to use this with a CDTV use the CDTV specific .JED file to program the CPLD
|
| 45 |
+
|
| 46 |
+
If you have a Rev A or Rev B (not B1) board you will need to apply a [small mod for CDTV compatibility](https://github.com/LIV2/GottaGoFastRAM/issues/4/#issuecomment-868977723)
|
| 47 |
+
|
| 48 |
+
## Timing Diagrams
|
| 49 |
+

|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
### Bill of materials
|
| 53 |
+
|Component|Location|QTY|Link|Remarks|
|
| 54 |
+
|---------|--------|---|------|--------|
|
| 55 |
+
|4Mx16 3V DRAM TSSOP - K4E641612D or GM71VS65163 |U3|1|-|eBay/Aliexpress etc.|
|
| 56 |
+
|XC9572XL-10VQ64C|U1|1|[Mouser](https://www.mouser.se/ProductDetail/217-C9572XL-10VQG64C)<br />[DigiKey](https://www.digikey.com/short/2f7qn38b)||
|
| 57 |
+
|74LVC2G17 TSSOP-6/SOT-363|U4|1|[Mouser](https://www.mouser.com/ProductDetail/771-74LVC2G17GVQ100H)<br />[DigiKey](https://www.digikey.com/short/95mn57tt) ||
|
| 58 |
+
|AP2210N-3.3 SOT-23|U5|1|[Mouser](https://www.mouser.com/ProductDetail/621-AP2210N-3.3TRG1)<br />[DigiKey](https://www.digikey.com/short/30rd0zn5)|Maybe can be substituted with MCP1703AT-3302E|
|
| 59 |
+
|74LVC245N TSSOP|U6,U7|2|[Mouser](https://www.mouser.com/ProductDetail/595-SN74LVC245APWRG4)<br />[DigiKey](https://www.digikey.com/short/pnq3wff3)|Can be substituted with SN74LVTH245 or SN74LVCR2245|
|
| 60 |
+
|Ferrite Bead, 1206 package|FB1, FB2|2|[Mouser](https://www.mouser.com/ProductDetail/875-MI1206K601R-10)<br />[DigiKey](https://www.digikey.com/short/n4p04ctv)|Can be substituted with 0 Ohm 1206 resistors|
|
| 61 |
+
|10K Resistor, 0603|R1|1|[Mouser](https://www.mouser.com/ProductDetail/603-RT0603FRD0710KL)<br />[DigiKey](https://www.digikey.com/short/nvvrt5dw)||
|
| 62 |
+
|0.1uF Ceramic Capacitor, 0603|C1,4-13|11|[Mouser](https://www.mouser.com/ProductDetail/80-C603C104K5RAC3121)<br />[DigiKey](https://www.digikey.com/short/f7trtfwt)||
|
| 63 |
+
|4.7uF Ceramic Capacitor, 1206|C2|1|[Mouser](https://www.mouser.com/ProductDetail/187-CL31B475KAHNFNE)<br />[DigiKey](https://www.digikey.com/short/d7mbf5nn)||
|
| 64 |
+
|10uF Ceramic Capacitor, 1206|C3|1|[Mouser](https://www.mouser.com/ProductDetail/187-CL31A106MAHNNNE)<br />[DigiKey](https://www.digikey.com/short/rqt1br0q)||
|
| 65 |
+
|Socket pins|Pins|64|[Aliexpress](https://www.aliexpress.com/item/32791545218.html?spm=a2g0o.productlist.0.0.6e223b55CVrXSq&algo_pvid=8fda9f5a-6e07-4dc8-9ed4-bd809bf75756&algo_expid=8fda9f5a-6e07-4dc8-9ed4-bd809bf75756-0&btsid=2100bde316043149660504011ef819&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_)|Use these if stacking with an ide68k module|
|
| 66 |
+
|64-Pin DIP socket - machined pin|Pins|1|[Mouser](https://www.mouser.com/ProductDetail/575-193964)|If not stacking with ide68k - pcb can be soldered to bottom of this flush with the plastic|
|
| 67 |
+
|
| 68 |
+
## Known issues
|
| 69 |
+
1. Rev A & B - Incorrect voltage supplied to U4 causes incompatibility with CDTV. Fixed in Rev B1 but you can [rework Rev A or B boards by following the instructions here](https://github.com/LIV2/GottaGoFastRAM/issues/4/#issuecomment-868977723)
|
| 70 |
+
|
| 71 |
+
## Experimental Firmware
|
| 72 |
+
* [AutoSnoop Firmware - Autoconfig after all other Z2 devices without any wires](https://github.com/LIV2/GottaGoFastRAM/tree/snoopy)
|
LIV2_GottaGoFastRAM/RTL/gottagofast.v
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
GottaGoFastRAM - 8MB Autoconfig FastRAM for Amiga 500(+)/1000/2000/CDTV
|
| 3 |
+
Copyright 2020 Matthew Harlum
|
| 4 |
+
|
| 5 |
+
This program is free software: you can redistribute it and/or modify
|
| 6 |
+
it under the terms of the GNU General Public License as published by
|
| 7 |
+
the Free Software Foundation, either version 3 of the License, or
|
| 8 |
+
(at your option) any later version.
|
| 9 |
+
|
| 10 |
+
This program is distributed in the hope that it will be useful,
|
| 11 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
+
GNU General Public License for more details.
|
| 14 |
+
|
| 15 |
+
You should have received a copy of the GNU General Public License
|
| 16 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| 17 |
+
|
| 18 |
+
Inspired by mkl's mem68k
|
| 19 |
+
*/
|
| 20 |
+
|
| 21 |
+
`ifndef makedefines // The defines ignored if being built by Makefile
|
| 22 |
+
`define SERIAL 32'd421
|
| 23 |
+
`define PRODID 8'1
|
| 24 |
+
|
| 25 |
+
`define autoconfig // If disabled RAM is always mapped to $200000-9FFFFF
|
| 26 |
+
//`define cdtv // Uncomment to build CDTV compatible version
|
| 27 |
+
//`define Offer_6M // If told to shutup when offering 8MB, offer up a 2MB and also 4MB block next (useful with an A590/2091)
|
| 28 |
+
`define rev_b
|
| 29 |
+
`endif
|
| 30 |
+
|
| 31 |
+
module gottagofast(
|
| 32 |
+
input CLK,
|
| 33 |
+
input RESETn,
|
| 34 |
+
input CFGINn,
|
| 35 |
+
input UDSn,
|
| 36 |
+
input LDSn,
|
| 37 |
+
input ASn,
|
| 38 |
+
input RWn,
|
| 39 |
+
inout [15:12] DBUS,
|
| 40 |
+
input [23:1] ADDR,
|
| 41 |
+
output reg [11:0] MADDR,
|
| 42 |
+
output reg CFGOUTn,
|
| 43 |
+
output RASn,
|
| 44 |
+
output UCASn,
|
| 45 |
+
output LCASn,
|
| 46 |
+
output OEn,
|
| 47 |
+
output MEMWn
|
| 48 |
+
);
|
| 49 |
+
|
| 50 |
+
reg reset_delayed1;
|
| 51 |
+
reg reset;
|
| 52 |
+
|
| 53 |
+
// Memory controller
|
| 54 |
+
|
| 55 |
+
reg ram_cycle;
|
| 56 |
+
reg access_ras;
|
| 57 |
+
reg access_ucas;
|
| 58 |
+
reg access_lcas;
|
| 59 |
+
reg refresh_ras;
|
| 60 |
+
reg refresh_cas;
|
| 61 |
+
reg [7:0] addr_match;
|
| 62 |
+
|
| 63 |
+
`ifdef autoconfig
|
| 64 |
+
// Autoconfig
|
| 65 |
+
localparam [15:0] mfg_id = 16'd5194;
|
| 66 |
+
localparam [7:0] prod_id = 8'd1;
|
| 67 |
+
localparam [31:0] serial = `SERIAL;
|
| 68 |
+
|
| 69 |
+
wire autoconfig_cycle;
|
| 70 |
+
reg shutup = 0;
|
| 71 |
+
reg CFGINnr;
|
| 72 |
+
reg configured;
|
| 73 |
+
reg [2:0] autoconfig_state;
|
| 74 |
+
reg [3:0] data_out;
|
| 75 |
+
|
| 76 |
+
localparam Offer_8M = 3'b000,
|
| 77 |
+
// If offering 2MB + 4MB blocks you need to offer the 2MB block first
|
| 78 |
+
// This is because of a kickstart bug where the memory config overflows if there is already 2MB configured before another 4MB then 2MB is configured...
|
| 79 |
+
`ifdef Offer_6M
|
| 80 |
+
Offer_2M = 3'b001,
|
| 81 |
+
Offer_4M = 3'b010,
|
| 82 |
+
`else
|
| 83 |
+
Offer_4M = 3'b001,
|
| 84 |
+
Offer_2M = 3'b010,
|
| 85 |
+
`endif
|
| 86 |
+
Offer_1M = 3'b011,
|
| 87 |
+
SHUTUP = 3'b100;
|
| 88 |
+
|
| 89 |
+
assign DBUS[15:12] = (RESETn & autoconfig_cycle & RWn & !ASn & !UDSn) ? data_out[3:0] : 'bZ;
|
| 90 |
+
|
| 91 |
+
`ifdef cdtv
|
| 92 |
+
reg cdtv_configured;
|
| 93 |
+
|
| 94 |
+
assign autoconfig_cycle = (ADDR[23:16] == 8'hE8) & !CFGINnr & !shutup & cdtv_configured;
|
| 95 |
+
`else
|
| 96 |
+
assign autoconfig_cycle = (ADDR[23:16] == 8'hE8) & !CFGINnr & !shutup;
|
| 97 |
+
`endif
|
| 98 |
+
|
| 99 |
+
`ifdef cdtv
|
| 100 |
+
// CDTV DMAC is first in chain.
|
| 101 |
+
// So we wait until it's configured before we talk
|
| 102 |
+
always @(negedge UDSn or negedge reset)
|
| 103 |
+
begin
|
| 104 |
+
if (!reset) begin
|
| 105 |
+
cdtv_configured <= 1'b0;
|
| 106 |
+
end else begin
|
| 107 |
+
if (ADDR[23:16] == 8'hE8 & ADDR[8:1] == 8'h24 & !ASn & !RWn) begin
|
| 108 |
+
cdtv_configured <= 1'b1;
|
| 109 |
+
end
|
| 110 |
+
end
|
| 111 |
+
end
|
| 112 |
+
`endif
|
| 113 |
+
|
| 114 |
+
// Register Config in/out at end of bus cycle
|
| 115 |
+
always @(posedge ASn or negedge reset)
|
| 116 |
+
begin
|
| 117 |
+
if (!reset) begin
|
| 118 |
+
CFGOUTn <= 1'b1;
|
| 119 |
+
CFGINnr <= 1'b1;
|
| 120 |
+
end else begin
|
| 121 |
+
CFGOUTn <= !shutup;
|
| 122 |
+
CFGINnr <= CFGINn;
|
| 123 |
+
end
|
| 124 |
+
end
|
| 125 |
+
|
| 126 |
+
// Offers an 8MB block first, if there's no space offer 4MB, 2MB then 1MB before giving up
|
| 127 |
+
always @(posedge CLK or negedge reset)
|
| 128 |
+
begin
|
| 129 |
+
if (!reset) begin
|
| 130 |
+
data_out <= 'bZ;
|
| 131 |
+
end else if (autoconfig_cycle & RWn) begin
|
| 132 |
+
case (ADDR[8:1])
|
| 133 |
+
8'h00: data_out <= 4'b1110;
|
| 134 |
+
8'h01:
|
| 135 |
+
case (autoconfig_state)
|
| 136 |
+
Offer_8M: data_out <= 4'b0000;
|
| 137 |
+
Offer_4M: data_out <= 4'b0111;
|
| 138 |
+
Offer_2M: data_out <= 4'b0110;
|
| 139 |
+
Offer_1M: data_out <= 4'b0101;
|
| 140 |
+
default: data_out <= 4'b0000;
|
| 141 |
+
endcase
|
| 142 |
+
8'h02: data_out <= ~prod_id[7:4]; // Product number
|
| 143 |
+
8'h03: data_out <= ~prod_id[3:0]; // Product number
|
| 144 |
+
8'h04: data_out <= ~4'b1000;
|
| 145 |
+
8'h05: data_out <= ~4'b0000;
|
| 146 |
+
8'h08: data_out <= ~mfg_id[15:12]; // Manufacturer ID
|
| 147 |
+
8'h09: data_out <= ~mfg_id[11:8]; // Manufacturer ID
|
| 148 |
+
8'h0A: data_out <= ~mfg_id[7:4]; // Manufacturer ID
|
| 149 |
+
8'h0B: data_out <= ~mfg_id[3:0]; // Manufacturer ID
|
| 150 |
+
8'h0C: data_out <= ~serial[31:28]; // Serial number
|
| 151 |
+
8'h0D: data_out <= ~serial[27:24]; // Serial number
|
| 152 |
+
8'h0E: data_out <= ~serial[23:20]; // Serial number
|
| 153 |
+
8'h0F: data_out <= ~serial[19:16]; // Serial number
|
| 154 |
+
8'h10: data_out <= ~serial[15:12]; // Serial number
|
| 155 |
+
8'h11: data_out <= ~serial[11:8]; // Serial number
|
| 156 |
+
8'h12: data_out <= ~serial[7:4]; // Serial number
|
| 157 |
+
8'h13: data_out <= ~serial[3:0]; // Serial number
|
| 158 |
+
8'h20: data_out <= 4'b0;
|
| 159 |
+
8'h21: data_out <= 4'b0;
|
| 160 |
+
default: data_out <= 4'hF;
|
| 161 |
+
endcase
|
| 162 |
+
end
|
| 163 |
+
end
|
| 164 |
+
|
| 165 |
+
always @(negedge UDSn or negedge reset)
|
| 166 |
+
begin
|
| 167 |
+
if (!reset) begin
|
| 168 |
+
configured <= 1'b0;
|
| 169 |
+
shutup <= 1'b0;
|
| 170 |
+
addr_match <= 8'b00000000;
|
| 171 |
+
autoconfig_state <= Offer_8M;
|
| 172 |
+
end else if (autoconfig_cycle & !ASn & !RWn) begin
|
| 173 |
+
if (ADDR[8:1] == 8'h26) begin
|
| 174 |
+
// We've been told to shut up (not enough memory space)
|
| 175 |
+
// Try offering a smaller block
|
| 176 |
+
if (autoconfig_state >= SHUTUP-1) begin
|
| 177 |
+
// All options exhausted - time to shut up!
|
| 178 |
+
shutup <= 1;
|
| 179 |
+
autoconfig_state <= SHUTUP;
|
| 180 |
+
end else begin
|
| 181 |
+
// Offer the next smallest block
|
| 182 |
+
autoconfig_state <= autoconfig_state + 1;
|
| 183 |
+
end
|
| 184 |
+
end
|
| 185 |
+
else if (ADDR[8:1] == 8'h24) begin
|
| 186 |
+
case (autoconfig_state)
|
| 187 |
+
Offer_8M:
|
| 188 |
+
begin
|
| 189 |
+
addr_match <= 8'hFF;
|
| 190 |
+
shutup <= 1'b1;
|
| 191 |
+
end
|
| 192 |
+
Offer_4M:
|
| 193 |
+
begin
|
| 194 |
+
case(DBUS)
|
| 195 |
+
4'h2: addr_match <= (addr_match|8'b00001111);
|
| 196 |
+
4'h4: addr_match <= (addr_match|8'b00111100);
|
| 197 |
+
4'h6: addr_match <= (addr_match|8'b11110000);
|
| 198 |
+
endcase
|
| 199 |
+
shutup <= 1'b1;
|
| 200 |
+
end
|
| 201 |
+
Offer_2M:
|
| 202 |
+
begin
|
| 203 |
+
case(DBUS)
|
| 204 |
+
4'h2: addr_match <= (addr_match|8'b00000011);
|
| 205 |
+
4'h4: addr_match <= (addr_match|8'b00001100);
|
| 206 |
+
4'h6: addr_match <= (addr_match|8'b00110000);
|
| 207 |
+
4'h8: addr_match <= (addr_match|8'b11000000);
|
| 208 |
+
endcase
|
| 209 |
+
`ifdef Offer_6M
|
| 210 |
+
autoconfig_state <= Offer_4M;
|
| 211 |
+
`else
|
| 212 |
+
shutup <= 1'b1;
|
| 213 |
+
`endif
|
| 214 |
+
end
|
| 215 |
+
Offer_1M:
|
| 216 |
+
begin
|
| 217 |
+
case(DBUS)
|
| 218 |
+
4'h2: addr_match <= (addr_match|8'b00000001);
|
| 219 |
+
4'h3: addr_match <= (addr_match|8'b00000010);
|
| 220 |
+
4'h4: addr_match <= (addr_match|8'b00000100);
|
| 221 |
+
4'h5: addr_match <= (addr_match|8'b00001000);
|
| 222 |
+
4'h6: addr_match <= (addr_match|8'b00010000);
|
| 223 |
+
4'h7: addr_match <= (addr_match|8'b00100000);
|
| 224 |
+
4'h8: addr_match <= (addr_match|8'b01000000);
|
| 225 |
+
4'h9: addr_match <= (addr_match|8'b10000000);
|
| 226 |
+
endcase
|
| 227 |
+
shutup <= 1'b1;
|
| 228 |
+
end
|
| 229 |
+
default: addr_match <= 8'b0;
|
| 230 |
+
endcase
|
| 231 |
+
configured <= 1'b1;
|
| 232 |
+
end
|
| 233 |
+
end
|
| 234 |
+
end
|
| 235 |
+
`endif
|
| 236 |
+
|
| 237 |
+
// Memory controller
|
| 238 |
+
|
| 239 |
+
assign RASn = !(access_ras | (refresh_ras & refresh_cas));
|
| 240 |
+
assign UCASn = !((access_ucas) | refresh_cas);
|
| 241 |
+
assign LCASn = !((access_lcas) | refresh_cas);
|
| 242 |
+
`ifdef rev_b // On Rev B OEn drives the buffers
|
| 243 |
+
assign OEn = !ram_cycle | ASn | !RESETn | (UDSn & LDSn);
|
| 244 |
+
`else
|
| 245 |
+
assign OEn = !(RWn & access_ras);
|
| 246 |
+
`endif
|
| 247 |
+
assign MEMWn = RWn | (UDSn & LDSn);
|
| 248 |
+
|
| 249 |
+
// Filter reset line by registering it
|
| 250 |
+
always @(posedge CLK)
|
| 251 |
+
begin
|
| 252 |
+
reset_delayed1 <= RESETn;
|
| 253 |
+
reset <= reset_delayed1;
|
| 254 |
+
end
|
| 255 |
+
|
| 256 |
+
// CAS before RAS refresh
|
| 257 |
+
// CAS Asserted in S1 & S2
|
| 258 |
+
// RAS Asserted in S2
|
| 259 |
+
always @(negedge CLK or negedge reset)
|
| 260 |
+
begin
|
| 261 |
+
if (!reset) begin
|
| 262 |
+
refresh_cas <= 1'b0;
|
| 263 |
+
end else begin
|
| 264 |
+
refresh_cas <= (!refresh_cas & ASn & !access_ras);
|
| 265 |
+
end
|
| 266 |
+
end
|
| 267 |
+
|
| 268 |
+
always @(posedge CLK or negedge reset)
|
| 269 |
+
begin
|
| 270 |
+
if (!reset) begin
|
| 271 |
+
refresh_ras <= 1'b0;
|
| 272 |
+
end else begin
|
| 273 |
+
refresh_ras <= refresh_cas;
|
| 274 |
+
end
|
| 275 |
+
end
|
| 276 |
+
|
| 277 |
+
// Memory access
|
| 278 |
+
always @(negedge CLK or negedge reset)
|
| 279 |
+
begin
|
| 280 |
+
if (!reset) begin
|
| 281 |
+
ram_cycle = 1'b0;
|
| 282 |
+
end else begin
|
| 283 |
+
`ifdef autoconfig
|
| 284 |
+
ram_cycle = (
|
| 285 |
+
((ADDR[23:20] == 4'h2) & addr_match[0]) |
|
| 286 |
+
((ADDR[23:20] == 4'h3) & addr_match[1]) |
|
| 287 |
+
((ADDR[23:20] == 4'h4) & addr_match[2]) |
|
| 288 |
+
((ADDR[23:20] == 4'h5) & addr_match[3]) |
|
| 289 |
+
((ADDR[23:20] == 4'h6) & addr_match[4]) |
|
| 290 |
+
((ADDR[23:20] == 4'h7) & addr_match[5]) |
|
| 291 |
+
((ADDR[23:20] == 4'h8) & addr_match[6]) |
|
| 292 |
+
((ADDR[23:20] == 4'h9) & addr_match[7])
|
| 293 |
+
) & !ASn & configured;
|
| 294 |
+
`else
|
| 295 |
+
ram_cycle = ((ADDR[23:20] >= 4'h2) & (ADDR[23:20] <= 4'h9) & !ASn);
|
| 296 |
+
`endif
|
| 297 |
+
end
|
| 298 |
+
end
|
| 299 |
+
|
| 300 |
+
always @(posedge CLK or negedge reset)
|
| 301 |
+
begin
|
| 302 |
+
if (!reset) begin
|
| 303 |
+
access_ras <= 1'b0;
|
| 304 |
+
access_ucas <= 1'b0;
|
| 305 |
+
access_lcas <= 1'b0;
|
| 306 |
+
end else begin
|
| 307 |
+
access_ras <= (ram_cycle & !access_ucas & !access_lcas); // Assert @ S4, Deassert @ S0
|
| 308 |
+
access_ucas <= (access_ras & !access_ucas & !UDSn); // Assert @ S6, Deassert @ S0
|
| 309 |
+
access_lcas <= (access_ras & !access_lcas & !LDSn); // Assert @ S6, Deassert @ S0
|
| 310 |
+
end
|
| 311 |
+
end
|
| 312 |
+
|
| 313 |
+
// Row/Col mux
|
| 314 |
+
// Switch to ROW address at falling edge of S0
|
| 315 |
+
// Switch to column address at falling edge of S4
|
| 316 |
+
always @(negedge CLK)
|
| 317 |
+
begin
|
| 318 |
+
if (!access_ras) begin
|
| 319 |
+
MADDR[11:0] <= ADDR[22:11]; // Row Address
|
| 320 |
+
end else begin
|
| 321 |
+
MADDR[11:10] <= 2'b00;
|
| 322 |
+
MADDR[9:0] <= ADDR[10:1]; // Column Address
|
| 323 |
+
end
|
| 324 |
+
end
|
| 325 |
+
|
| 326 |
+
endmodule
|
LIV2_GottaGoFastRAM/Rev_A/LICENSE.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CERN Open Hardware Licence v1.2
|
| 2 |
+
|
| 3 |
+
Preamble
|
| 4 |
+
|
| 5 |
+
Through this CERN Open Hardware Licence ("CERN OHL") version 1.2, CERN
|
| 6 |
+
wishes to provide a tool to foster collaboration and sharing among
|
| 7 |
+
hardware designers. The CERN OHL is copyright CERN. Anyone is welcome
|
| 8 |
+
to use the CERN OHL, in unmodified form only, for the distribution of
|
| 9 |
+
their own Open Hardware designs. Any other right is reserved. Release
|
| 10 |
+
of hardware designs under the CERN OHL does not constitute an
|
| 11 |
+
endorsement of the licensor or its designs nor does it imply any
|
| 12 |
+
involvement by CERN in the development of such designs.
|
| 13 |
+
|
| 14 |
+
1. Definitions
|
| 15 |
+
|
| 16 |
+
In this Licence, the following terms have the following meanings:
|
| 17 |
+
|
| 18 |
+
“Licence” means this CERN OHL.
|
| 19 |
+
|
| 20 |
+
“Documentation” means schematic diagrams, designs, circuit or circuit
|
| 21 |
+
board layouts, mechanical drawings, flow charts and descriptive text,
|
| 22 |
+
and other explanatory material that is explicitly stated as being made
|
| 23 |
+
available under the conditions of this Licence. The Documentation may
|
| 24 |
+
be in any medium, including but not limited to computer files and
|
| 25 |
+
representations on paper, film, or any other media.
|
| 26 |
+
|
| 27 |
+
“Documentation Location” means a location where the Licensor has
|
| 28 |
+
placed Documentation, and which he believes will be publicly
|
| 29 |
+
accessible for at least three years from the first communication to
|
| 30 |
+
the public or distribution of Documentation.
|
| 31 |
+
|
| 32 |
+
“Product” means either an entire, or any part of a, device built using
|
| 33 |
+
the Documentation or the modified Documentation.
|
| 34 |
+
|
| 35 |
+
“Licensee” means any natural or legal person exercising rights under
|
| 36 |
+
this Licence.
|
| 37 |
+
|
| 38 |
+
“Licensor” means any natural or legal person that creates or modifies
|
| 39 |
+
Documentation and subsequently communicates to the public and/ or
|
| 40 |
+
distributes the resulting Documentation under the terms and conditions
|
| 41 |
+
of this Licence.
|
| 42 |
+
|
| 43 |
+
A Licensee may at the same time be a Licensor, and vice versa.
|
| 44 |
+
|
| 45 |
+
Use of the masculine gender includes the feminine and neuter genders
|
| 46 |
+
and is employed solely to facilitate reading.
|
| 47 |
+
|
| 48 |
+
2. Applicability
|
| 49 |
+
|
| 50 |
+
2.1. This Licence governs the use, copying, modification,
|
| 51 |
+
communication to the public and distribution of the Documentation, and
|
| 52 |
+
the manufacture and distribution of Products. By exercising any right
|
| 53 |
+
granted under this Licence, the Licensee irrevocably accepts these
|
| 54 |
+
terms and conditions.
|
| 55 |
+
|
| 56 |
+
2.2. This Licence is granted by the Licensor directly to the Licensee,
|
| 57 |
+
and shall apply worldwide and without limitation in time. The Licensee
|
| 58 |
+
may assign his licence rights or grant sub-licences.
|
| 59 |
+
|
| 60 |
+
2.3. This Licence does not extend to software, firmware, or code
|
| 61 |
+
loaded into programmable devices which may be used in conjunction with
|
| 62 |
+
the Documentation, the modified Documentation or with Products, unless
|
| 63 |
+
such software, firmware, or code is explicitly expressed to be subject
|
| 64 |
+
to this Licence. The use of such software, firmware, or code is
|
| 65 |
+
otherwise subject to the applicable licence terms and conditions.
|
| 66 |
+
|
| 67 |
+
3. Copying, modification, communication to the public and distribution
|
| 68 |
+
of the Documentation
|
| 69 |
+
|
| 70 |
+
3.1. The Licensee shall keep intact all copyright and trademarks
|
| 71 |
+
notices, all notices referring to Documentation Location, and all
|
| 72 |
+
notices that refer to this Licence and to the disclaimer of warranties
|
| 73 |
+
that are included in the Documentation. He shall include a copy
|
| 74 |
+
thereof in every copy of the Documentation or, as the case may be,
|
| 75 |
+
modified Documentation, that he communicates to the public or
|
| 76 |
+
distributes.
|
| 77 |
+
|
| 78 |
+
3.2. The Licensee may copy, communicate to the public and distribute
|
| 79 |
+
verbatim copies of the Documentation, in any medium, subject to the
|
| 80 |
+
requirements specified in section 3.1.
|
| 81 |
+
|
| 82 |
+
3.3. The Licensee may modify the Documentation or any portion thereof
|
| 83 |
+
provided that upon modification of the Documentation, the Licensee
|
| 84 |
+
shall make the modified Documentation available from a Documentation
|
| 85 |
+
Location such that it can be easily located by an original Licensor
|
| 86 |
+
once the Licensee communicates to the public or distributes the
|
| 87 |
+
modified Documentation under section 3.4, and, where required by
|
| 88 |
+
section 4.1, by a recipient of a Product. However, the Licensor shall
|
| 89 |
+
not assert his rights under the foregoing proviso unless or until a
|
| 90 |
+
Product is distributed.
|
| 91 |
+
|
| 92 |
+
3.4. The Licensee may communicate to the public and distribute the
|
| 93 |
+
modified Documentation (thereby in addition to being a Licensee also
|
| 94 |
+
becoming a Licensor), always provided that he shall:
|
| 95 |
+
|
| 96 |
+
a) comply with section 3.1;
|
| 97 |
+
|
| 98 |
+
b) cause the modified Documentation to carry prominent notices stating
|
| 99 |
+
that the Licensee has modified the Documentation, with the date and
|
| 100 |
+
description of the modifications;
|
| 101 |
+
|
| 102 |
+
c) cause the modified Documentation to carry a new Documentation
|
| 103 |
+
Location notice if the original Documentation provided for one;
|
| 104 |
+
|
| 105 |
+
d) make available the modified Documentation at the same level of
|
| 106 |
+
abstraction as that of the Documentation, in the preferred format for
|
| 107 |
+
making modifications to it (e.g. the native format of the CAD tool as
|
| 108 |
+
applicable), and in the event that format is proprietary, in a format
|
| 109 |
+
viewable with a tool licensed under an OSI-approved license if the
|
| 110 |
+
proprietary tool can create it; and
|
| 111 |
+
|
| 112 |
+
e) license the modified Documentation under the terms and conditions
|
| 113 |
+
of this Licence or, where applicable, a later version of this Licence
|
| 114 |
+
as may be issued by CERN.
|
| 115 |
+
|
| 116 |
+
3.5. The Licence includes a non-exclusive licence to those patents or
|
| 117 |
+
registered designs that are held by, under the control of, or
|
| 118 |
+
sub-licensable by the Licensor, to the extent necessary to make use of
|
| 119 |
+
the rights granted under this Licence. The scope of this section 3.5
|
| 120 |
+
shall be strictly limited to the parts of the Documentation or
|
| 121 |
+
modified Documentation created by the Licensor.
|
| 122 |
+
|
| 123 |
+
4. Manufacture and distribution of Products
|
| 124 |
+
|
| 125 |
+
4.1. The Licensee may manufacture or distribute Products always
|
| 126 |
+
provided that, where such manufacture or distribution requires a
|
| 127 |
+
licence under this Licence the Licensee provides to each recipient of
|
| 128 |
+
such Products an easy means of accessing a copy of the Documentation
|
| 129 |
+
or modified Documentation, as applicable, as set out in section 3.
|
| 130 |
+
|
| 131 |
+
4.2. The Licensee is invited to inform any Licensor who has indicated
|
| 132 |
+
his wish to receive this information about the type, quantity and
|
| 133 |
+
dates of production of Products the Licensee has (had) manufactured
|
| 134 |
+
|
| 135 |
+
5. Warranty and liability
|
| 136 |
+
|
| 137 |
+
5.1. DISCLAIMER – The Documentation and any modified Documentation are
|
| 138 |
+
provided "as is" and any express or implied warranties, including, but
|
| 139 |
+
not limited to, implied warranties of merchantability, of satisfactory
|
| 140 |
+
quality, non-infringement of third party rights, and fitness for a
|
| 141 |
+
particular purpose or use are disclaimed in respect of the
|
| 142 |
+
Documentation, the modified Documentation or any Product. The Licensor
|
| 143 |
+
makes no representation that the Documentation, modified
|
| 144 |
+
Documentation, or any Product, does or will not infringe any patent,
|
| 145 |
+
copyright, trade secret or other proprietary right. The entire risk as
|
| 146 |
+
to the use, quality, and performance of a Product shall be with the
|
| 147 |
+
Licensee and not the Licensor. This disclaimer of warranty is an
|
| 148 |
+
essential part of this Licence and a condition for the grant of any
|
| 149 |
+
rights granted under this Licence. The Licensee warrants that it does
|
| 150 |
+
not act in a consumer capacity.
|
| 151 |
+
|
| 152 |
+
5.2. LIMITATION OF LIABILITY – The Licensor shall have no liability
|
| 153 |
+
for direct, indirect, special, incidental, consequential, exemplary,
|
| 154 |
+
punitive or other damages of any character including, without
|
| 155 |
+
limitation, procurement of substitute goods or services, loss of use,
|
| 156 |
+
data or profits, or business interruption, however caused and on any
|
| 157 |
+
theory of contract, warranty, tort (including negligence), product
|
| 158 |
+
liability or otherwise, arising in any way in relation to the
|
| 159 |
+
Documentation, modified Documentation and/or the use, manufacture or
|
| 160 |
+
distribution of a Product, even if advised of the possibility of such
|
| 161 |
+
damages, and the Licensee shall hold the Licensor(s) free and harmless
|
| 162 |
+
from any liability, costs, damages, fees and expenses, including
|
| 163 |
+
claims by third parties, in relation to such use.
|
| 164 |
+
|
| 165 |
+
6. General
|
| 166 |
+
|
| 167 |
+
6.1. Except for the rights explicitly granted hereunder, this Licence
|
| 168 |
+
does not imply or represent any transfer or assignment of intellectual
|
| 169 |
+
property rights to the Licensee.
|
| 170 |
+
|
| 171 |
+
6.2. The Licensee shall not use or make reference to any of the names
|
| 172 |
+
(including acronyms and abbreviations), images, or logos under which
|
| 173 |
+
the Licensor is known, save in so far as required to comply with
|
| 174 |
+
section 3. Any such permitted use or reference shall be factual and
|
| 175 |
+
shall in no event suggest any kind of endorsement by the Licensor or
|
| 176 |
+
its personnel of the modified Documentation or any Product, or any
|
| 177 |
+
kind of implication by the Licensor or its personnel in the
|
| 178 |
+
preparation of the modified Documentation or Product.
|
| 179 |
+
|
| 180 |
+
6.3. CERN may publish updated versions of this Licence which retain
|
| 181 |
+
the same general provisions as this version, but differ in detail so
|
| 182 |
+
far this is required and reasonable. New versions will be published
|
| 183 |
+
with a unique version number.
|
| 184 |
+
|
| 185 |
+
6.4. This Licence shall terminate with immediate effect, upon written
|
| 186 |
+
notice and without involvement of a court if the Licensee fails to
|
| 187 |
+
comply with any of its terms and conditions, or if the Licensee
|
| 188 |
+
initiates legal action against Licensor in relation to this
|
| 189 |
+
Licence. Section 5 shall continue to apply.
|
LIV2_GottaGoFastRAM/Rev_A/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GottaGoFastRAM 8MB Autoconfig Fast RAM
|
| 2 |
+
|
| 3 |
+
This is an 8MB Autoconfig Fast RAM for Amiga 500/1000/2000/CDTV based on mkl's mem68k
|
| 4 |
+
It's small size allows it to be stacked on top of an ide68k board
|
| 5 |
+
Rather than use the original mem68k Abel code I have written a new memory controller in Verilog
|
| 6 |
+
|
| 7 |
+
Unfortunately the memory modules are hard to find, I was able to get some by scouring eBay for some 16/32MB simms and looking for ones pictured with the right ram modules - If you see a 16/32MB simm with 2/4 50-pin TSSOP modules then they're probably the right ones
|
| 8 |
+
|
| 9 |
+

|
| 10 |
+
|
| 11 |
+
## PCB Ordering
|
| 12 |
+
I recommend ordering the PCB with a 0.6 or 0.8mm thickness if you intend on stacking with an ide68k or mouting using a DIP socket/machined pin strips.
|
| 13 |
+
If you are going to mount using the socket pins and not stacking with an ide68k I'd recommend going with the usual 1.6mm to reduce flexing.
|
| 14 |
+
|
| 15 |
+
## Mounting options
|
| 16 |
+
|
| 17 |
+
1. Can be soldered to the bottom of a machined pin socket/machined pin strips (will require some cutting of the dip socket to fit the caps/ferrites near the plastic)
|
| 18 |
+
2. Can be soldered to socket pins and stacked with an ide68k
|
| 19 |
+
|
| 20 |
+
## Cfgin/out
|
| 21 |
+
These pins allow you to insert the memory module into your autoconfig chain.
|
| 22 |
+
If there are no other autoconfig devices in your system you can just leave these unconnected otherwise you will need to either connect CFGOut to the CFGin of the first device in your existing autoconfig chain, or connect CFGIn to the CFGOut pin of the last device in your existing autoconfig chain.
|
| 23 |
+
You can also connect cfgin and cfgout with a jumper to disable the device temporarily
|
| 24 |
+
|
| 25 |
+
## Jumpers
|
| 26 |
+
J1: Cfgin pull up/down (You will probably want to leave this at default unless you know what you're doing)
|
| 27 |
+
J2-3: Bridge these if you have not fitted the buffer U4
|
| 28 |
+
|
| 29 |
+
## CDTV
|
| 30 |
+
The CDTV's DMAC takes up the first autoconfig slot, so if you intend to use this with a CDTV use the CDTV specific .JED file to program the CPLD
|
| 31 |
+
|
| 32 |
+
## Timing Diagrams
|
| 33 |
+

|
| 34 |
+

|
| 35 |
+
|
| 36 |
+
### Bill of materials
|
| 37 |
+
|Component|Location|QTY|Link|Remarks|
|
| 38 |
+
|---------|--------|---|------|--------|
|
| 39 |
+
|4Mx16 5V DRAM - KM416C4100|U3|1|-|Look for 16MB SIMMs on eBay which show only 2 tssop package RAMs|
|
| 40 |
+
|XC9572XL-10VQ64C|U1|1|[Mouser](https://www.mouser.se/ProductDetail/217-C9572XL-10VQG64C)||
|
| 41 |
+
|74LVC2G17|U4|1|[Mouser](https://www.mouser.com/ProductDetail/771-74LVC2G17GVQ100H)||
|
| 42 |
+
|AP2210N-3.3|U5|1|[Mouser](https://www.mouser.com/ProductDetail/621-AP2210N-3.3TRG1)||
|
| 43 |
+
|Ferrite Bead, 1206 package|FB1, FB2|2|[Mouser](https://www.mouser.com/ProductDetail/875-MI1206K601R-10)||
|
| 44 |
+
|0.1uF Ceramic Capacitor, 0603|C1,4-11|9|[Mouser](https://www.mouser.com/ProductDetail/80-C603C104K5RAC3121)||
|
| 45 |
+
|4.7uF Ceramic Capacitor, 1206|C2,C12|2|[Mouser](https://www.mouser.com/ProductDetail/791-1206X475K160CT)||
|
| 46 |
+
|10uF Ceramic Capacitor, 1206|C3|1|[Mouser](https://www.mouser.com/ProductDetail/80-C1206C106K4R)||
|
| 47 |
+
|Socket pins|Pins|64|[Aliexpress](https://www.aliexpress.com/item/32791545218.html?spm=a2g0o.productlist.0.0.6e223b55CVrXSq&algo_pvid=8fda9f5a-6e07-4dc8-9ed4-bd809bf75756&algo_expid=8fda9f5a-6e07-4dc8-9ed4-bd809bf75756-0&btsid=2100bde316043149660504011ef819&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_)|Use these if stacking with an ide68k module|
|
| 48 |
+
|64-Pin DIP socket - machined pin|Pins|1|[Mouser](https://www.mouser.com/ProductDetail/575-193964)|If not stacking with ide68k - pcb can be soldered to bottom of this flush with the plastic|
|