Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Ideas and Projects
#1

Analogue Logic Toolset

Archive: 2 posts


OK I am nearly there with my analogue logic toolset, here's what I have so far:

Equals
- Compares two analogue values, outputs 100% if they are the same, 0% otherwise
- Works with signed values
- Most likely won't work with super-normal signals
- Zero latency, outputs the value in the same frame it was input, gives it greater applications when dealing with continuously changing values

Equals with Tolerance
- Works as equals but has 3 inputs - x, y and t
- 3rd input controls tolerance for x and y to be considered "equal"
- Symbolically, outputs 100% if |x-y|<=|t| and 0% otherwise
- Works with signed values, though t is taken as modulus
- Zero latency

Less Than (Less Than or Equals To)
- Compares 2 values x and y, outputs 100% if x<y (x<=y respectively) and 0% otherwise
- Works with signed values
- Less Than is just a Less Than or Equals To with the inputs swapped and the output inverted, but I've made both chips for convenience
- Zero latency

Addition (Subtraction)
- Adds (subtracts) two values x and y
- Works with signed values
- Results that overflow are truncated at -100%/100%
- Thanks go out to rtm223, this is basically his implementation optimized
- Zero latency

Multiplication
- Approximates multiplication of two values x and y, treating 100% as 1.0
- Works with signed values
- Still needs a little bit of work to improve accuracy (currently multiplication by 100% does not yield the same value)
- Accuracy is nonetheless around 1-2%
- Surprisingly low thermo (less than half a notch)
- And yes, zero latency - the multiplication is calculated within the same frame that the input is.

Now any suggestions for what I should add to this list? Or is there enough there? I can tell you these little gadgets could be really helpful (well OK multiplication not so much but I just wanted to prove I could do it ).
2011-03-30 20:33:00

Author:
thor
Posts: 388


Hmm... make it as simple to understand as you can manage. That's all I can say!2011-03-30 20:52:00

Author:
damaz10
Posts: 771


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.