When you want a one of eight decoder, are you tired of typing in:
with Phase_Ctr select Phase
When you want a one of eight decoder, are you tired of typing in:
with Phase_Ctr select Phase
Thats pretty cool as long as synthesis tool correctly translates it.!!!! I have been using this function for indexing the std_logic arrays and as memory pointers.....
Better to have 'Phase_Ctr' defined as a natural instead of a std_logic_vector since that is how it is being used i.e. signal Phase_Ctr: natural range 0 to 7;
Then you have the even less cluttered
Phase When you want a one of eight decoder, are you tired of typing in:
Inside a process (sequential statements):
phase '0'); -- sequential statements phase(phase_ctr)
Doh! This is great. (Sometimes I scare myself by how I miss the simplest things). Thanks Andy.
Any more examples of keystroke/eye/paper savers out there?
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.