Excess-3 code is a BCD code. It is a self-complementing code, but not a weighted code. In earlier articles, we have seen decimal to binary conversion, decimal to 8421 BCD conversion and vice versa. In this article, we will learn…
Category: DHD
Digital Hardware Design
Difference between $display, $monitor, $write and $strobe in Verilog
Although all $display, $monitor, $write and $strobe in System Verilog seem to be similar, there is a slight difference. $display is the normal display, which executes its parameters wherever it is present in the code. $write is similar to $display…
BCD Addition
BCD numbers are numerical numbers. So, arithmetic operations can be performed on BCD numbers. Imagine a seven-segment timer display system showing 2 digits for the count of seconds. After every second, the timer should be incremented by 1. This means…
How to Convert Binary to BCD and BCD to Binary
Earlier, we learned that BCD code and the binary equivalent of a decimal number are different. In this article, we will learn that how to convert binary to BCD and vice versa. To convert binary to BCD, we will first…
How to Convert Decimal to BCD and BCD to Decimal
In one of the previous articles, we learned about Binary Coded Decimal (BCD) numbers. In this article, we will learn about how to convert a Decimal number to a BCD number and vice versa. Decimal number to BCD number Conversion…
What are the Different Types of BCD Codes
There are different types of BCD codes; however, the 8421 code is the most popular one. In this article, we will highlight three different types of BCD codes, such as 8421, 2421, and Excess-3. Both 8421 and 2421 are weighted…
Binary Coded Decimal
You must have seen the digital clock in the railway station or at many other places. The hour, minute and second digits are seven-segment displays that deal with binary coded decimal (BCD) numbers. In this particular article, we will learn…
How to Convert a Decimal Number to a Binary Single-precision Floating Point Number
In order to convert a decimal number to a binary single-precision floating point number, first of all, we need to convert the decimal number to its binary equivalent (unsigned magnitude form). A proper sign should be added based on the…
How to Determine the Binary Value from a Single-precision Floating Point Representation
In the previous article, we have seen the representation of a binary number in IEEE 754 single-precision floating point format. In this article, we will do the reverse process, which means determining the value of a binary number from a…
Single-Precision IEEE 754 Representation for Floating Point Numbers
In the previous article, we got an overall idea about the representation of floating point number. In this article, we will specifically focus on the single-precision IEEE 754 representation of floating point numbers. Single precision format represents any floating point…