Search found 13 matches

by TCWORLD
Mon Oct 03, 2011 3:20 pm
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

Square root is now fixed. I am using a different, much simpler version of the non-restoring square root algorithm. It is a much more refined version which requires far fewer logic gates.
SQRT now also works for 16 bit numbers.
Logic Gate Calculator.zip
Logic Gate Calculator, with SQRT function.
(391.51 KiB) Downloaded 1272 times
by TCWORLD
Wed Sep 28, 2011 5:30 am
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

Square root implimented. To get square root, only the input labeled Root should be a 1. If Rem. is also a 1, then it will display the remainder, i.e. (Input - Root^2). The circuit should be able to square root a 16 bit number, but for some reason, if the number is greater than 2^14, it doesn't work ...
by TCWORLD
Tue Sep 27, 2011 4:19 am
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

Not unless you know of a way of doing that in Logic alone. I might have a look into it at some point though.
by TCWORLD
Fri Sep 23, 2011 12:37 pm
Forum: Lounge
Topic: What can i do to further my studies because idon't have mone
Replies: 1
Views: 17529

Re: What can i do to further my studies because idon't have

No { } around the program.

e.g:

int main() {
//Program here.
}

or around the if's

e.g.

if(a==b){
//Do this
if(c==d){
//Nestled If
}
}
by TCWORLD
Mon Sep 19, 2011 5:47 am
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

Found a bug in the circuit when returning from divide by 0, whereby it would show error as it is suppose to, but the ALU still tried to divide anyway, meaning that the first non divide by zero after it would be incorrect. Basically I had forgot to tell the ALU to not try and solve anything divided b...
by TCWORLD
Sun Sep 18, 2011 5:10 pm
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

Long Division is now implimented. Logic Gate Calculator.zip At the input there are now three buttons for selecting operation - The leftmost is: 1 = Add (Takes priority over other buttons), 0 = Multiply/Divide. For the middle one (Assuming the leftmost is 0): 0 = Multiply, 1 = Divide. For the Rightmo...
by TCWORLD
Sun Sep 18, 2011 10:00 am
Forum: Discuss LogicCircuit program
Topic: Testing logic level of wires when running
Replies: 2
Views: 8001

Testing logic level of wires when running

It would be a very helpful feature of the program if it were possible to see what state wires are when running, without having to add probes all over the place. Someone suggested before that the wires could be coloured to indicate the state of it, but that would not be possible with multibit wires. ...
by TCWORLD
Sun Sep 18, 2011 9:54 am
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

R.E. the multibit wires, I have used in some places to save time, but most often I find it less confusing if i can see all of the wires. :) I have worked out how long division should be doable in logic and have pretty much implimented it, there are just a couple of issues resulting in the wrong answ...
by TCWORLD
Sat Sep 17, 2011 3:12 pm
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

I have begun trying to make it do Divide. At the moment all the division bit can do is give you an error if you try to divide by 0.
by TCWORLD
Sat Sep 17, 2011 1:16 pm
Forum: Circuit Talk
Topic: 8 X 8 Binary Multiplier
Replies: 13
Views: 32818

Re: 8 X 8 Binary Multiplier

Inputs and outputs are now displayed in binary and decimal (decimal shows the operation aswell! :D)