/2/EQ4.hdl

http://github.com/happy4crazy/elements_of_computing_systems · Unknown · 9 lines · 8 code · 1 blank · 0 comment · 0 complexity · d35faa2189fd1013934bad750359cc21 MD5 · raw file

  1. CHIP EQ4{
  2. IN a[4], b[4];
  3. OUT out;
  4. PARTS:
  5. EQ2(a=a[0..1], b=b[0..1], out=out01);
  6. EQ2(a=a[2..3], b=b[2..3], out=out23);
  7. And(a=out01, b=out23, out=out);
  8. }