Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Rouding problem using ARM DSP command
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
4 replies
Subscribers
126 subscribers
Views
1691 views
Users
0 members are here
Related
Rouding problem using ARM DSP command
Offline
Yang Fang
over 7 years ago
Note: This was originally posted on 27th December 2011 at http://forums.arm.com
Wish everyone have a happy holiday season!
I am trying to use ARM DSP command
smulwx
and
smlawx
command to implement an IIR filter, found a big DC offset in the result. Looking into it, I found it is because these commands will do (32bits X 16bits)>>16, so basically they are doing floor, instead of round. I can duplicate this in Matlab. Wondering whether anyone use these commands before and how to solve this issue.
Difficulty to me is that these DSP commands have no intermitent result, it will do multiplication and then arithmatic shifting 16 bits, good thing is that it fast, but there is no middle result that i can grab to do rounding myself. checked the document from ARM, there is no option to let these commands to do round instead of floor. I am surprised why they do not do this...
Thank you.
Parents
Offline
Yang Fang
over 7 years ago
Note: This was originally posted on 6th January 2012 at
http://forums.arm.com
But these operators are dynamic, it is not practical to add a remainder in real time to compenstate for that.
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Yang Fang
over 7 years ago
Note: This was originally posted on 6th January 2012 at
http://forums.arm.com
But these operators are dynamic, it is not practical to add a remainder in real time to compenstate for that.
Cancel
Up
0
Down
Reply
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
Errors while importing CCS project into IAR project
+1
Arm Compiler
458
views
1
reply
Latest
1 month ago
by
Andy Neil
Answered
Connecting to multiple cores with command line debugger?
0
DS-5 Debugger
1322
views
2
replies
Latest
1 month ago
by
Alex Earl
Answered
ARM Toolchain Visual Studio Code
+1
1501
views
6
replies
Latest
1 month ago
by
Andy Neil
Answered
Automation for IAR build and run
+1
1614
views
1
reply
Latest
1 month ago
by
Stephen Theobald
Answered
index are changing with the voltage apply to the adc
+1
1986
views
2
replies
Latest
1 month ago
by
Vishal_Patel
<
>
View all questions in Arm Development Studio forum