Questions tagged [binary]
Related to binary arithmetic and number system - Base-2 system which represents numeric values using two symbols 0(zero) and 1(one). Use `boolean` tag for logical operations related questions that does not involve binary arithmetic.
271
questions
1
vote
1
answer
62
views
Problem with two's complement fixed point arithmetic in hardware
I am trying to implement a basic spiking neural network on FPGA, and have came across a problem. The design uses fixed point binary addition and subtraction to sum input values. As weights can be ...
-1
votes
1
answer
43
views
I need to capture and store short bursts of synchronous binary bit-stream, arriving at 1.5meg bits/sec [closed]
The binary bit stream arrives on one pin on a circuit board and a synchronous clock arrives on another pin. I don't need to store the clock - it's just there in case I need to use it during the ...
0
votes
1
answer
167
views
Convert Altium PcbDoc file between binary and ASCII without Altium
As Altium PCB file format support, we can save PcbDoc as binary or ASCII.
https://www.altium.com/documentation/altium-designer/pcb-dlg-confirmfileformatformfile-format-pcb-ad?version=20.2
Is there any ...
0
votes
2
answers
113
views
Combinational Circuit: How can 2.5 and 3.5 be represented in a 3-bit truth table?
Design of a combinational circuit with 3 inputs, x, y, z, and 3 outputs, A, B, C. When binary input is 0, 1, 2, or 3, the binary output is twice the input. When binary input is 4, 5, 6, or 7, binary ...
0
votes
2
answers
94
views
Reduce component count for BCD input error detection
I made this circuit that reads the input of the DIP switches and detects if the input is an error or not a BCD value. The problem is I have 4 inputs for my circuit.
The LED indicate if the input is ...
0
votes
1
answer
72
views
Adding four numbers of 1 bit each and then cascading them
When I add four bits (NOT FOUR BIT ADDER, only four bits), the result can go to a maximum of 100 (4 in decimal, if all are ones). Now, here 0 (LSB) is the sum and 10 is carry. If I want to transfer ...
1
vote
2
answers
132
views
Comparison of two numbers of different length
I want to design a circuit at block level using IC 7485 to compare one 6 bit number with another 5 bit number.
My approach is:
Put the most significant bits into the four 7485 comparator inputs. The ...
1
vote
1
answer
247
views
How to create a BCD to binary encoder that supports multi digit numbers using only logic gates [duplicate]
I've been thinking so long about how can I make a BCD to binary encoder that can encode BCD numbers like for example 11 or even 32767 into binary form (11 ---> 1011) but using only logic gates.
I ...
1
vote
0
answers
79
views
Struggling with the design for a simple logic circuit [closed]
I'm working on a circuit that would store 4 bits and flash them on an LED. These would be stored on a 4 bit register, and should be outputted when a button is pressed. My goals is to take my 4 outputs ...
0
votes
1
answer
201
views
I distinctly remember 0 being the sign for on, or a closed circuit. Does anyone else recall learning it backwards? [closed]
Is it just my false memory or does anyone else remember learning that. The 1 if line represented open circuit for off. I was floored to find out it’s the opposite now. So just like the bearstained ...
1
vote
2
answers
169
views
Determining the best CRC polynomial generator regardless the input data [closed]
I'm given a couple of 16-bit CRC generator polynomial:
\begin{align}
g(p) &= p^{16} + p^{12} + p^5 + 1 \\
g'(p) &= p^{16} + p^{10} + p^8 + p^7 + p^3 + 1
\end{align}
And, without knowing the ...
1
vote
4
answers
667
views
Confused about bits and bytes: How can 10 bits represent 1024 bytes?
If we have 10 bits, then we can access 2^10 = 1024 different addresses with it, but we say that with 10 bits, we can show 1 kilobytes which is 1024 bytes. I can't understand this. Isn't 1 byte equal ...
0
votes
2
answers
331
views
How many bits are required for a quotient in binary division?
I saw somewhere that if we have A (dividend) which is 2n-bits and B (divisor) which is n-bit, we can store the quotient in n-bits with a specific condition: the (n-1)th bit of the divisor has to be 1.
...
0
votes
0
answers
107
views
Building a circuit which adds 2 signed numbers
I am developing circuitry to add 2 numbers with sign.They have the form:
$$b_{1}:(sign)|(absoluteval)$$
I realised that the calculation of the sign of the addition of such 2 binary numbers must be ...
1
vote
2
answers
91
views
How to construct an integer based on the binary input of 8 to 32 GPIO pins
I'm researching a sensor for a project that has multiple methods of returning a value, one of them being a parallel output system that breaks down the value into 16 bit binary and transmits each bit ...