1 / 7

cs316 section 2: Intro to Logisim + State Machines

cs316 section 2: Intro to Logisim + State Machines. Most real-world hardware design is done using a text-based hardware description language – VHDL, AHDL, etc. Schematics can be "compiled" into a text description Can use a simulator to test the circuit

yahto
Download Presentation

cs316 section 2: Intro to Logisim + State Machines

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. cs316 section 2: Intro to Logisim + State Machines • Most real-world hardware design is done using a text-based hardware description language – VHDL, AHDL, etc. • Schematics can be "compiled" into a text description • Can use a simulator to test the circuit • Other back-end tools optimize, perform layout and wire routing, floorplan, etc. • Final spec is either downloaded onto a programmable device, or etched into silicon • We will be using Logisim for all hardware design • interactive, graphical schematic editor • educational use mainly (makes it user-friendly)

  2. S R Q Q 0 0 Q Q 0 1 0 1 1 0 1 0 1 1 ? ? SR Latch • Set-Reset (S-R) Latch • Q: Stored value and its complement • S=1 and R=1 ? Q R S Q

  3. First Attempt • How does the output behave? D S Q R Q clk D Q D Q clk Q Q

  4. Master-Slave Flip-Flop • Outputs change only on falling edges • Data is captured on rising edges • Delay in outputs • but works out perfectly – data for the next stage is ready half cycle ahead of time D Q D Q X Q Q clk D X Q

  5. Traffic Light… ?

  6. S_EW S_NS Simple intersection • One non-red light at a time • Always transition to yellow before red • Minimum ~10 seconds on green • ~5 seconds on yellow • If car sensed at red light … then change directions • Always complete change-of-direction • Stay green if no cars sensed NS EW

  7. Optimize for minimum effort

More Related