16 Pages

l10mjor_minorfsm

Course: EECS 6.111, Spring 2004
School: MIT
Rating:
 
 
 
 
 

Word Count: 1331

Document Preview

Major/Minor L10: FSMs, , Lab 3, and RAM/ROM Instantiation Instantiation Courtesy of Rex Min. Used with permission. L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 1 Toward FSM Modularity Modularity Consider the following abstract FSM: S0 S1 a1 b1 S2 d1 c1 S3 S4 a2 b2 S5 d2 c2 S6 a3 b3 S7 d3 c3 S8 S9 Suppose Can that each set of states ax...dx is a "sub-FSM"...

Register Now

Unformatted Document Excerpt

Coursehero >> Massachusetts >> MIT >> EECS 6.111

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Major/Minor L10: FSMs, , Lab 3, and RAM/ROM Instantiation Instantiation Courtesy of Rex Min. Used with permission. L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 1 Toward FSM Modularity Modularity Consider the following abstract FSM: S0 S1 a1 b1 S2 d1 c1 S3 S4 a2 b2 S5 d2 c2 S6 a3 b3 S7 d3 c3 S8 S9 Suppose Can that each set of states ax...dx is a "sub-FSM" that produces exactly the same outputs. No! The outputs may be the same, but the next-state transitions are not. we simplify the FSM by removing equivalent states? This situation closely resembles a procedure call or function call in software...how can we apply this concept to FSMs? Introductory Digital Systems Laboratory 2 L10: 6.111 Spring 2004 The Major/Minor FSM Abstraction Abstraction STARTA BUSYA Minor FSM A RESET CLK Major FSM RESET CLK STARTB BUSYB Minor FSM B Subtasks are encapsulated in minor FSMs with common reset and clock Simple communication abstraction: START: tells the minor FSM to begin operation (the call) BUSY: tells the major FSM whether the minor is done (the return) The major/minor abstraction is great for... Modular designs (always a good thing) Tasks that occur often but in different contexts Tasks that require a variable/unknown period of time Event-driven systems L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 3 Inside the Major FSM FSM BUSY BUSY BUSY BUSY BUSY BUSY ... S1 1. Wait until the minor FSM is ready START S2 S3 S4 2. Trigger the minor FSM (and make sure it's started) 3. Wait until the minor FSM is done Major FSM State START BUSY CLK S1 S2 S2 S3 S3 S3 S4 L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 4 Inside the Minor FSM FSM 1. Wait for a trigger from the major FSM START T1 BUSY START BUSY T2 BUSY T3 BUSY T4 3. Signal to the major FSM that work is done 2. Do some useful work Major FSM State START BUSY CLK Minor FSM State S1 S2 S2 S3 S3 S3 S4 can we speed this up? T1 T1 T2 T3 T4 T1 T1 L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 5 Optimizing the Minor FSM FSM Good idea: de-assert BUSY one cycle early START T1 BUSY START BUSY T2 BUSY T3 T4 BUSY Bad idea #1: T4 may not immediately return to T1 START Bad idea #2: BUSY never asserts! START T1 BUSY START BUSY T2 BUSY T3 T4 BUSY T1 BUSY START T2 BUSY L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 6 A Four-FSM Example Example TICK STARTA BUSYA STARTB Minor FSM A Minor FSM B Minor FSM C Operating Scenario: Major FSM BUSYB STARTC BUSYC Major FSM is triggered by TICK Minors A and B are started simultaneously Minor C is started once both A and B complete TICKs arriving before the completion of C are ignored TICK Assume that BUSYA and BUSYB both rise before either minor FSM completes. Otherwise, we loop forever! TICK BUSYA+BUSYB BUSYA+BUSYB IDLE STARTA STARTB STAB BUSYABUSYB WTAB BUSYABUSYB BUSYC WTC BUSYC L10: 6.111 Spring 2004 BUSYC STARTC STC BUSYC Introductory Digital Systems Laboratory 7 Four-FSM Sample Waveform Waveform TICK STARTA BUSYA Minor FSM A Minor FSM B Minor FSM C Major FSM STARTB BUSYB STARTC BUSYC state tick STARTA BUSYA STARTB BUSYB STARTC BUSYC L10: 6.111 Spring 2004 IDLE IDLE STAB STAB WTAB WTAB WTAB STC STC WTC WTC WTC IDLE IDLE STAB Introductory Digital Systems Laboratory 8 Lab3 Block Diagram Diagram RESET status Synchronizer CONTROL UNIT MAJOR FSM A/D AD 670 control(CE, CS, R/W) MINOR FSM 1 MINOR FSM 2 ... Must choose a shared bus for the A/D and DA A/D output in twos complement and ROM in sign/magnitude Bypass LE_DAC L E_ADC RAM Control and A ddress 8 8 Bidirectional I/O 8 D A/D Reg LD Q ALU CONTROL RO M Control and Address Use on-chip SRAM and ROM Sample rate is fixed at 20kHz Must use a memory based approach to FIR, not tapped delay line (i.e., registers) Must use Major/Minor FSM structure 9 8 SW control (CE, CS) D/A Reg LD D Q LE_DAC SRAM Impulse Response ROM 8 D/A AD 558 CLK 8 Switches 2 SW 8 Arithmetic Unit (MAC) L10: 6.111 Spring 2004 Introductory Digital Systems Flow Laboratory Control for Lab3 Lab3 Reset Wait Initialize for a fixed time interval. Wait Sample Output what was computed on the last sample. the previous A/D sample into memory. Start the next A/D conversion. the FIR filter algorithm which is a convolution. back for more... Sample Store Output Computed Sample to DAC Store A/D Sample Do Initiate A/D Go Convolve Introductory Digital Systems Laboratory 10 L10: 6.111 Spring 2004 Use LPM to Create ROM/RAM ROM/RAM Click on File MegaWizard Plug-In Manager This z z starts up a series of windows so that you can specify parameters of the LPM module. You can choose ROM RAM dp - Dual Ported dq - Separate Inputs and Outputs io - TriState Inputs and Outputs (like the 6264) You size. You should specify a file to set the values of the ROM. You can choose registered or unregistered inputs, outputs, and addresses. choose the number of address bits and the word L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 11 ROM Contents Contents Prepare a .dat file. You can type this in, write a computer program, get it from another application (speech or graphics, etc.) This has numbers separated by white space. z The default base is HEX but you can use binary or decimal if you include the following statement (before the numbers). # BASE = BINARY; Insert, # SET_ADDRESS = 0; (specifies that data should start at address 0) Run dat2ntl on Athena to format your .dat file into Intel HEX for details, after `setup 6.111' type `man dat2ntl' dat2ntl <filename>.dat <filename>.ntl rom8x8.dat: # SET_ADDRESS = 0; 7 6 5 4 3 2 1 0 L10: 6.111 Spring 2004 dat2ntl rom8x8.ntl: :080000000706050403020100DC :00000001FF tool on athena 3 8 address ROM data Introductory Digital Systems Laboratory 12 rom8x8.v (generated automatically) automatically) //============================================= // File Name: rom8x8.v // Megafunction Name(s): // lpm_rom //============================================= module rom8x8 ( address, q); input [2:0] address; output [7:0] q; wire [7:0] sub_wire0; wire [7:0] q = sub_wire0[7:0]; lpm_rom defparam lpm_rom_component.lpm_width = 8, lpm_rom_component.lpm_widthad = 3, lpm_rom_component.lpm_address_control = "UNREGISTERED", lpm_rom_component.lpm_outdata = "UNREGISTERED", lpm_rom_component.lpm_file = "rom8x8.ntl"; endmodule lpm_rom_component ( .address (address), .q (sub_wire0)); Example: 8 deep by 8 bits wide 3 8 Path to location of Rom data ROM delay L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 13 ram4x2.v ram4x2.v // megafunction wizard: %LPM_RAM_DQ% module ram4x2 ( address, we, data, q); input input input output [1:0] address; we; [1:0] data; [1:0] q; address data we 2 2 RAM 2 q wire [1:0] sub_wire0; wire [1:0] q = sub_wire0[1:0]; lpm_ram_dqlpm_ram_dq_component ( .address (address), .data (data), .we (we), .q (sub_wire0)); defparam lpm_ram_dq_component.lpm_width = 2, lpm_ram_dq_component.lpm_widthad = 2, lpm_ram_dq_component.lpm_indata = "UNREGISTERED", lpm_ram_dq_component.lpm_address_control = "UNREGISTERED", lpm_ram_dq_component.lpm_outdata = "UNREGISTERED", lpm_ram_dq_component.lpm_hint = "USE_EAB=ON"; endmodule L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 14 Asynchronous RAM Simulation Simulation module ram4x2 ( address, we, data, q); input input input output endmodule [1:0] address; we; [1:0] data; [1:0] q; address data we 2 2 RAM 2 q Latch interface: Data must be setup and held around the falling edge of the clock. Address must be setup before rising edge and held after falling edge L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 15 SRAM with Registered Address and and Data (Synchronous) (Synchronous) Register interface: Address, data and we should be setup and held on the rising edge of clock If we=1 on the rising edge, a write operation takes place If we=0 on the rising edge, a read operation takes place L10: 6.111 Spring 2004 Introductory Digital Systems Laboratory 16
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
National Chiao Tung University - EE - IEE6533
University of Texas - GOV - 312L
Week 4 (Feb. 11-13): The Domestic Roots of Foreign Policy: Congress* Louis Fisher, Expansion of the President's War Power, and Michael Genovese, George Bush and Presidential Leadership: The un-hidden Hand, in Betty Glad and Chris J. Dolan, eds., St
University of Texas - GOV - 312L
FEB 13, 2009- ABSENT *WATCH VIDEO*The Power Game: Congress But first the news: Israeli Election Appears Tight, NYT Feb. 11, 2009 Iran Offers Dialogue With Respect With U.S., NYT Feb. 11, 2009 With over 90 percent of votes counted, Kadima leads L
University of Texas - GOV - 312L
FEBRUARY 17, 2009- TUESDAYWeek 5 (Feb 17. 19): The Pentagon: From the Shores of Tripoli to the Quagmire of Iraq; The Unelected media, lobbies, staff* Little, pp. 229-266 (&quot;Kicking the Vietnam Syndrome&quot;)The Power Game: in-class required video #2
University of Texas - GOV - 312L
February 19, 2009- ThursdayKicking the Vietnam Syndrome: the USA in the Middle East 1967-2006 - part II But first the news (and some new online course materials): Israel Says It Will Unseal Gaza Only if Soldier Is Freed, NYT Feb. 19, 2009Two yea
University of Texas - GOV - 312L
Week 6 (Feb. 24): The Special Relation with Israel * Little, pp. 77-116 (&quot;America and Israel&quot;) * Mearsheimer, John J. and Walt, Stephen M., &quot;The Israel Lobby and U.S. Foreign Policy&quot; London Review of Books, March 23, 2006, also a lengthier footnoted
University of Texas - GOV - 312L
Rome meets new Barbarians: Nye911:America can not fight terrorism alone Terrorism= privatization of war -terrorists were dedicated to breaking down American image of powerAmerica= only nation since Rome that has loomed so large above the others
University of Texas - GOV - 312L
Smith: The Power Game In the early 1960s, one of the most powerful influences on Congress was the pro-Israeli lobby. The years when Egypt's Gamal Abdel Nasser kept threatening Israel, and the Arab cause was unpopular on Capitiol Hill. But in late 197
University of Texas - GOV - 312L
The Changing Nature of Power: Joseph Nye. Week 2 POWER: = the capabilities to influence the behavior of others to get the outcomes one wants. THREE TYPES: 1. Military 2. Economic 3. Soft :CHART pg 31: Behaviors primary currencies gov. policies Milita
University of Texas - GOV - 312L
The Middle East: Political Gridlock and American InterventionBy: Victor T. Wong 06/09/08 HIST 290 Professor Shaun LopezThe United States' involvement in the Middle East, especially after 9/11, has thoroughly consumed our nation's news and media.
University of Texas - GOV - 312L
-USS Liberty The USS Liberty incident was an attack on a neutral United States Navy technical research ship, USS Liberty, by Israeli jet fighter planes and motor torpedo boats on June 8, 1967, during the SixDay War. The combined air and sea attack
University of Texas - GOV - 312L
VIDEO NOTESVideo 2: -What is being brought with political contributions is access PAC on Jacobs -He now avoids getting money from PACs (political action committees) -Most powerful committee in house is Weighs and Means, they cover tax laws, trade,
University of Texas - GOV - 312L
9091929394959697
University of Texas - GOV - 312L
March 31, 2009: Rebooting the Peace Process? The News: U.S. Officials Say Israel Struck in Sudan, NYT March 27, 2009 With Isolation Over, Syria Is Happy to Talk, NYT March 27, 2009 Israel Disputes Soldiers Accounts of Gaza Abuses, NYT March 28, 20
University of Texas - GOV - 312L
March 26, 2009: &quot;What do we do in Iraq, cont'd&quot;The News: Netanyahu Promises Peace Effort, NYT March 26, 2009 Clash in tense Israeli-Arab town, BBC March 24, 2009 Jonathan Cook, Turkey's fallout with Israel deals blow to settlers , Electronic Inti
University of Texas - GOV - 312L
March 31, 2009: Rebooting the Peace Process? The News: U.S. Officials Say Israel Struck in Sudan, NYT March 27, 2009 With Isolation Over, Syria Is Happy to Talk, NYT March 27, 2009 Israel Disputes Soldiers' Accounts of Gaza Abuses, NYT March 2
University of Texas - GOV - 312L
Bhavna Sakhrani Understanding the Middle East Student no: 4040469Does Militant Islam resent the West because of what we are or because of what we do?Amongst the developing world that is largely excluded from the Western-led phenomenon of globaliza
University of Texas - GOV - 312L
Movie 19:05 Bush Admin made up it's mind to go to war on Sept 11, 2001 From then on they were dealing with ways to justify why we went to war 19:0519:05
University of Texas - GOV - 312L
04:05 Throughout the past months and years, I have pretty much formulated my own opinion and thoughts about the withdraw from Iraq. To some extent my opinions and ideas have changed, due to the continuously changing circumstances. However, I want
University of Texas - GOV - 312L
(absent get notes) Lecture 3 (cont'd): Thinking about the National InterestThe news: U.S. Envoy Urges Gaza CeaseFire NYT Jan 28, 2009 At a Border Crossing, Drivers and Truckloads of Aid for Gaza Go Nowhere , NYT Jan 28, 2009 Clinto
University of Texas - GOV - 312L
Week 2 (Jan 27-29): American Exceptionalism? Thinking About Foreign Policy. * Samuel P. Huntington, &quot;The Clash of Civilizations?&quot; Foreign Affairs 72:3 (Summer 1993), 22-49, and various responses in reprint pack: read everything * Joseph Nye, Jr., &quot; T
University of Texas - GOV - 312L
Week 3 (Feb. 3, 5): US Presidents and Foreign Policy &quot;Doctrines&quot; from Monroe to Bush 43* Brzezinski et al, America and the World, pp. 1-35 * Little, pp. 117-155 (&quot;A Tale of 4 Doctrines&quot;) * Congressional Quarterly, Middle East 10th ed (CQ Press, 200
University of Texas - GOV - 312L
Lecture 5 Eisenhower: the Suez War of 1956 and the Eisenhower Doctrine In Shattered Gaza Town, Roots of Seething Split, NYT Feb. 4, 2009 Gaza War Created Rift Between Israel and Turkey, NYT Feb. 5, 2009 Israel Seizes Ship Bound for Gaza, NYT Feb.
University of Texas - GOV - 312L
Presidency Video (Power Game 4) Follow-Up The News: Two years ago: Lincoln D. Chafee (ex RI Senator), The Senate_s Forgotten Iraq Choice NYT op ed, March 1, 2007 In U.S. Overtures to Foes, New Respect for Pragmatism NYT March 1, 2007 Afghan Bombin
University of Texas - GOV - 312L
Week 8 Readings! (March 10-12): Why the War? Truth and Consequences* Mark Danner, &quot;Iraq: The War of the Imagination,&quot; New York Review of Books, Dec. 21, 2006 * Patrick J. Buchanan, &quot;Whose War?&quot; The American Conservative, March 24, 2003. * Clement M
University of Texas - GOV - 312L
MARCH 12, 2009, ThursdayThe News: An Israeli Playground, Fortified Against Rockets, NYT March 12, 2009 Israel Stance Was Undoing of Nominee for Intelligence Post, NYT March 12, 2009 As U.S. Weighs Taliban Negotiations, Afghans Are Already Talkin
University of Texas - GOV - 312L
Jennifer Chinn Batchelor M,W 5:00 Writing 2 2/20/08 How Will It End? Considerable amounts of Israeli and Palestinian citizens have tragically suffered and died due to the ongoing religious and territorial battles over Israel, the West Bank, and Gaza
University of Texas - GOV - 312L
University of Texas - GOV - 312L
KEY TERMSMIDTERM #1The Straits of Tiran Narrow sea passage 8 miles wide between the Sinai and Arabian peninsulas Separates the Gulf of Aqaba from the red sea Maintained free for navigation under the Israel-Egypt Peace Treaty Access to Jordan'
University of Texas - GOV - 312L
KEY TERMS- (COMPLETE)MIDTERM #2American Israel Public Affairs Committee (AIPAC) Second largest lobby in the US (#1 is the AARP) Its' role since the 1970s in Congress: funding and information And is backed by think tanks such as WINEP (Washingto
University of Texas - GOV - 312L
KEY TERMS GOV 312LMIDTERM #1The Straits of Tiran Narrow sea passage 8 miles wide between the Sinai and Arabian peninsulas Separates the Gulf of Aqaba from the red sea Maintained free for navigation under the Israel-Egypt Peace Treaty Access t
University of Texas - GOV - 312L
KEY TERMS AND ARTICLE ASSIGNMENTS GOV 312 FINAL*If you can, PLEASE type your terms in ARIAL 12PT FONT, and underline and bold the terms. This will help me a lot when I go to compile everything since there are soooo many terms. * *For Articles, pleas