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 

Strange error

 
Post new topic   Reply to topic    bluespec.com Forum Index -> Tools: BSC (Bluespec Compiler)
View previous topic :: View next topic  
Author Message
justrajdeep



Joined: 12 Oct 2009
Posts: 5

PostPosted: Mon Oct 12, 2009 2:12 pm    Post subject: Strange error Reply with quote

Hi,
i am very new to bluespec(1 wk infant) and trying to learn it. i wrote a small counter and i got this strange error
Please see snapshot1.jpeg attached.
i am also attaching the code i wrote
TbCounter.bsv
My_Counter.bsv

any help appreciated
thanks in advance



snapshot1.jpeg
 Description:
 Filesize:  28.39 KB
 Viewed:  13581 Time(s)

snapshot1.jpeg



My_Counter.bsv
 Description:

Download
 Filename:  My_Counter.bsv
 Filesize:  1.11 KB
 Downloaded:  989 Time(s)


TbCounter.bsv
 Description:

Download
 Filename:  TbCounter.bsv
 Filesize:  413 Bytes
 Downloaded:  959 Time(s)

Back to top
View user's profile Send private message
hadar_agam



Joined: 10 May 2007
Posts: 38

PostPosted: Mon Oct 12, 2009 3:00 pm    Post subject: Reply with quote

Hello,

This message probably means that you compiled a few files with a certain compiler version, and a few others with a different version, which is what is meant by "signature mismatch".

Try deleting all of the generated files (*.bo, *.ba, *.bi files) and recompile. Hopefully this should take care of that issue.
Back to top
View user's profile Send private message Visit poster's website
justrajdeep



Joined: 12 Oct 2009
Posts: 5

PostPosted: Mon Oct 12, 2009 4:52 pm    Post subject: Reply with quote

i cleaned the project, even started a new project but still same problem. i am using a 64 bit machine, is that a problem?
if i use the following fsm it runs just fine



old_TbCounter.bsv
 Description:

Download
 Filename:  old_TbCounter.bsv
 Filesize:  697 Bytes
 Downloaded:  1061 Time(s)

Back to top
View user's profile Send private message
jnewbern



Joined: 18 Jul 2007
Posts: 71

PostPosted: Mon Oct 12, 2009 9:12 pm    Post subject: Reply with quote

There is a package called Counter in the Bluespec standard library. Your module is clashing with that name. The compiler is reading the data file associated with Bluespec's version of Counter, and that is leading to the signature mismatch. Try renaming your module to something other than Counter.
Back to top
View user's profile Send private message
justrajdeep



Joined: 12 Oct 2009
Posts: 5

PostPosted: Tue Oct 13, 2009 1:29 am    Post subject: Reply with quote

then how is the same module working when i just use normal fsm instead of StmtFSM??
Back to top
View user's profile Send private message
jnewbern



Joined: 18 Jul 2007
Posts: 71

PostPosted: Tue Oct 13, 2009 9:52 am    Post subject: Reply with quote

You are right -- after reviewing your code it is not clashing with the standard Counter package.

But I don't see any reason why you would get a signature mismatch. I can't reproduce the problem locally, either. You are seeing a mismatch between the Counter package (in Prelude) and the ClientServer package (in Libraries), which are both shipped with the release. Is it possible that your installation of bsc has been corrupted?

What version of the compiler are you using? What are the complete steps required to reproduce the failure? Can you reproduce it simply by invoking bsc from the command line?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bluespec.com Forum Index -> Tools: BSC (Bluespec Compiler) 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