Re: Style question - leftshift or not?



They're equivalent. Sometimes it's more "effective" to communicate one
versus the other to communicate the functionality to other engineers. The
latter form is certainly preferred if the engineer (or the tool) could be
confused about what the width would be if the "sig" were an expression
rather than a wire/reg.

"Paul Marciano" <pm940@xxxxxxxxx> wrote in message
news:1127755858.878564.293980@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> Hi,
>
> In terms of style/synthesis is there any reason to prefer:
>
> reg [5:0] v;
> wire sig;
>
> v <= { v[4:0], sig };
>
> over:
>
> v <= (v << 1) | sig;
>
>
> I believe these are equivalent.
>
> Regards,
> Paul.
>


.



Relevant Pages

  • Re: XP Requirement Analysis?
    ... >> way to communicate and establish the way ahead. ... >> Engineers do not exhaustively model the physics of a construction, ... > To do these things, virtually all, scientists/engineers use MODELLING ... > as their chief aid in and for conceptualization. ...
    (comp.object)
  • Re: does a software architect need UML skills?
    ... The reason we write is to be understood by as wide a range of people ... If we each created a new diagraming language for each problem ... communicate with each other. ... Electrical Engineers and ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Drought! My ideas are all dried up...
    ... a certain amount of communication ability. ... My experience was that engineers communicate just fine. ... of stress and hair-pulling among library management here, ...
    (rec.arts.sf.composition)
  • Re: Drought! My ideas are all dried up...
    ... There's an annual essay competition at the School of Engineering at my ... My experience was that engineers communicate just fine. ...
    (rec.arts.sf.composition)