Page 35 - Computer_Science_F5
P. 35

Computer Science






          FOR ONLINE READING ONLY






















                                        Figure 1.22: Testing circuit

            Step 6:   Compare your test results with the outputs in truth Table 1.11


            Both contain 0s, the output as well contains 0. This already tells us that the circuit
            already computes a 0 when both inputs are 0. Now try another combination of
            inputs by selecting the poke tool and start poking the inputs by clicking on them.
            Each time you poke an input, its value will change.

            Table 1. 11: Truth table for comparing test results

                    x               y             x AND y
                    0               0                0

                    0               1                0
                    1               0                0
                    1               1                1



            Questions:
             1.  Provide descriptions on what you have observed.
             2.  Explain if the output of the circuit test from a simulator gives the same results
                as in Table 1.23.



                                                  26
                                                                for Advanced Secondary Schools



     Computer Science Form 5.indd   26                                                      23/07/2024   12:32
   30   31   32   33   34   35   36   37   38   39   40