FPGARelated.com
Forums

Brain Cramps...

Started by rickman ●November 23, 2010
On Dec 2, 10:32 am, Jan Decaluwe <j...@jandecaluwe.com> wrote:
> rickman wrote: > > On Dec 1, 12:20 pm, Jan Decaluwe <j...@jandecaluwe.com> wrote: > >> rickman wrote: > > >>> Yes, if "only full word match" is used, then "write_n" won't match a > >>> "write" search and replace so only "write" will change. > >> It seems that you do not appreciate the difference between Rename > >> and global search and replace yet. > > >> The same identifier may refer to a lot of different objects in > >> a design. Rename is based on object identify, not identifier identity. > >> This makes it intelligent and safe. > > > Oh? How does that work. When can you use the same name for different > > objects??? > > Same name for a port on a different entity or component. > Same name for a formal argument of different functions. > Same name for a formal and an actual in a named association. > Same name that occurs in a comment string explanation. > > Of course, I'm sure this is all obvious to you and I realize that > it must have been my explanation that was inadequate. But there > really was no need for this confusion. You could have seen all > these things for yourself by just spending one minute to see > the screencast. Sigh.
I don't know what a screencast is and I have never seen a sales tool that conveyed any useful info in 1 minute.
> > Why would you if you can? > > Because that's what we expect from an HDL, or any programming > language for that matter. Without it, no namespaces, no parametrization, > no hierarchy, no reuse.
Maybe that's what you expect, but I avoid using the same name for different things. It causes a lot of confusion in debug. My current project uses the same UART code in the target FPGA as in the test bench. In simulation it can be hard to tell which UART XmitBuf I am looking at. I ended up using colors to distinguish their traces. Adding colors to traces in Active HDL is bit bothersome. It takes some five or more mouse clicks to set a color, even if I am only using two in the entire simulation. They need to have some sort of named format for the waveform display so it can be applied with just one or two mouse clicks. Rick
On 11/30/2010 6:31 AM, rickman wrote:

> I also spend time designing the > boards, writing test code, specs, docs and even conversing with > customers... oh yeah, and that slightly important part, looking for > customers.
Until the tide turns, this is everyone's problem. -- Mike Treseler
On 02/12/2010 16:02, rickman wrote:
> On Dec 2, 5:14 am, David Brown<da...@westcontrol.removethisbit.com> > wrote: >> On 01/12/2010 19:36, rickman wrote: >> >>> On Dec 1, 12:20 pm, Jan Decaluwe<j...@jandecaluwe.com> wrote: >>>> rickman wrote: >> >>>>> Yes, if "only full word match" is used, then "write_n" won't match a >>>>> "write" search and replace so only "write" will change. >> >>>> It seems that you do not appreciate the difference between Rename >>>> and global search and replace yet. >> >>>> The same identifier may refer to a lot of different objects in >>>> a design. Rename is based on object identify, not identifier identity. >>>> This makes it intelligent and safe. >> >>> Oh? How does that work. When can you use the same name for different >>> objects??? Why would you if you can? >> >> I think the key to understanding here is that "search and replace" is a >> purely textual function, while "rename" is a type of "refactoring". I >> have no experience with this in VHDL, but I have used it a bit with C >> programming (again using Eclipse). > > Calling it "refactoring" doesn't really help me understand what you > are saying. > > >> The point here is that Eclipse and the plugin (CDT for C or C++, Sigasi >> for VHDL) analyses the syntax of the code - it effectively has the >> front-end of a compiler for the language in question. It is not just a >> matter of syntax highlighting based on regular expressions, as used by >> most editors. It knows the difference between an entity called "write", >> a signal called "write" and a function called "write" - because, like a >> VHDL compiler, it knows the difference between these concepts. > > So you are saying that this tool will allow me to use the same name > for an entity that I use for a signal and not get them confused when I > change one of their names. I find that very unimportant. I never use > the same names on entities that I use for signals and I'm not sure you > can even do that in VHDL. >
Fair enough. Different people work in different ways, and some people don't have full control over all the code - they are working with code from other people. It is always a nice rule to avoid using the same name for different things. I can't say I've used the renaming refactoring in C programming with Eclipse either - I'm just trying to explain the difference from a purely textual search-and-replace, rather than to persuade you to /use/ the feature!
> I don't really care what the tools "know" and don't "know". I care > about what that does for me. In this case it sounds like it does > little that I would find interesting. I will say that if this stuff > can be made to work in real time with reasonable error indications > that are effective without being intrusive, then maybe it would be > worthwhile. But there are the other issues to consider of it being a > commercial product, support, cost and inflexibility of licensing. > > >> Assuming Sigasi has similar functions to CDT, this will also allow fast >> cross-linking of information between files. With CDT, you can hold your >> mouse over an identifier and a tooltip will show you a short definition >> of the identifier. You can navigate quickly to the definition of the >> identifier, or to other uses of it. > > I do that pretty easily now for signals and variables. They are > always declared in the same file. But this may be something that I > would need to see in action to appreciate. >
Again, I've only used it with C programming - and there it definitely /is/ useful. But it also depends on things like the size of the project, the organisation, whether you have written everything yourself, and whether you are just patching up old code or working concentrated on the project. If you have a solid overview of all the identifiers in your head, you don't need to look them up.
> >> Whether or not you find this sort of thing useful is up to you. >> Personally, I am using Eclipse more and more for C programming, though I >> still like a simpler and faster text editor for many other tasks. >> >> There are other editors that can do a certain amount of refactoring, or >> support the use of "tag" information for cross-navigation by identifier, >> but I don't think anything else has the support Eclipse provides. >> That's why a company like Sigasi has built a plugin for Eclipse - >> Eclipse gives them a solid base for the refactoring, and they only need >> to worry about the VHDL-specific part. It's also why - like it or not - >> steadily more tool vendors are dropping their IDE's and editors and >> moving to an Eclipse + plugin model. > > I haven't used refactoring much in my experience. I have used > factoring and have found VHDL to be burdensome in that. Maybe I'll > get a chance this winter to take a look at what Sigasi can do for me. > To be honest, I don't bother too much with new tools unless I can be > convinced they are worth looking at. In this case I might spend the > time with the tool to see if it fits my hands. >
Well, I leave it to the people with connection to or experience with Sigasi to do the persuading. I'm just trying to help explain a couple of features, so that you (and others reading this) can get a better idea of what the tool can do that a simpler text editor cannot.
rickman wrote:
> On Dec 2, 10:32 am, Jan Decaluwe <j...@jandecaluwe.com> wrote: >> rickman wrote:
>> >> Of course, I'm sure this is all obvious to you and I realize that >> it must have been my explanation that was inadequate. But there >> really was no need for this confusion. You could have seen all >> these things for yourself by just spending one minute to see >> the screencast. Sigh. > > I don't know what a screencast is
I'll hold your hand: http://en.wikipedia.org/wiki/Screencast
> and I have never seen a sales tool > that conveyed any useful info in 1 minute.
Look, I can assure you that many good engineers find such a screencast very useful. I am also of the opinion that the people who make such things, for people like you, through hard work, deserve much better than this. Your prejudices are so high that you don't even want to *try*, even though it takes only a fraction of the time you spend on writing posts with a much lower information content. Beats me. Time to review good old school engineering practices. -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com Analog design automation: http://www.mephisto-da.com World-class digital design: http://www.easics.com
On Dec 13, 6:48=A0am, Jan Decaluwe <j...@jandecaluwe.com> wrote:
> rickman wrote: > > On Dec 2, 10:32 am, Jan Decaluwe <j...@jandecaluwe.com> wrote: > >> rickman wrote: > > >> Of course, I'm sure this is all obvious to you and I realize that > >> it must have been my explanation that was inadequate. But there > >> really was no need for this confusion. You could have seen all > >> these things for yourself by just spending one minute to see > >> the screencast. Sigh. > > > I don't know what a screencast is > > I'll hold your hand: > > http://en.wikipedia.org/wiki/Screencast > > > and I have never seen a sales tool > > that conveyed any useful info in 1 minute. > > Look, I can assure you that many good engineers find such a > screencast very useful. I am also of the opinion that the > people who make such things, for people like you, through > hard work, deserve much better than this. Your prejudices > are so high that you don't even want to *try*, even though > it takes only a fraction of the time you spend on writing > posts with a much lower information content. Beats me.
Wonderful for them! I find that nearly every video I have watched was far too slow paced, covered too little material at too shallow a level and has provided very little information relative to the marketing content. I just don't watch them unless it is a topic I am extremely interested in. This product has a lot of strikes against it, so in the end the minute details of what it does is not of great interest to me. It has been described here and I don't find it compelling.
> Time to review good old school engineering practices.
I have no idea what that means. But I find your analysis of my opinions to be rude and pointless. Clearly you wish to offend me. But it is much less clear if you think that somehow you are being persuasive. Rick
rickman wrote:
> On Dec 13, 6:48 am, Jan Decaluwe <j...@jandecaluwe.com> wrote:
>> Time to review good old school engineering practices. > > I have no idea what that means. But I find your analysis of my > opinions to be rude and pointless. Clearly you wish to offend me.
No, but I am getting extremely frustrated that it is proving impossible for me to have a meaningful discussion with you, though I think the topics should be of mutual interest. No matter how hard I try, I seem to fighting what I perceive as an attitude of unwillingness, wasting everybody's time - this screencast incident being an absolute low point. Of course I should limit myself to deciding what I should do and not try to tell you what you should do - that is overreaction, and I take that back. Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com Analog design automation: http://www.mephisto-da.com World-class digital design: http://www.easics.com