Yanghao Hua wrote:
a different assignment behavior in HDL is your assignment does not
take effect until a delta cycle of zero virtual time has passed. (did
you really looked at the previous postings? :)

You need to understand that most of the people reading this are not
familiar with the workings and semantics of HDLs, so that phrases
like "delta cycle of zero virtual time" are meaningless word salad.
We need you to tell us what this new kind of assignment will do
in *Python* terms.

x = 4 should be something like x <== 4 or x := 4 (the latter has been
taken by the assignment expressions though ...). Such that variable
initialization (=) and utilization (<==) can be differentiated.

Since you seem to be willing to use a different syntax for this
kind of assignment, my suggestion is something like

   x = Signal()
   ...
   x.next = 4

If I understand correctly what you want to use this for, that
would be both suggestive of the semantics and entirely doable
with existing Python features.

--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to