Mats Johnson Posted March 31, 2021 Report Share Posted March 31, 2021 If I create "virtual registers", that is, registers defined inside an addressBlock with usage "memory", does the size of the register still need to be <= the addressBlock width, as mandated by "SCR 7.5 RegisterSizeWithinBlock"? Quote Link to comment Share on other sites More sharing options...
kock Posted March 31, 2021 Report Share Posted March 31, 2021 Hi Mats, Yes, my understanding is that SCR 7.5 "The size of any register shall be no greater than the width of the containing address block" also applies to virtual registers. Best regards, Erwin Quote Link to comment Share on other sites More sharing options...
Mats Johnson Posted April 6, 2021 Author Report Share Posted April 6, 2021 That surprises me a bit, I assumed that there would be no such "hard" requirements on virtual registers, and that that would be the motivation to have the feature to begin with. Looking at my problem from the other direction then, if I have several addressblocks inside a memorymap, the databus and the registers being 32 bit. Then there is a special addressblock that contains some wider (e.g. 128 bit, or even more) datastructures. Those are also updated over the 32 bit bus, the updates are made safe somehow, e.g. through buffered writes, or some more global synchronisation (like disable the block, update the addressblock, then enable again). I would have thought that would be a task for the virtual registers, but if not, how would I model such data structures in IP-XACT? Quote Link to comment Share on other sites More sharing options...
kock Posted April 7, 2021 Report Share Posted April 7, 2021 Hi Mats, As you say, you can add a special address block with a width of 128 (or more). The width indicates the maximum number of bits that can be accessed in a single transaction. This address block can contain registers with a size equal to the width or smaller. Best regards, Erwin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.