A lucid article on how Edge triggered and level triggered devices are designed.
JTAG on Wiki JTAG Link 1 JTAG Link 2 JTAG Link 3 JTAG Link 4 JTAG Link5
JTAG is explained very clearly at many places. I had to go through all the links to get a complete picture