bluespec.com Forum Index bluespec.com
Bluespec Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compilations taking very large time

 
Post new topic   Reply to topic    bluespec.com Forum Index -> Designing with BSV's Rules, Interfaces, ...
View previous topic :: View next topic  
Author Message
sreeju



Joined: 31 Aug 2018
Posts: 3

PostPosted: Mon Feb 04, 2019 8:24 am    Post subject: Compilations taking very large time Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bluespec.com Forum Index -> Designing with BSV's Rules, Interfaces, ... All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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
bluespec.com topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP