 |
bluespec.com Bluespec Forums
|
View previous topic :: View next topic |
Author |
Message |
sreeju
Joined: 31 Aug 2018 Posts: 5
|
Posted: Mon Feb 04, 2019 8:24 am Post subject: Compilations taking very large time |
|
|
I am designing a cache memory using vectors . I want to find the index of of memory containing tag which matches the tag from address. And if there is cache miss then I wanted to find any invalid memory location at which I can write new tag value. So, the problem is when I write the 'synthesize' attribute before the module then it takes infinite time to compile, but if I remove the synthesize attribute then it compiles within a few sec.
here is my code ..
if(a.op) begin //read
for(Integer i=0; i<32;i=i+1) begin
if( !tagFound && cache_blk[index][i].tag_value==tag && cache_blk[index][tagIndex].valid==True) begin
tagFound=True;
tagIndex=i;
end
end
if(tagFound)begin
hit_reg<=True;
out_reg<=cache_blk[index][tagIndex].data;
end
end
else begin//write
for(Integer i=0; i<32;i=i+1) begin
if( !tagFound && cache_blk[index][i].tag_value==tag && cache_blk[index][tagIndex].valid==True) begin
tagFound=True;
tagIndex=i;
end
if(!tagFound && cache_blk[index][tagIndex].valid==False)
tagMissIndex=i;
end
end
How can I make it synethsizable? |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|