ABEL部分程序解读.docVIP

  • 12
  • 0
  • 约8.09千字
  • 约 16页
  • 2021-03-22 发布于山东
  • 举报
数字电路课程设计 ABEL 部分程序 例 1 组合电路实验 MODULE comb_simple title‘ This is a gal demo U9 device P16V8R; in1,in2,in3 pin ; out1,out2,out3 pin ; equations out1=in1in2in3; out2=in1#in2#in3; out3=!in3; END 例 2 组合电路实验的测试向量 MODULE comb_simple // title ‘ Thisgalisdemoa U9 device P16V8R; in1,in2,in3 pin ; out1,out2,out3 pin ; test_vectors ([in1,in2,in3]-[out1,out2]) [0,0,0]-[.x.,.x.]; [0,0,1]-[.x.,.x.]; [0,1,0]-[.x.,.x.]; [0,1,1]-[.x.,.x.]; [1,1,1]-[.x.,.x.]; END 例 3 用 GAL16V8 设计如下 6 个基本逻辑门: P123 与门,或门,与非门,或非门,异或门,同或门。 解 6 个基本逻辑门的逻辑表达式为 根据上述逻辑表达式,采用一片 GAL16V8 就可以实现 6 个基本逻辑门。用 ABLE-HDL 语言写出的基本逻辑门的设计源文件如下: MOD

文档评论(0)

1亿VIP精品文档

相关文档