New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement farray +* operators #77

Closed
cjdrake opened this Issue Mar 26, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@cjdrake
Owner

cjdrake commented Mar 26, 2014

The best meaning for the + operator is to concatenate farray instances. Similarly, the best meaning for the * operator is to do repetition of farray instances.

SystemVerilog: {x, y}
PyEDA: x + y

SystemVerilog: {8{x}}
PyEDA: x * 8

Question: should this also work for Function instances? A single Function can easily be viewed as a degenerate farray. This would be very convient, b/c the user wouldn't have to type farray([x]) for every conversion.

This requires that the current usage of + and * operators be completely deprecated and removed.

@cjdrake cjdrake added the Change label Mar 26, 2014

@cjdrake cjdrake closed this Mar 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment