Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started