6. We have a new type of flip flop, with inputs A and B. If A 0, then Q★ B; if A 1, Q★ B.
a. Show a state diagram for this flip flop.
b. Write an equation for Q★ in terms of A, B, and Q.
7. For each of the following circuits, complete the timing diagram for the state of each flip flop and the output, where shown. All flip flops are trailing-edge triggered. For those circuits in which there is no clear input, assume each flip flop starts at 0.