Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2003-2008 BYU LC3-3 Page 1 ECEn 224 The LC-3 State Machine.

Similar presentations


Presentation on theme: "© 2003-2008 BYU LC3-3 Page 1 ECEn 224 The LC-3 State Machine."— Presentation transcript:

1 © 2003-2008 BYU LC3-3 Page 1 ECEn 224 The LC-3 State Machine

2 © 2003-2008 BYU LC3-3 Page 2 ECEn 224 Output Forming Logic Current State Input Forming Logic FF LC-3 Datapath FF.....

3 © 2003-2008 BYU LC3-3 Page 3 ECEn 224 OFLIFL LC-3 Datapath Next State Current State Datapath Control Datapath Status FF.....

4 © 2003-2008 BYU LC3-3 Page 4 ECEn 224 Instruction Fetch Example 1. Copy PC contents to MAR enaPC = 1 & ldMAR= 1 2. Perform memory read selMDR=1 & ldMDR=1 Increment PC selPC = 00 & ldPC = 1 3. Copy memory output register contents to IR enaMDR = 1 & ldIR = 1 IR PC ALU enaPC ldMAR ldPC selPC selMDR ldMDR enaMDR ldIR AB

5 © 2003-2008 BYU LC3-3 Page 5 ECEn 224 CSNS fetch0fetch111xx0x000 fetch1fetch2000011100 fetch2decode00xx0x011 decode???? ????? enaPC ldMAR selPC ldPC enaMDR ldIR Current State Next State Outputs Fetch Control Sequence selMDR ldMDR

6 © 2003-2008 BYU LC3-3 Page 6 ECEn 224 The Control Logic Examples: IR[8:6] IR[2:0] IR[11:9] BranchTaken

7 © 2003-2008 BYU LC3-3 Page 7 ECEn 224 The Control Logic IRNZP DR SR2selMARselPCaluControlSR1 ldMDRldMARregWEldPCldIR memWE enaMARMenaALUenaMDRenaPC selEAB1selEAB2selMDRflagWE IFL Flip Flops OFL


Download ppt "© 2003-2008 BYU LC3-3 Page 1 ECEn 224 The LC-3 State Machine."

Similar presentations


Ads by Google