Hello Shreya_Dave,
I would like to answer your question:
- FeeBlockOverhead = (12 / FEE_VIRTUAL_PAGE_SIZE + 2 )* FEE_VIRTUAL_PAGE_SIZE
- FeeClusterOverhead = (16 / FEE_VIRTUAL_PAGE_SIZE + 2 ) * FEE_VIRTUAL_PAGE_SIZE
- Actual_Fee_block_size = (FeeBlockSize / FEE_VIRTUAL_PAGE_SIZE) * FEE_VIRTUAL_PAGE_SIZE + FeeBlockOverhead
if
- Legacy mode = true
- FEE_VIRTUAL_PAGE_SIZE = 32
we have two block
- FeeBlockSize of block 1 = 50
- FeeBlockSize of block 2 = 70
we have two cluster
- cluster 1 contain 2 sector each sector has size 2048. Then cluster 1 has size 4096
- cluster 2 contain 1 sector has size 2048. Then cluster 1 has size 2048
so the:
- FeeBlockOverhead = 96
- FeeClusterOverhead = 96
- Actual_Fee_block_size of block 1 = 50/32 *32 + 96 = 160
- Actual_Fee_block_size of block 2 = 70/32 *32 + 96 = 192
- Fee_cluster_size will be sum of all sector in the cluster (Eg if we have two sector in one Fee_cluster, each sector have size 2048. Then the Fee_cluster_size = 2048 + 2048 = 4096)
The FEE need atleast 2 Fee_cluster. And the calculation will be base on the smallest cluster (if the first cluster has size 2048 and the second cluster has size 4096, then the calculation will be base on 2048)
As far as I know, the condition for legacy mode in the AUTOSAR 4.3 SMCAL RTM 1.0.1 is:
- Fee_cluster_smallest_size - FeeClusterOverhead - FeeBlockOverhead - 2 * (total_block_size) >= 0
So in this case, it will be:
- 2048 - 96 - 96 - 2*(160 +192) >= 0.
From what I know, you have created a similar ticket(313450) for this case.
Best regards,
Hung.