Chapter 5: Architecture - Computer and Information Science - CUNY

Chapter 5: Architecture - Computer and Information Science - CUNY Chapter 5: Architecture - Computer and Information Science - CUNY

sci.brooklyn.cuny.edu
from sci.brooklyn.cuny.edu More from this publisher
28.06.2014 Views

12 CHAPTER 5. ARCHITECTURE Let us be formal with the number of inputs and the number of outputs. If A is an operation with m input bits and n output bits, then we shall draw this as / m A / n (5.40) The matrix A will be of size 2 n by 2 m . Say B takes the n outputs of A as input and outputs p bits, i.e., / m A / n B / p (5.41) Then B is represented by 2 p by 2 n matrix B, and performing one operation sequentially followed by another operations corresponds to B ⋆ A which is a (2 p by 2 n ) ⋆ (2 n by 2 m ) = (2 p by 2 m ) matrix. Besides sequential operations, there are parallel operations:

5.2. CLASSICAL GATES 13 A (5.42) B Here we are doing A to some bits and B to other bits. This will be represented by A ⊗ B (see section 2.7). Let us be exact with the number of inputs and the number of outputs. / m A / n / m′ B / n′ (5.43) A will be of size 2 n by 2 m . B will be of size 2 n′ by 2 m′ . Following equation [CITE EQUATION] in section 2.7, A ⊗ B is of size 2 n 2 n′ = 2 n+n′ by 2 m 2 m′ = 2 m+m′ . Exercise 5.2.4 In Exercise CITE EXERCISE we proved that A ⊗ B ∼ = B ⊗ A. What does this fact correspond to in terms of doing parallel operations to different bits?

12 CHAPTER 5. ARCHITECTURE<br />

Let us be formal with the number of inputs <strong>and</strong> the number of outputs. If<br />

A is an operation with m input bits <strong>and</strong> n output bits, then we shall draw this<br />

as<br />

/ m A / n (5.40)<br />

The matrix A will be of size 2 n by 2 m . Say B takes the n outputs of A as<br />

input <strong>and</strong> outputs p bits, i.e.,<br />

/ m A / n B / p (5.41)<br />

Then B is represented by 2 p by 2 n matrix B, <strong>and</strong> performing one operation<br />

sequentially followed by another operations corresponds to B ⋆ A which is a<br />

(2 p by 2 n ) ⋆ (2 n by 2 m ) = (2 p by 2 m ) matrix.<br />

Besides sequential operations, there are parallel operations:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!