Skip to content

Instantly share code, notes, and snippets.

@houmei
Created July 12, 2021 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save houmei/75b593175017a36b93ef4527a756ffc2 to your computer and use it in GitHub Desktop.
Save houmei/75b593175017a36b93ef4527a756ffc2 to your computer and use it in GitHub Desktop.
FM11RAM ADDRESS DECODE - GAL 16V8

CUPL(WM) 5.0a Serial# 60008009
Device g16v8s Library DLIB-h-40-9
Created Thu Jul 01 23:48:49 2021
Name F1280101
Partno FM11RAM
Revision 01
Date 21/07/01
Designer Katunori Takesita
Company
Assembly
Location
*QP20
*QF2194
*G0
*F0
*L00000 11111111011111111111101111111110
*L00032 11111111111111111111011111111111
*L00256 11111111111101111111011111111010
*L00288 11111111111110111111011111110110
*L00320 11110111111111111111101111111110
*L00512 10101111111111111111111111111110
*L00768 01101111111111111111111111111110
*L01024 11110111011111110111011111111110
*L01280 11111011011111110111011111111110
*L01536 11110111101111110111011111111110
*L01568 11111111111101110111101111111110
*L01792 11111011101111110111011101111110
*L01824 11111111111110110111101101111110
*L01856 11110111111110110111101111111110
*L01888 11111111011110110111101111111110
*L02048 11000000010001100100110100110001
*L02080 00110001010100100100000101001101
*L02112 00000000000000001111111111111111
*L02144 11111111111111111111111111111111
*L02176 111111111111111110
*C3DC5
*E85A
Name F1280101;
PartNo FM11RAM;
Revision 01;
Date 21/07/01;
Designer Katunori Takesita;
Company ;
Assembly ;
Location ;
Device G16V8;
/*
* SRAM 128KBx4 config.
* SRAM U1 .. $00000 - $1FFFF
* SRAM U2 .. $20000 - $3FFFF
* SRAM U3 .. $40000 - $5FFFF
* SRAM U4 .. $60000 - $7FFFF
* D128 disable U1
* SEL +$80000
*
* SRAM 512KBx2 config.
* SRAM U1 .. $00000 - $7FFFF
* SRAM U2 .. $80000 - $FFFFF
* SRAM U3 .. none
* SRAM U4 .. none
* D128 disable $00000-$1FFFF
*/
/* INPUTS */
Pin 1 = !EB;
Pin 2 = RWB;
Pin 3 = AB17;
Pin 4 = AB18;
Pin 5 = AB19;
Pin 6 = !RAMIHB;
Pin 7 = !R512;
Pin 8 = !D128;
Pin 9 = !SEL;
Pin 11 = !EN;
/* OUTPUTS */
Pin 19 = A18NC;
Pin 18 = A17CS2;
Pin 17 = !WE;
Pin 16 = !OE;
Pin 15 = !CE3;
Pin 14 = !CE2;
Pin 13 = !CE1;
Pin 12 = !CE0;
OE = EN & EB & RWB ;
WE = EN & EB & !RWB ;
/* SRAM 128KB x4 or 512KB x2 */
CE0 = EN & !R512 & !RAMIHB & !AB18 & !AB17 & !D128 # EN & R512 & !RAMIHB & !AB19 & !(D128 & !AB18 & !AB17) ;
CE1 = EN & !R512 & !RAMIHB & !AB18 & AB17 # EN & R512 & !RAMIHB & AB19 ;
CE2 = EN & !R512 & !RAMIHB & AB18 & !AB17 ;
CE3 = EN & !R512 & !RAMIHB & AB18 & AB17 ;
A18NC = EN & R512 & AB18 # !R512 ;
A17CS2 = EN & !R512 & SEL & AB19 # EN & !R512 & !SEL & !AB19 # EN & R512 & AB17 ;
/* END */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment