Ask a Question related to UNIX Programming, Design and Development.
-
garcia #1
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
-
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... -
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... -
#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... -
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... -
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... -
Larry Blanchard #2
Re: finite state machines
In article <96f5103.0307121731.2ce330b6@posting.google.com> ,
[email]tracygatica@alltel.net[/email] says...Sounds obscene to me :-).> stimulate a binary adder
>
--
Where ARE those Iraqi WMDs?
Larry Blanchard Guest
-
Siddharth Choudhuri #3
Re: finite state machines
> stimulate a binary adder for a computer that uses 16 bit registers Do
A 16bit binary adder would have:> anyone know how to do this? ANy help would be appreciated.
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
-
Lew Pitcher #4
Re: finite state machines
Without hesitation, garcia asserted (on or about 07/12/03 21:31) that:
Assuming that your Subject ("Finite State Machines") has something to do> 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.
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



Reply With Quote

