Speed and Performance Comparison of Harvard Bus vs System Bus on ARM Cortex-M Processors
Keywords: ARM, System Bus, Harvard Bus, Speed, Performance, STM32, Cortex-M, Keil, IRAM, SoC
ARM, one of the most extensively used RISC processors on the planet, come up with Harvard architecture bus for .text area i.e. Code and data are fetched on separate buses i.e. I-Code and D-Code bus. Another bus that links Internal SRAM with the core is mapped on shared bus called System bus. The and System bus is shared b/w SRAM and other peripherals. The goal of this study is to analyze the speed difference when code is executed from flash vs from Internal RAM and the performance of Harvard bus over System bus.
I. INTRODUCTION
A bus is a pathway for digital signals to rapidly move data. Buses are fundamental source of data exchange inside the core. There are three internal buses associated with processors: the data bus, address bus, and control bus. These buses are used to bring data in and out of the processor core as well as inter- register data transfer.
ARM Cortex-M are 32-bits Cores belong to RISC family of processors. The Cortex-M profile is intended from deep embedded devices with very little power consumption. This is due to the fact that embedded devices are mostly battery powered. These cores are highly energy efficient with much smaller silicon area.
ARM Cortex-M contain number of internal buses for memory interfacing and various low and High-speed peripherals. The code memory region is interfaced with Harvard bus architecture with separate buses for code (I-Code) and data (D- Code). The rest of memory map is interfaced on shared System bus. On STM32, the volatile memory i.e. internal RAM (IRAM) is interfaced on shared system bus while internal flash memory is interfaced on Harvard bus.
It is usually expected that SRAM out performs hybrid memories like flash, but what happens when flash is accessed via high bandwidth bus and SRAM is accessed via shared system bus!! On one side we have slow memory with high bandwidth bus (flash memory with Harvard bus) while on other side we have super-fast memory but comparatively slow shared bus (SRAM with System bus). The goal of this paper is to analyze the bus bandwidth effect on memory latency.

II. METHODOLOGY
As mentioned in the introduction, the main purpose of the project is to compare performance analysis of the two buses i.e. Harvard bus (I-Code + D-Code) and Von-Neuman (System bus) on ARM cores. The main idea is to compare the performance when slow memory e.g. flash is accessed via high bandwidth bus (Harvard) while the fast memory e.g. SRAM is accessed via low bandwidth bus (shared System bus).
The performance will be evaluated on the following parameters.
1. Data Access
A large array containing dummy data will be repeatedly accessed using system bus (volatile data) and via D-code bus (constant data) and average access time will be recorded and compared.
2. Instruction Fetch
While data is read, instructions are fetched via pipeline. To compare the performance, we will execute instruction via both I-Code bus and system bus. The average performance time will be recorded. In order to fetch instruction via I-Code bus, a sample code (Fast Fourer Transform), will be executed from internal flash memory on STM32 MCU. Similarly, to execute code via system bus, the same sample code will be copied into internal RAM (IRAM) and the routine will be called from main routine subsequently.
III. RESULTS
1. Instruction Fetch
A sample program contains Fast Fourier Transform code was executed from Flash and then from IRAM. The average time of the operation is noted for both scenarios and shown in Fig- 1.

2. Data Access
A large array of dummy data is placed in internal flash (via constant data) and was accessed via D-Code bus. Similarly, the same data was placed in IRAM and was accessed. The average access time of whole array (around 1000 elements) is shown in Fig-2.

IV. CONCLUSION
It is normally expected that flash memory is slow, and SRAMs are super-fast. The Fig-2,3 clearly shows that though the flash memory is comparatively slow but when it is inter- faced on high speed/bandwidth bus, the performance is almost comparable to SRAM. The conducted experiment concluded that in case of STM32F4 (ARM Cortex-M) the performance of the two buses are almost same and the Harvard bus indeed nullify flash latency.
V. REFERENCES
1) ARM Cortex-M4 Technical Reference Manual
2) STM32F4xx Datasheet
3) STM32F4xx Technical Reference Manual
4) Keil uVision5 Reference Manual
Hurrah, that’s what I was seeking for, what a material!
existing here at this blog, thanks admin of this web site.
0mniartist asmr
I absolutely love your site.. Pleasant colors & theme.
Did you develop this website yourself? Please reply back as I’m looking to create my own personal site and would like to know where you got this from or just what
the theme is called. Thanks! 0mniartist asmr
I’m really loving the theme/design of your weblog. Do you ever run into
any web browser compatibility problems? A number of
my blog audience have complained about my blog not working correctly in Explorer
but looks great in Safari. Do you have any ideas
to help fix this issue? asmr 0mniartist
Heya i am for the first time here. I found this board and I find It truly
useful & it helped me out a lot. I hope to give something back and aid others like you helped me.
0mniartist asmr
I really like your blog.. very nice colors & theme.
Did you create this website yourself or did you hire someone to
do it for you? Plz reply as I’m looking to create my own blog and would like to know where u got this from.
thanks asmr 0mniartist
I just couldn’t leave your website before suggesting that I really loved the usual information an individual supply in your
visitors? Is going to be back incessantly to check up on new posts
It’s going to be finish of mine day, however before end I am reading this great article
to improve my knowledge.
Hiya! I know this is kinda off topic but I’d figured I’d ask.
Would you be interested in trading links or maybe guest authoring a
blog post or vice-versa? My website discusses a lot
of the same topics as yours and I feel we could greatly
benefit from each other. If you happen to be interested feel free to shoot me an email.
I look forward to hearing from you! Terrific blog by the way!
Wow, incredible weblog structure! How lengthy have you ever been blogging for?
you make running a blog look easy. The entire glance of your
website is great, let alone the content material!
I do consider all the ideas you have introduced in your post.
They are really convincing and can certainly work.
Nonetheless, the posts are too quick for novices.
May just you please lengthen them a little from next time?
Thanks for the post.
Hi! I could have sworn I’ve been to this blog before but after
looking at a few of the articles I realized it’s new
to me. Regardless, I’m certainly delighted I discovered it and
I’ll be bookmarking it and checking back regularly!
Thank you for another fantastic article. Where else may just anybody get that kind of
info in such an ideal manner of writing? I have a presentation subsequent week, and I’m on the search for such info.
Hi! Someone in my Facebook group shared this site with us so I
came to give it a look. I’m definitely enjoying the information. I’m book-marking and will be tweeting
this to my followers! Fantastic blog and wonderful style and design.
Hello just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading properly.
I’m not sure why but I think its a linking issue.
I’ve tried it in two different browsers and both show the same outcome.
scoliosis
Amazing things here. I am very happy to peer your post.
Thank you so much and I am having a look ahead to touch you.
Will you kindly drop me a e-mail? scoliosis
scoliosis
Hey! This is kind of off topic but I need some guidance
from an established blog. Is it tough to set up your own blog?
I’m not very techincal but I can figure things out pretty quick.
I’m thinking about creating my own but I’m not sure where to begin.
Do you have any ideas or suggestions? Thank you scoliosis
free dating sites
Very nice blog post. I certainly appreciate this website.
Keep writing! https://785days.tumblr.com/ dating sites
free dating sites
Hi there would you mind letting me know which hosting
company you’re using? I’ve loaded your blog in 3 different web browsers
and I must say this blog loads a lot faster then most.
Can you recommend a good internet hosting provider at a fair price?
Kudos, I appreciate it! free dating sites
I don’t even know how I ended up here, but I thought this post was good.
I do not know who you are but certainly you’re going
to a famous blogger if you are not already đŸ˜‰ Cheers!
Hello there! This post could not be written any better!
Reading through this post reminds me of my good old room mate!
He always kept chatting about this. I will forward this page to him.
Fairly certain he will have a good read. Many thanks for sharing!
Wow, this paragraph is nice, my sister is analyzing
such things, therefore I am going to let know her.
Thank you for the good writeup. It in fact was a amusement account it.
Look advanced to more added agreeable from you! By
the way, how can we communicate?
I know this web site provides quality based content and additional stuff, is there any
other web site which provides such things in quality?
Appreciate this post. Will try it out.
Hi there! I know this is kinda off topic but I was wondering which
blog platform are you using for this site? I’m getting tired
of WordPress because I’ve had issues with hackers and I’m looking at options for another platform.
I would be awesome if you could point me in the
direction of a good platform.
Hi colleagues, good post and pleasant urging commented at this place, I am truly enjoying by these.
Hello to every one, for the reason that I am really eager of reading this web site’s post to be updated daily.
It includes nice stuff.
Hello, Neat post. There’s a problem together with your site in web explorer,
may test this? IE still is the market chief and a good component
to folks will miss your fantastic writing because of
this problem.
Great blog! Do you have any hints for aspiring writers?
I’m planning to start my own website soon but I’m a little lost on everything.
Would you propose starting with a free platform like WordPress or go for a
paid option? There are so many options out there that I’m completely
overwhelmed .. Any tips? Many thanks!
Good information. Lucky me I discovered your blog by accident (stumbleupon).
I’ve bookmarked it for later!
I really like it whenever people get together and share ideas.
Great blog, stick with it!
First off I want to say excellent blog! I had a quick question that I’d like to ask if
you do not mind. I was interested to find out how you center yourself and clear your thoughts prior to writing.
I have had a hard time clearing my mind in getting my thoughts out there.
I truly do enjoy writing however it just seems
like the first 10 to 15 minutes are wasted
simply just trying to figure out how to
begin. Any ideas or tips? Thank you!
WOW just what I was looking for. Came here by searching for
what
I all the time used to read article in news papers but now as I am
a user of net thus from now I am using net for articles or reviews, thanks to web.
Hi there, I found your site via Google while searching for
a related subject, your web site came up, it appears good.
I’ve bookmarked it in my google bookmarks.
Hi there, simply was aware of your weblog thru Google, and located that it is
truly informative. I’m going to be careful for brussels.
I’ll be grateful should you proceed this in future. A lot of
other people might be benefited out of your writing.
Cheers!
I want to to thank you for this fantastic read!! I certainly enjoyed every bit of it.
I’ve got you saved as a favorite to check out new stuff
you post…
Very good info. Lucky me I recently found your website by accident (stumbleupon).
I have book-marked it for later!
Excellent blog here! Also your web site loads up very fast!
What web host are you using? Can I get your affiliate link to
your host? I wish my web site loaded up as quickly as yours lol
Superb post however I was wondering if you could write a litte more on this
topic? I’d be very grateful if you could elaborate a little
bit further. Appreciate it!
We absolutely love your blog and find nearly all of your post’s to be precisely what
I’m looking for. Do you offer guest writers to write content available
for you? I wouldn’t mind creating a post or elaborating on a number of the subjects you write regarding here.
Again, awesome weblog!
Keep on writing, great job!
I really like your blog.. very nice colors & theme.
Did you design this website yourself or did you hire someone to do it for you?
Plz reply as I’m looking to construct my own blog and would like to know where u got this from.
thank you
Post writing is also a excitement, if you be acquainted with after that you can write if not
it is difficult to write.
Woah! I’m really loving the template/theme of this website.
It’s simple, yet effective. A lot of times it’s
very hard to get that “perfect balance” between superb usability and appearance.
I must say you’ve done a very good job with this.
Also, the blog loads very quick for me on Opera.
Superb Blog!
Nice blog here! Also your site loads up very fast! What host are you using?
Can I get your affiliate link to your host? I wish my site loaded
up as fast as yours lol
If some one wants expert view on the topic of blogging and site-building after that i advise him/her to pay a visit
this weblog, Keep up the pleasant job. quest bars http://bit.ly/3C2tkMR quest bars
It’s going to be end of mine day, except before end I am reading this impressive post to increase my knowledge.
asmr https://app.gumroad.com/asmr2021/p/best-asmr-online asmr
My relatives always say that I am wasting my time here at web, but I know I am getting know-how every day by reading such fastidious articles.
scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery
Nice blog here! Also your website lots up very fast! What host are you using?
Can I am getting your affiliate hyperlink in your host? I wish my web site loaded up as fast
as yours lol cheap flights http://1704milesapart.tumblr.com/ cheap flights
Hi! I simply would like to give you a huge thumbs up for your great info you’ve got here on this post.
I’ll be coming back to your web site for more soon.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars
What’s up, yes this piece of writing is genuinely nice and I
have learned lot of things from it about blogging.
thanks. scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery
I wanted to thank you for this excellent read!!
I definitely enjoyed every little bit of it. I have got you bookmarked to check out new things you post… https://parttimejobshiredin30minutes.wildapricot.org/ part time jobs hired in 30 minutes
Can I simply just say what a comfort to find someone that really knows what they are talking about online.
You certainly understand how to bring an issue to light and make it important.
More and more people have to check this out and understand this side of the story.
I was surprised that you are not more popular since you definitely
possess the gift.
Hi mates, nice piece of writing and good arguments commented here, I am genuinely enjoying by these.
Also visit my blog; tracfone special coupon 2022