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.
Search found 13 matches
- Mon Oct 03, 2011 3:20 pm
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
- Wed Sep 28, 2011 5:30 am
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
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 ...
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 ...
- Tue Sep 27, 2011 4:19 am
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
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.
- 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: 34530
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
}
}
e.g:
int main() {
//Program here.
}
or around the if's
e.g.
if(a==b){
//Do this
if(c==d){
//Nestled If
}
}
- Mon Sep 19, 2011 5:47 am
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
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 ...
- Sun Sep 18, 2011 5:10 pm
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
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 ...
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 ...
- Sun Sep 18, 2011 10:00 am
- Forum: Discuss LogicCircuit program
- Topic: Testing logic level of wires when running
- Replies: 2
- Views: 11964
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 ...
- Sun Sep 18, 2011 9:54 am
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
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 ...
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 ...
- Sat Sep 17, 2011 3:12 pm
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
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.
- Sat Sep 17, 2011 1:16 pm
- Forum: Circuit Talk
- Topic: 8 X 8 Binary Multiplier
- Replies: 13
- Views: 40125
Re: 8 X 8 Binary Multiplier
Inputs and outputs are now displayed in binary and decimal (decimal shows the operation aswell! )