Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Strctured Computer Organization 6 th editon chapter 3 problem 46. Write a program to simulate the behavior of an m n array of two-input NAND

Strctured Computer Organization 6 th editon chapter 3 problem 46. Write a program to simulate the behavior of an m n array of two-input NAND gates. This circuit, contained on a chip, has j input pins and k output pins. The values of j, k, m, and n are compile-time parameters of the simulation. The program should start off by reading in a wiring list, each wire of which specifies an input and an output. An input is either one of the j input pins or the output of some NAND gate. An output is either one of the k output pins or an input to some NAND gate. Unused inputs are logical 1. After reading in the wiring list, the program should print the output for each of the 2j possible inputs. Gate array chips like this one are widely used for putting custom circuits on a chip because most of the work (depositing the gate array on the chip) is independent of the circuit to be implemented. Only the wiring is specific to each design.

I need some guidance on this problem. I under how the gates work and the wiring, but I am stuck on how this would work i a program like JAVA. I know a stack can be used, but as far as wiring the gates on the mxn array of NAND gaves, I need some direction.

Thanks,

Matt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

1. The evaluation results can be used to change the program.

Answered: 1 week ago

Question

5. To determine the financial benefits and costs of the program.

Answered: 1 week ago