File "CME12B.PLD"

Full Path: /home/analogde/www/chart-export-handler/Projet/Example/HC12/BC32/CME12B.PLD
File size: 2.14 KB
MIME-type: text/plain
Charset: utf-8

Name            CME12B;
Partno          CME12B;
Revision        01;
Date            04/8/98;
Designer        Forrester;
Company         Axiom Manufacturing;
Assembly        CME12B decode;
Location        U8;
Device          g16v8a ;

/************************************************************************/
/* This device generates the chip select signals for the memory map.    */
/************************************************************************/

/** Inputs **/

pin 1	   = E ;			/* E clock input		*/
pin 2	   = G1 ;			/* Address gate input		*/
pin 3	   = G2 ;			/* Address gate input		*/
pin 4	   = A9 ;			/* A9 input			*/
pin 5	   = A15 ;			/* A15 input			*/
pin 6	   = A0 ;			/* A0 input			*/
pin 7      = !RW ;                      /* memory write strobe          */
pin 8	   = !LSB ; 			/* Low Byte strobe		*/
pin 9	   = !DBE ;			/* Data Bus Enable		*/
pin 11	   = !MEM ;			/* External memory enable input	*/
pin 12	   = !ROM ;			/* External rom enable          */

/** Outputs **/

pin 13     = !P_SEL ;                   /* Peripheral area select       */
pin 14     = !M_CS ;                    /* Rom memory select            */
pin 15     = !R_1 ;                     /* Ram cs 1 odd                 */
pin 16     = !R_0 ;                     /* Ram cs 0 even                */
pin 17     = !OE ;                      /* Memory output enable         */
pin 18     = !WE ;                      /* Memory Write enable          */
pin 19     = AS ;                       /* Address latch                */


/** Logic Equations **/

B0      = (!A0 & E) ;                   /* Byte 0 access equation */
/* B1      = LSB ;                       /* Byte 1 access equation */
B1      = (LSB) # (A15 & !RW & E) ;     /* Byte 1 access equation */

OE	= !RW & E & MEM ;		/* Output enable */
WE      = RW & E & MEM ;		/* Write enable */
P_SEL	= G1 & G2 & !A15 & A9 & E & MEM ; /* $200 - $3FF   */
AS	= !E & MEM ;			/* Address strobe */
M_CS    = A15 & MEM & ROM & E ;		/* $8000-$Ffff */
R_0	= B0 & MEM & !M_CS & !P_SEL ;	/* $400-$7FFF or $400-$FFFF even */
R_1	= B1 & MEM & !M_CS & !P_SEL ;  	/* $400-$7FFF or $400-$ffff odd */