270L16Notes - CLK 270, Fall 2009, Lecture 16 CLK EECS X X...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CLK X State Z CLK X State Z EECS 270, Fall 2009, Lecture 16 Page 1 of 9 Let’s say we use the following datapath: Now we need a state machine to control this…
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
I. Datapath and control Let’s jump to the next obvious thing: designing a datapath. Let’s start fairly simple with the following problem (this is variation on a problem in our text) We want to measure distance with a laser-based measurement device (you can buy these fairly cheaply by the way). The idea is you shoot a laser at a target and you measure how long it took for the light to get back to you. We’ve got two inputs: Start_button (B) and Laser_sensor (S). We’ve got two outputs: Laser_on(L) and Display(D). Each of these are 1 bit values other than Display which is to output a 16-bit value indicating how far away the target is. Assume our clock runs at 1GHz and that light travels at 3x10 8 m/s. Our display value will be in terms of clockticks that occur before the light returns. (How far would 1 tick be?) At a high-level what’s the plan? Draw it as a “magic” state machine (that is, you don’t need to worry out inputs and
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

270L16Notes - CLK 270, Fall 2009, Lecture 16 CLK EECS X X...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online