fixing a bug in poller and a bug in algo1_nandsim/Top.bsv.  examples/algo1_nandsim now works correctly if you start the three executables in the correct order

Change-Id: I3050369810277dd7ceb511c8604e98dd99c7f233