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 

Misc casting and helpful utils....

 
Post new topic   Reply to topic    bluespec.com Forum Index -> Contributed tidbits
View previous topic :: View next topic  
Author Message
SteveA



Joined: 03 May 2007
Posts: 32

PostPosted: Thu Aug 23, 2007 2:43 pm    Post subject: Misc casting and helpful utils.... Reply with quote

Honestly, I can never remember which way pack and unpack go.. And when working on testbenches, the pack/unpack/extend/truncate thing can get a bit cumbersome.. So I use the utilities to make my life easier when writing testbenches. Small, but handy...
_________________
Steve Allen
Senior Consulting Engineer
Bluespec, Inc
Back to top
View user's profile Send private message
SteveA



Joined: 03 May 2007
Posts: 32

PostPosted: Thu Aug 23, 2007 6:04 pm    Post subject: Reply with quote

Oh, for searching reasons I should say this includes

fromBits, toBits, upcast, downcast, vectorLen and Zero#(n) type

_________________
Steve Allen
Senior Consulting Engineer
Bluespec, Inc
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bluespec.com Forum Index -> Contributed tidbits 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 cannot attach files in this forum
You cannot download files in this forum
bluespec.com topic RSS feed 


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