CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2005
    Posts
    9

    Question Computer Logic and Electronics

    Hi. I have a few questions i dont know how they really works and it would be appreciated if some one answeres.

    1. Describe the function and interation of a control unit, arithmetic unit and memroy registers in a simple central processing unit?
    2. illustrate how buses move data and instructions between memory and CPU?
    3. Describe the role of flip-flops in the flow of data. Explain how flip-flops can be built using the siple logic circuits? How are flip-flops used as information storage.

    Thank You

  2. #2
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    Re: Computer Logic and Electronics

    Why don't you try your text book?

  3. #3
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815

    Re: Computer Logic and Electronics

    See this FAQ...

  4. #4
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Computer Logic and Electronics

    Quote Originally Posted by gstercken
    See this FAQ...
    Now why didn't i know about this FAQ.. Would have loved to have used it quite a few times...

    Now bookmarked for future reference.....
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  5. #5
    Join Date
    Aug 2001
    Location
    Sydney, Australia
    Posts
    813

    Re: Computer Logic and Electronics

    Quote Originally Posted by gstercken
    See this FAQ...
    I'd rep you but we're in chit-chat
    Microsoft LVP - Least Valuable Professional

    Please rate this post... Pleeeeeeaaassee!!!

  6. #6
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Computer Logic and Electronics


    Couldn't believe we have an FAQ on that
    I'll bookmark it too

  7. #7
    Join Date
    Sep 2004
    Location
    Tehran(Ir)
    Posts
    469

    Smile Re: Computer Logic and Electronics

    1. Describe the function and interation of a control unit, arithmetic unit and memroy registers in a simple central processing unit?
    the main registers are :
    • Data Register(DR) : at fetch-time it has op-code and in execution time it has the addressof operand
    • Address Register(AR) : at fetch-time it keeps the address of op-code and in execution time it has the address of operand
    • Instruction register(IR) : it has just the op-code
    • Program Counter (PC) : the address of next instruction
    • Accumulator(AC) : a place for saving the results or other necessary computations
    the order of execution of an instuction (ADD instruction)
    1. CPU activaeted? yes :goto 2
    2. AR <-- PC
    3. DR <-- M(AR)
    4. IR <-- (op-code)DR , PC <-- PC+1 , DECODE instruction
    5. switch ADD Goto 6 , switch LOAD Goto ... , switch ... Goto ...
    6. AR <-- DR(Address)
    7. DR <-- M(AR)
    8. AC <-- AC+DR
    1 -- 4 : fetch Cycle which is common for different instructions
    5 -- 8 : execution Cycle

    every proccessors have a number of function which Control Unit should execute them in the above order
    for example
    Code:
    C3 ------- IR <-- (op-code)DR 
    C6 ------ PC <-- PC+1
    in fourth clock cycle,control unit would open the gates related to C3 and C6
    2. illustrate how buses move data and instructions between memory and CPU?
    there are buffers there,Memory Buffer Register(MBR) & Memory Address Register(MAR),you give decoders MAR as input addresses and get the content of memory in MBRs
    3. Describe the role of flip-flops in the flow of data. Explain how flip-flops can be built using the siple logic circuits? How are flip-flops used as information storage.
    Latch are made form two NAND or NOR gates

    by adding clock to latch you have flipflop,which are several kinds(SR,TR,JK,D-FF,...)
    for avoiding Race problem you can use two FFs for synchronizing them with clock cycles (master-slave FFs)
    Last edited by mehdi62b; January 3rd, 2006 at 09:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured