STM32系列的浮点运算能力

总结,

CortexM4架构的都是单精度的

CotexM7结构的单双都有,目前是F7才有M7架构



从文档en.brstm32-STM32 32-bit MCU family - Leading supplier of ARM® Cortex®-M microcontrollers来看

STM32F7/4/3,

STM32L4

都带有DSP和浮点运算单元

系列频率特点
STM32F7216Mhz Cortex-M7 L1-Cache高性能
STM32F4180Mhz Cortex-M4高性能
STM32F372Mhz Cortex-M4 
STM32L480Mhz Cortex-M4极低功耗

根据我们的经验,F767双精度跑一次用20+ms,23左右吧

单精度和整数运算好像没差别,可能是因为我们的测试用例用的都是双精度测试用例,等有空的时候研究下这个地方:为什么单精度和整数运算好像没差别


我们的目标是用200+ms以下,考虑到特殊情况复杂度是指数级增长,控制在160ms以下才是合理的


根据文档en.brstm32f7-STM32F7 series - High performance - 32-bit MCUs

F7系列里面,频率都是216

产品FPUL1-Cache
STM32F7x8/9双精度16+16K
STM32F7x7双精度16+16K
STM32F7x6单精度4+4K
STM32F765双精度16+16K
STM32F745单精度4+4K

Cortex7的文档

8.1. About the FPU

The Cortex-M7 processor with FPU is an implementation of thesingle-precision and double-precision variant of the ARMv7-M Architecture with Floating-Point Extension (FPv5).



根据Cortex4的文档:

7.1. About the FPU

The Cortex-M4 FPU is an implementation of thesingle precision variant of the ARMv7-M Floating-Point Extension (FPv4-SP). It provides floating-point computation functionality that is compliant with the ANSI/IEEE Std 754-2008, IEEE Standard for Binary Floating-Point Arithmetic, referred to as the IEEE 754 standard. The FPU supports all single-precision data-processing instructions and data types described in the ARM Architecture Reference Manual.


所以F4/3还有L4应该都是单精度的了



  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值