finite state machines

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default finite state machines

    Hi

    Can anyone help me? I am taking a computer science course. I have to
    stimulate a binary adder for a computer that uses 16 bit registers Do
    anyone know how to do this? ANy help would be appreciated.
    garcia Guest

  2. Similar Questions and Discussions

    1. IIS & SQL on a different machines
      I have a big problem. I have IIS 6.0 on first server and MS SQL 2000 on second. I'm trying do create virtual directory for page with XML query. I...
    2. Using Finite state machine for Protocol design
      > Hi, To ADD to my previous mail: I have also found out in many codes, that they use function pointers for different types of messages. Thus many...
    3. #Error only on some machines
      We have an Access invoice application that we wrote for a customer. It has been running ok in one location. We installed it at another location...
    4. Setting a default state for Multi-State buttons
      I'm using the multi-state button behavior and would like to have one button set ON as the default when the app first runs. Is it possible to set the...
    5. xp machine cant see other machines and cant be seen
      i have 4 computers of 2000/me OSs and a new xp machine out of the box. ive tried everything i know and the xp machine still wont see others or be...
  3. #2

    Default Re: finite state machines

    In article <96f5103.0307121731.2ce330b6@posting.google.com> ,
    [email]tracygatica@alltel.net[/email] says...
    > stimulate a binary adder
    >
    Sounds obscene to me :-).

    --
    Where ARE those Iraqi WMDs?
    Larry Blanchard Guest

  4. #3

    Default Re: finite state machines

    > stimulate a binary adder for a computer that uses 16 bit registers Do
    > anyone know how to do this? ANy help would be appreciated.
    A 16bit binary adder would have:

    Inputs: A, B, CarryIn
    Outputs: Sum, CarryOut
    A, B, Sum -> 16 bits
    CarryIn, CarryOut -> 1bit

    You could use bitwise operations to simulate (not stimulate), taking care
    of signed/unsigned and issues with carry. btw, this may not be the right
    newsgroup to post this question.

    -siddharth

    Siddharth Choudhuri Guest

  5. #4

    Default Re: finite state machines

    Without hesitation, garcia asserted (on or about 07/12/03 21:31) that:
    > Hi
    >
    > Can anyone help me? I am taking a computer science course. I have to
    > stimulate a binary adder for a computer that uses 16 bit registers Do
    > anyone know how to do this? ANy help would be appreciated.
    Assuming that your Subject ("Finite State Machines") has something to do
    with the solution, perhaps you should examine the mechanics of binary
    addition with the intent on enumerating the possible states.

    You will need to know
    - how many states are in such a beast,
    - what are the inputs to each state,
    - what processing is performed in each state,
    - what output comes out of the processing, and
    - what causes a transition from one state to the next

    Codify the state transitions, using procedural code (or whatever) for the
    processing for each state. Encapsulate this in a program, and that's it.

    FWIW, after examining the mechanics of binary addition (i.e. from a boolean
    logic pov), it took about 5 minutes to code an 8-bit adder in C. Expanding
    this to a 16-bit adder would take about 30 seconds (or less - the length is
    codified in one constant and two storage areas).

    Hint: There is a boolean equasion that governs the value of a result bit,
    given the values of the two input bits. There is a seperate boolean equasion
    to determine the value of the carry-out bit. Taking the carry-out bit into
    consideration in the addition (as a carry-in bit) changes things slightly;
    there are two different boolean equasions for result and carry-out,
    depending on whether the carry-in was 1 or 0.

    --
    Lew Pitcher

    Master Codewright and JOAT-in-training
    Registered Linux User #112576 ([url]http://counter.li.org/[/url])
    Slackware - Because I know what I'm doing.

    Lew Pitcher Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139