reset.pld

来自「Atmel提供的GAL编译工具,对GAL芯片进行编写,以及可转换成机器码」· PLD 代码 · 共 45 行

PLD
45
字号
Name            Reset;
Partno          ;
Revision        01;
Date            8/11/95;
Designer        PLD Expert;
Company         Atmel Corp.;
Location        None;
Assembly        None;
Device          F1500;

/* Example showing reset usage */

$INCLUDE FIT1500.M

GLOBAL(GlobalReset);

pin 1 = GlobalReset;
pin [28,24,25,26] = [c, w, y, f]; 

pin [34,36] = [r0, r1]; 

/* Equations */
r0.d   = w & y;
r0.ck = c;
r0.ar  = !GlobalReset;  /* The global reset has
                           a fixed inversion. */

r1.d   = w;
r1.ck = c;
r1.ar  = f & !y;        /* This register uses a reset term */

/*
test_vectors
([c,GlobalReset,w,y,f] -> [r0,r1]);
 [0,     1     ,0,0,0] -> [ 0, 0];
 [C,     1     ,0,0,0] -> [ 0, 0];
 [C,     1     ,1,0,0] -> [ 0, 1];
 [C,     1     ,1,1,0] -> [ 1, 1];
 [C,     1     ,0,1,0] -> [ 0, 0];
 [C,     1     ,1,1,0] -> [ 1, 1];
 [0,     0     ,1,1,0] -> [ 0, 1];
 [0,     1     ,1,1,1] -> [ 0, 1];
 [0,     1     ,1,0,1] -> [ 0, 0];
*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?