Up one GAL logic equations file By Lee Davison. Up to top

Download this file Download
/*	Hexadecimal to seven segment decoder			*/	

Name		7seg.pld ;
PartNo		00 ;
Date		22/07/09 ;
Revision	01 ;
Designer	Lee ;
Company		None ;
Assembly	None ;
Location	None ;
Device		g16v8as ;

/*	Inputs							*/

Pin 1 = A ;				/* 2^0 bit		*/
Pin 2 = B ;				/* 2^1 bit		*/
Pin 3 = C ;				/* 2^2 bit		*/
Pin 4 = D ;				/* 2^3 bit		*/

/*	Outputs - active low					*/

Pin 18 = !g ;
Pin 17 = !f ;
Pin 16 = !e ;
Pin 15 = !d ;
Pin 14 = !c ;
Pin 13 = !b ;
Pin 12 = !a ;

/*	Declarations and intermediate variable definitions	*/

FIELD input = [ D, C, B, A ] ;
FIELD output = [ a, b, c, d, e, f, g ] ;

/*	Logic equations						*/

TABLE input => output {

	0 => 7E ;	1 => 30 ;	2 => 6D ;	3 => 79 ;
	4 => 33 ;	5 => 5B ;	6 => 5F ;	7 => 70 ;
	8 => 7F ;	9 => 7B ;	A => 77 ;	B => 1F ;
	C => 4E ;	D => 3D ;	E => 4F ;	F => 47 ;
	}

Last page update: 25th July, 2009. e-mail me e-mail