Write A Documented Program Which Will Simulate The Gate Array Logic

Write A Documented Program Which Will Simulate The Gate Array Logic