为什么要使用24位寄存器? [英] Why 24 bits registers?

查看:373
本文介绍了为什么要使用24位寄存器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作中,我处理不同的微控制器,微处理器和DSP处理器.他们中的许多人都有24位寄存器和计数器.

In my work I deal with different micro-controllers, micro-processors and DSP processors. Many of them have 24-bits registers and counters.

我知道如何使用它们,这不是我的问题.

I know how to use them, this is not my question.

我的问题是为什么他们要使用24位寄存器!为什么不将其设为32位? 据我所知,这不是大小问题,因为寄存器已经是32位,但是最大为0xFFFFFF.

My question is why do they have 24-bits register! why not make it 32 bit? and as I know, it is not a problem of size, because the registers are already 32bits, but have maximum of 0xFFFFFF.

这是否简化了硬件的实施?计算速度更快? 还是仅仅是嗯,让我们放24位寄存器来使程序员的工作更加艰辛"?

Do this provide easier HW implementation? Faster calculations? Or it is just "hmmm, lets put 24-bits registers to make the job of programmers more hard"?

推荐答案

我的猜测是,大多数DSP应用程序根本不需要32位.数字音频最多使用24位保真度.实现32位将需要更多的晶体管,因此会导致更高的成本.

My guess is that most DSP applications simply don't need 32-bits. Digital audio uses 24-bits fidelity the most. Implementing 32-bits would require more transistors thus would result in higher costs.

为什么32位对程序员来说更容易?

Why would 32 bits be easier for the programmer?

此外,您声明寄存器的最大值为0xFFFFFF,这使得它们按定义为24位,而不是您建议的32位.

Also, you state that the registers have a maximum of 0xFFFFFF, which makes them 24-bits by definition, not 32-bits as you suggest.

这篇关于为什么要使用24位寄存器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆