首页 | 供应信息 | 采购信息 | PDF资料 | 技术资料 | 行业资讯 | 产品展示 | 人才市场 进入会员区
   技术文章分类:单片机/DSP 嵌入式系统 测试仪表 电源技术 接口电路 存储器 传感与控制 通信网络 无线通信 模拟技术 显示与光电 EDA/PLD 汽车电子 消费电子 电子综合
   电子综合工具:PDF资料大全 电子缩略语 IC型号替换 IC厂家 电子电路图 技术参数 设计应用 解决方案
技术资料 行业资讯 PDF资料 IC价格 IC替换 缩略语 IC供应 IC采购
  您所在的位置: IC37首页 > 技术问答 > 单片机 > GAL16V8的问题,求救

  GAL16V8的问题,求救 

GAL16V8

DESIGNED BY cai

1/26/2008

ADDR CODER

A1 A2 A3 A4 A5 A6 A7 A8 B1 GND

B2 B3 B4 B5 B6 B7 B8 CS1 CS2 VCC

/CS1=/A1*B1+A1*/B1+/A2*B2+A2*/B2+/A3*B3+A3*/B3+/A4*B4+A4*/B4+/A5*B5+A5*/B5+/A6*B6+A6*/B6+/A7*B7+A7*/B7+/A8*B8+A8*/B8

DESCRIPTION

这是我的程序,其实就是想实现8位数字比较器,像74ls518那样,因为74ls518买不着,所以才这样做,可以编译软件老是提示B6是输出定义,咋回事呀?


作者:CCWSD  2008-1-26 19:52:00

  回复1  哈哈~~~腐败呀~~~菜农可怜的Cupl语言程序设计包167689

哈哈~~~GAL16V8有S,C,R三种定义

A1 A2 A3 A4 A5 A6 A7 A8 B1 GND

B2 B3 B4 B5 B6 B7 B8 CS1 CS2 VCC

A1~B1,B2只能做输入

选P16V8S:乘积项为8,只能做一般门电路

B6,B7为输出,B3,B4,B5,B8,CS1,CS2为输出输入

选P16V8C:乘积项为7,一般门电路可三态控制

B3,CS2为输出,B4,B5,B6,B7,B8,CS1为输出输入

选P16V8R:乘积项为8,寄存器型

B1为时钟输入,B2为使能,B3,B4,B5,B6,B7,B8,CS1为输出输入

倒塌了~~~求助也不把CS2的公式列出~~~

从管脚定义应该这样设置:

1.选P16V8S:

A1 A2 A3 A4 A5 A6 A7 A8 B1 GND

B2 B3 B4 B5 CS1 CS2 B6 B7 B8 VCC

2.选P16V8R:

A1 A2 A3 A4 A5 A6 A7 A8 B1 GND

B2 CS1 B3 B4 B5 B6 B7 B8 CS2 VCC

建议用ABEL或CUPL编程~~~

Protel 99 SE自带的CUPL比较方便~~~

哈哈~~~腐败呀~~~菜农可怜的Cupl语言程序设计包


作者:hotpower  2008-1-26 20:30:00

  回复2  哈哈~~~再搭送楼主一个干坏事的工具~~~167690

哈哈~~~再搭送楼主一个干坏事的工具~~~
作者:hotpower  2008-1-26 20:59:00

  回复3  楼主的运气不错,不过只能2个模块4路数字信号比较167691

搜索了74hc518没找到PDF文件...

由于GAL16V8系列只有8个乘积项,即乘积的和最多只能为8个,故'+'号只能出现7次.

所以电路必须接成P16V8S:

A1 A2 A3 A4 A5 A6 A7 A8 B1 GND

B2 B3 B4 B5 CS1 CS2 B6 B7 B8 VCC

程序应该写成:(你用的是FM软件???)

/CS1=/A1*B1+A1*/B1+/A2*B2+A2*/B2+/A3*B3+A3*/B3+/A4*B4+A4*/B4

/CS2=/A5*B5+A5*/B5+/A6*B6+A6*/B6+/A7*B7+A7*/B7+/A8*B8+A8*/B8

这样就输出了2个信号,即有1路相等即输出低电平信号.

如果只能测试1个有效信号,就必须再/CS=/CS1*/CS2.

由于CS1和CS2不能线与,故需再加门电路或在CS1和CS2的输出都加二极管IN4148后负极短接作为总输出/CS.

没用过FM软件,不知如何设置成'S型'.

对应的ABEL或CUPL语言写法:

!CS1 = A1 $ B1 注意: A1 $ B1 = (A1 异或 B1) = !A1 & B1 # A1 & !B1

# A2 $ B2

# A3 $ B3

# A4 $ B4;

!CS2 = A5 $ B5

# A6 $ B6

# A7 $ B7

# A8 $ B8;


作者:hotpower  2008-1-27 2:33:00

  回复4  74hc518.pld文件167692

Name74HC518;

Partno;

Revision1;

Date3/12/02;

DesignerHotPower;

Companyhttp://www.ednchina.com/blog/hotpower/ ;

Assembly;

Location;

Deviceg16v8s;

Formatj;

/** Inputs**/

Pin[1..8]= [A1, A2, A3, A4, A5, A6, A7, A8];

Pin[9, 11..14, 17..19] = [B1, B2, B3, B4, B5, B6, B7, B8];

Pin[10,20]= [Gnd,Vcc];

/** Outputs **/

Pin[15,16]= [CS1, CS2];

/** Logic Equations **/

//!CS1=!A1&B1#A1&!B1#!A2&B2#A2&!B2#!A3&B3#A3&!B3#!A4&B4#A4&!B4;

!CS1 = A1 $ B1

# A2 $ B2

# A3 $ B3

# A4 $ B4;

//!CS2=!A5&B5#A5&!B5#!A6&B6#A6&!B6#!A7&B7#A7&!B7#!A8&B8#A8&!B8;

!CS2 = A5 $ B5

# A6 $ B6

# A7 $ B7

# A8 $ B8;


作者:hotpower  2008-1-27 2:34:00

  回复5  74hc518.rep文件167693

*******************************************************************************

74HC518

*******************************************************************************

ADVANCED PLD4.0 Serial# MW-67999999

Deviceg16v8sLibrary DLIB-h-36-9

Created星期日 一月 27 02:12:23 2008

Name74HC518

Partno

Revision1

Date3/12/02

DesignerHotPower

Companyhttp://www.ednchina.com/blog/hotpower/

Assembly

Location

===============================================================================

Expanded Product Terms

===============================================================================

!CS1 =>

!A1 & B1

# A1 & !B1

# !A2 & B2

# A2 & !B2

# !A3 & B3

# A3 & !B3

# !A4 & B4

# A4 & !B4

!CS2 =>

!A5 & B5

# A5 & !B5

# !A6 & B6

# A6 & !B6

# !A7 & B7

# A7 & !B7

# !A8 & B8

# A8 & !B8

===============================================================================

Symbol Table

===============================================================================

Pin VariablePtermsMaxMin

PolNameExtPinTypeUsedPtermsLevel

--- -----------------------------------

A11V---

A22V---

A33V---

A44V---

A55V---

A66V---

A77V---

A88V---

B19V---

B211V---

B312V---

B413V---

B514V---

B617V---

B718V---

B819V---

CS115V881

CS216V881

Gnd10V---

Vcc20V---

LEGENDD : default variableF : fieldG : group

I : intermediate variableN : nodeM : extended node

U : undefinedV : variableX : extended variable

T : function

===============================================================================

Fuse Plot

===============================================================================

Syn02192 - Ac002193 x

Pin #1902048Pol x02120Ac1 -

00000 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00032 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00064 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00096 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00128 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00160 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00192 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00224 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Pin #1802049Pol x02121Ac1 -

00256 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00288 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00320 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00352 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00384 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00416 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00448 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00480 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Pin #1702050Pol x02122Ac1 -

00512 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00544 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00576 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00608 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00640 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00672 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00704 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

00736 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Pin #1602051Pol x02123Ac1 x

00768 -------------x----x-------------

00800 ------------x------x------------

00832 --------------x--x--------------

00864 ---------------xx---------------

00896 ----------x----------x----------

00928 -----------x--------x-----------

00960 ------x------------------x------

00992 -------x----------------x-------

Pin #1502052Pol x02124Ac1 x

01024 ---x------------------------x---

01056 --x--------------------------x--

01088 -x----------------------------x-

01120 x------------------------------x

01152 -----x--------------------x-----

01184 ----x----------------------x----

01216 ---------x------------x---------

01248 --------x--------------x--------

Pin #1402053Pol x02125Ac1 -

01280 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01312 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01344 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01376 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01408 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01440 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01472 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01504 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Pin #1302054Pol x02126Ac1 -

01536 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01568 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01600 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01632 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01664 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01696 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01728 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01760 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Pin #1202055Pol x02127Ac1 -

01792 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01824 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01856 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01888 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01920 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01952 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

01984 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

02016 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

LEGENDX : fuse not blown

- : fuse blown

===============================================================================

Chip Diagram

===============================================================================

______________

|74HC518|

A1 x---|120|---x Vcc

A2 x---|219|---x B8

A3 x---|318|---x B7

A4 x---|417|---x B6

A5 x---|516|---x CS2

A6 x---|615|---x CS1

A7 x---|714|---x B5

A8 x---|813|---x B4

B1 x---|912|---x B3

Gnd x---|1011|---x B2

|______________|


作者:hotpower  2008-1-27 2:36:00

  回复6  74hc518.jed文件167694

ADVANCED PLD4.0Serial# MW-67999999

Deviceg16v8sLibrary DLIB-h-36-9

Created星期日 一月 27 02:12:23 2008

Name74HC518

Partno

Revision1

Date3/12/02

DesignerHotPower

Companyhttp://www.ednchina.com/blog/hotpower/

Assembly

Location

*QP20

*QF2194

*G0

*F0

*L00768 11111111111110111101111111111111

*L00800 11111111111101111110111111111111

*L00832 11111111111111011011111111111111

*L00864 11111111111111100111111111111111

*L00896 11111111110111111111101111111111

*L00928 11111111111011111111011111111111

*L00960 11111101111111111111111110111111

*L00992 11111110111111111111111101111111

*L01024 11101111111111111111111111110111

*L01056 11011111111111111111111111111011

*L01088 10111111111111111111111111111101

*L01120 01111111111111111111111111111110

*L01152 11111011111111111111111111011111

*L01184 11110111111111111111111111101111

*L01216 11111111101111111111110111111111

*L01248 11111111011111111111111011111111

*L02112 00000000111001111111111111111111

*L02144 11111111111111111111111111111111

*L02176 111111111111111110

*C44A4

*FCCB


作者:hotpower  2008-1-27 2:37:00

  回复7  看图识字~~~附74hc518.rar压缩包~~~167695

看图识字~~~附74hc518.rar压缩包~~~
作者:hotpower  2008-1-27 2:49:00

  回复8  HotPower是个活雷锋167696

帮人帮到底,送佛送到西,大好人。

嘿嘿,俺了蛮喜欢GAL芯片的。俺以前用ABEL4.0,后改用与Windows环境兼容的Lattic的Level环境做开发了。


作者:古道热肠  2008-1-27 11:03:00

  回复9  真没想到,现在还有人在玩GAL167697

LZ的问题和GAL没有关系,原因是数字逻辑没有学好。


作者:平常人  2008-1-27 11:08:00

  回复10  哈哈~~~15年前玩的,现在练习练习看看忘了没~~~167698

哈哈~~~15年前玩的,现在练习练习看看忘了没~~~
作者:hotpower  2008-1-27 11:13:00

  回复11  哈哈~~~平常人这次大错了~~~不了解GAL就定义不了管脚~~~167699

哈哈~~~平常人这次大错了~~~不了解GAL就定义不了管脚~~~
作者:hotpower  2008-1-27 11:15:00

  回复12  哈哈,大叔教导的在理,俺是15年不玩全忘光了167700

惭愧


作者:平常人  2008-1-27 11:18:00

  回复13  谢谢,hotpower167701

但是不知道我的设置还是啥地方有问题,总是生成不了。jed,郁闷


作者:ccwsd  2008-1-27 11:35:00

  回复14  哈哈~~~他的管脚定义顺序有问题~~~楼上的改其他软件吧~~~167702

FM太烂~~~


作者:hotpower  2008-1-27 11:51:00


我要投稿 注册会员
客服咨询热线:0755-26000950 0755-26007355
 相关技术问答
·求购51或arm开发板  2008-1-24
·关于C和汇编的问题  2008-1-25
·请大家帮我看看这个电路实现..  2008-1-25
·TDA2030AV国外库存..  2008-1-25
·请教砍波原理  2008-1-25
·定时器精确定时  2008-1-25
·说说msp430的仿真指令  2008-1-25
·请各位推荐一块80c51开..  2008-1-26
·为何sin = 0;报错e..  2008-1-26
·“技术派”的力量——坚持看..  2008-1-26
·请教一个计数器的计数时间问题  2008-1-26
·请教数码管电路问题?  2008-1-26
·有没有人弄格雷码  2008-1-26
·请问eeprom和铁电的驱..  2008-1-26
·麻烦大家帮忙推荐一款红外遥..  2008-1-26
·寻找一款合适的单片机  2008-1-27
·C8051F067大约多少..  2008-1-27
·探讨:如何实现用串行通讯,..  2008-1-27
·想问下unsigned c..  2008-1-27
·差距多少?  2008-1-27
·relax time  2008-1-27
·请问仿真器和编程器的区别  2008-1-27
·ucos关于OS_ENTE..  2008-1-27
·程序量多少和抗干扰有什么联..  2008-1-27
·招聘外销工程师  2008-1-27
·stc89le58rd+内..  2008-1-28
 
 热门IC
4816P-2-222  FS14UM-10  TC7SA00FU  TPSB226M010R0700  TAJC335K025R  SN74HC74ADBR  M51957AFP-31A  SN74HC20NSR  CXA1994M-T4  EL4543IU-T13  LL1608-FHR10J  LQG11A4N7S00T1  MSM82C59A-2GS-KR1  MC74LCX157DTR2G  SR305E105MAA  SR215E104MAR  TPS62302DRCR  ULN2074  X0100129-02  S4558P  2SB710A-S  2SB1218A-Q  RD15M  LTC2293IUP  LR4332QC-1  SMP1320-079  XN2501  DSA010  SI4431BDY  L432M3B  SI4980DY-T1-E3  SI4854DY  SI4808DY-T1  STI5500BVA  OP32  PC74HC165D  V164  STK402-250  QMV874BH5  MC74HC240N  D3597CY  VSD702J-1  PEF20525EHV1.3  SG6561AS  PAL20L8B-2CNS  GL3815  M3006LAB1S2  CHR0220-K7  MMSZ5260BT1G  MMSZ5255BT1G