jamal
1
Dear forum,
I want to use a continuous assignment between two inout (lets say ‘a’ and ‘b’).
From circuit point of view what is the is correct syntax ? i.e :
cgales
2
There are several options:
- Use a common wire to connect the two ports.
- Use a ‘let’ statement to redefine one wire with another name.
- Use a ‘tran’ primitive.
1 Like
jamal
3
Thanks @cgales !
What if I use only a simple (and arbitrary lhs/rhs) assignment : assign a = b;
From circuit point of view it makes sense ?
in other words :
assign a = b; and assign b = a; are equivalent ?
cgales
4
An assign statement is meant to model combinatorial logic and is one direction. The statement
assign a = b;
will result in the behavior that anytime b changes, the value of a will be updated. Any updates to a will not change b.
1 Like