Posts

Showing posts with the label Computer System Architecture

COA: Computer Organisation & Architecture Floating Point Representation

Image
What we will cover Why do we need floating point representation? Format of Floating Point Representation. Limitations of traditional float point representation. So, if we have fixed point representation why do we need floating point representation? And answer to our question is very simple, we humans are very greedy! "We want more in least efforts!" Means we want to store more number in less space. And we will give the answers of all your questions. Why do we need floating point representation? It provides larger range of numbers with limited number of bits. Comparison from traditional floating point representation Let's assume that we have a register of 8 B so the range of the number that we can store in two's complement will be -2^7 to 2^7-1. Means from -128 to 127. Remember this above range and you will see at the end of this topic, how IEEE 754 is better in storing. Format of Floating Point Representation There are three terms in the representation which I will ex...

COA: Computer Organisation & Architecture Data Format

Image
What is data format? The binary representation of data values. Why do we need to study? #conceptBuilder If you had done C/C++ programming in past or if not done then also no problem I'll tell you that there are some data types like int (for integers), char (for characters), float (for decimal numbers) etc. So we are giving the input in the format that we are understanding. But our computer can't understand these languages it only understands the machine language (binary language). So in our architecture, we have to do something to convert these to machine language and then the role of data format comes into the frame. Classification of Data In our syllabus, we only deal with Fixed-point and floating-point. And for characters, only we need to remember its name and full form for general knowledge point of view. Now, getting started with Fixed Point. Fixed point Unsigned In an unsigned fixed point, we simply convert the given number system to a binary numbe...