6.01 Lecture Notes - Lecture 14: Indium Phosphide, Combinatory Logic, Init

5 views11 pages

Document Summary

In feedback addition composition, we take two machines and connect them as shown below: m1 m2. If m1 and m2 are state machines, then you can create their feedback addition composition with newm = sm. feedbackadd(m1, m2) So, for example, newm = sm. feedbackadd(sm. r(0), sm. wire()) makes a machine whose output is the sum of all the inputs it has ever had (remember that sm. r is shorthand for sm. delay). You can test it by feeding it a sequence of inputs; in the example below, it is the numbers 0 through 9: Feedback subtraction composition is the same, except the output of m2 is subtracted from the input, to get the input to m1. m1 m2. Note that if you want to apply one of the feedback operators in a situation where there is only one machine, you can use the sm. gain(1. 0) machine (de ned section 4. 1. 2. 2. 1), which is essentially a wire, as the other argument.