# 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.

192 questions
Filter by
Sorted by
Tagged with
25 views

### How to display Keyboard's binary to Digital waveform

How can I display to a monitor a digital waveform of any key when pressed in a keyboard? I was thinking to use an arduino or a raspberry. For example, when I press the small letter 'a' on a keyboard (...
33 views

### offset binary from ADC to Decimal

Im trying to read data from ADC with ADC Inteface Im designing with FPGA. The data that coming out from the ADC is offset binary with 12 bits.. looks like that: I want to simulate this results using ...
70 views

### Binary Manipulation in arduino with 74HC595

I'm doing practice of bit manipulation in arduino with a 74HC595 shift register. I would like to create an algorithm that allows the binary digit to perform this way: 1 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 ...
81 views

### 2's complement subtraction with overflow

I studied binary subtraction using 2's complement method and understood the rules, which say that after the subtraction process (actually addition) discard any carry in case it occurs and take the ...
42 views

### 3 Bit Adder Logic Circuit Design

Im trying to design a logic circuit for a 3 bit adder using 6 inputs, A2, A1, A0, B2, B1, B0 and 4 outputs, s0, s1, s2 and c (the carry out). I already have circuits for a half adder, full adder and a ...
37 views

### Does RAM always use a big Mux to ‘read’ from its addresses?

I’ve designed a 64 bit (16 words * 4-Bits at each location) RAM in logic simulation software, using simple registers. I had to create a 16-to-1, 4-bit wide Mux (no mean feat) in order to ‘select’ one ...
74 views

### How do I get to a counter stops at five using logic gates?

I need a circuit to recieve the signal called "50" or "20s" and it trigger a single pulse with five seconds called "TRIP". I set up the circuit below, however, by keeping input J HIGH of the FF7473, ...
42 views

### How is the amplitude of an output signal of a binary input determined using a constellation pattern?

I understand using the pattern to find the output line single phase but how is the amplitude determined?
24 views

### How to convert bdd to cnf using cudd package?

I am using cudd package to create ROBDD from given circuit. Now I am interested in converting that ROBDD in CNF form. Can we do that, anyone, who has done that?
202 views

### Does using “16's complement” for hex always yield the same result as two's comp for binary?

I'm sure it's obvious as day, but i'm having a hard time convincing myself with all these carries and conversions... Given that i'm operating on the same number (say, ...
118 views

### What is the very basic electronic component to generate pulse wave (high or low) we commonly see in digital?

Very common we hear ON/OFF, HIGH/LOW, 1/0, or something similar in digital system. It is called binary. I would like to know what is the very basic component to generate such that binary system? I ...
40 views

### Unary-type input to binary output in Verilog?

I've built an FPGA-based circuit which outputs to $n$ ordered bits strings which take on the form of either $k<n$ $1$'s followed by $n-k$ $0$'s, or $k$ $0$'s followed by $n-k$ $1$'...
2k views

### What is smallest addressable value in an octal number called?

In a binary number, the smallest addressable value is called as a bit. In a decimal number, the smallest addressable value is called as a digit. In an octal number, what is the smallest addressable ...
3k views

### What is the process of going from machine code to electrically controlling individual transistors? [closed]

For someone who writes software but doesn't have a computer engineering background, the dozens of abstraction layers have always bewildered me. I know all source code in their most fundamental level ...
120 views

### VHDL: difference between using “+” or writing our own adder

I would like to know what would be the difference between between using "+" or writing an adder for adding two numbers: ...
55 views

### If a 4-bit binary digit in 2's Complement form is stored in 8 bits how is it represented?

I am quite new to Digital Logic. I got this doubt while solving a problem. If a 4 bit binary digit in 2's complement e.g. X3 X2 X1 X0 is stored in an 8 bit space what will be the representation in ...
149 views

### How transistor processes binary? [closed]

I know that processors perform the tasks in binary. If I give an instruction to the computer, for instance, I have pressed letter "A", which is denoted as 01000001 in binary. How does a transistor ...
65 views

### Intuitive bitshift in hex

In binary, bitshifting is pretty straight forward for example, a binary number of: 10000001 with a left bit shift of 1 becomes : 00000010 However in Hex, a hex number of: 1051 with a left ...
130 views

### Understanding an unknown digital encoding

I'm trying to understand a certain undocumented digital protocol. It looks similar to Miller or coded mark inversion (CMI) encoding. So far I managed to decode the encoded data and get the expected ...
60 views

### How does carry in work in full adders?

Yesterday I asked a similar question and realized I still don't quite get it, so I'm sorry about that. Here is explicitly what I mean: This is a part of a full adder. The first row in which ...
75 views

### How to better understand binary data streams as electric signals?

I'm aware that at any step of any computer process the input of a user/program (that gets translated from code to machine language and then to cpu instructions), is represented using both electrically ...
122 views

### when and how is the machine language (binary stream) mapped to an existing instruction?

I'm trying to better understand the entire process of coding, which involves translating the higher level languages (c++/java/python and so on) into binary data that tells the CPU to execute ...
181 views

### binary addition / truth table?

I'm trying to understand how binary addition works. If I understand it correctly, with two variables e.g. x and y you add a ...
380 views

### BCD to Gray code converter

The task is to design a bcd to gray code converter. The 5-bit bcd input is represented as A,B,C,D,E while the 4-bit gray code output as D3, D2, D1 & D0. Could someone help me confirm my truth ...
2k views

### Memory capability and powers of 2

Why are computer memory capabilities often multiples of a power of two, such as 2^10 = 1024 bytes? I think it is something related to the binary logic, but I do not understand the precise reason for ...
219 views

### What is the circuit's logic diagram of a (2-bit binary to decimal) encoder

To give a sense of what I am looking for ... this is a the circuit's logic diagram of a 4-bit binary to decimal encoder. Here is its truthtable Now, What is the circuit's logic diagram of a 2-bit ...
203 views

### Circuit: Balanced Gray code => Binary?

I've designed a circuit that accepts a standard gray code as an input and converts to binary. However, I am needing to perform the same conversion (to binary), but with a balanced gray code as the ...
290 views

### K-maps for forming 8bit binary to 8bit BCD digital circuit

I have been trying to convert 8bit binary to 8bit BCD. The circuit I have been working on is below: I built a 4bit binary to 5bit BCD converter using a similar truth table like the one here: Do I ...
18 views

### avoid synthesizing priority encoder for onehot to binary conversion module

For https://github.com/jbush001/NyuziProcessor/blob/master/hardware/core/oh_to_idx.sv#L40 , why use OR operation to avoid synthesizing priority encoder ? if DIRECTION != "LSB0" and NUM_SIGNALS isn'...
54 views

### How to know when the resault of subtraction is incorrect in a 4 bit binary subtraction circuit? [closed]

This is an image of a binary subtractor for unsigned numbers. Some times the output of binary subtraction is not correct and needs to be complemented to give the correct answer, how can I find out ...
63 views

### Decimal addition using a different BCD WEIGHTED CODING

The problem that I'm having trouble in understanding is how the addition of two decimal numbers such as 17 + 4 can be represented using the weighted BCD CODE, [7 4 -2 -1] and binary addition ...
56 views

### Successive approximation conversion

Can someone explain me from the following table on how to get the DAC output.
121 views

### Binary subtraction machine

In the book CODE, there is a chapter on binary subtraction circuit. First, it tells us how to subtract two binary numbers. The steps are (the example is for 8 bit numbers) Subtract the subtrahend ...
178 views

### VHDL initialize vector using readable integers not long binary string

So I am only starting out my VHDL journey. One thing I am finding a bit of a nuisance is the following format: signal sig_A : unsigned (3 downto 0) := "0101"; ...
246 views

### How to return ADC_Read() as characters in PIC ? Using mikroC PRO?

We have a function: ...
51 views

### Number systems and binary [closed]

I am new to number systems and binary. Can someone tell me why is X>=11 and Y>=6 in this problem? Can someone also explain how the values X=12 and Y=16 are obtained from the conditions shown in the ...
238 views

### Building a BCD to 7-segment using 3x8 decoder

So.. I know how to build a BCD to 7-segment using 3x8 decoder but the question provides 4-digit binaries and asks to only input 3 of those.. my question is that won't two different digits be regarded ...
607 views

### Multiplying signed to unsigned binary numbers in verilog

How can I multiply a signed number to unsigned number in verilog for example: a = 6'b111111 ; //which is means -1 as it is signed b = 6'b111111 ; //which is means 63 as it is unsigned I want the ...
80 views

### How do I convert 1/3 to signed float 8 bit?

The formula is as follows: (-1)^[signed bit] * (1.[significant bit]) * (2^[excess bit -3]) or (-1)^[s] * (1.[f]) * (2^[x-3]) It is a question posed by my signals and systems instructor, hence the ...
372 views

### How to design a multiplier using only multiplexer?

I am asked to make a multipier that takes a three bits input $$x=(x_1, x_2,x_3)$$ and a control signal $s$ so that the results will be a hexadecimal 4 bit number $$z=(z_3,z_2,z_1,z_0)$$ such that \\$...
972 views

### A circuit to convert 4-bit Gray numbers to BCD

I'm sorry for asking this specific question here but can some one please tell me what's wrong with this solution. Question: design a circuit to convert 4bit Gray numbers to BCD I have to say I ...
239 views

### Why does a full adder need an OR gate?

I have read and I understand how the full adder works (or atleast I think I do :D). It combines two half adders and either one of them can have a carry over, hence the OR gate. But why do we need ...
525 views

### When adding binary numbers, how do you just ignore the overflow?

So lets say I used 2's complement to put -17 in binary and then I added it to +27, e.g.: ...
40 views

### Do binary numbers move in sequence ones and zeros or parallel at once to ALU for addition?

Do binary numbers move in sequence ones and zeros or parallel at once to ALU for addition, I mean ones and zeros in sequence vertically to ALU or parallel horizontally AT ONCE?
354 views

### How do I make a double dabble circuit with logic gates

Im attempting to make a 8 bit binary calculator that displays on multiple seven segment displays. Can double dabble be done with logic gates. If so, how?
56 views

### Addition and subtraction of binary digits

I have to solve the following exercise : Extend the circuit of the first part (the first part was an adder of integer numbers of 2 binary digits) in order to execute addition and subtraction of ...
499 views

### How can I convert binary into multiple 7 segment displays [closed]

I've been trying to make a decimal calculator using binary adders that feed into 3 x 7 segment displays. I cant find an efficient way to do this. If someone could point me to the correct resources, or ...
238 views

### How to get the MSB into a logic gate which will check if a number is negative or not?

I need to create a logic gate which will find out whether a number is negative or not. The input is 8 bits and the output is 1 bit, and if the input is 1 (i.e. negative number) then the output ...