-
Notifications
You must be signed in to change notification settings - Fork 1
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
Updated Header: std_u/logic, N Dim unconstrained arrays. #3
Conversation
I would like to recouple them, because [x][y][...etc is much easier. I have included the helper function
I see this will come in handy for the above How do I fix |
Is printing out:
instead of
which is how I see The original test of the 2D real was: I have changed it to, which I strongly believe makes more sense. Thisalso means that there is no longer a discrepancy in the orders in which the ranges are set between ghdlFromArray and ghdlToArray |
Now test output
|
I think there are 2 more things I want to do with ghdl.h:
|
I moved the example to subdir |
I believe I did the rebase imperfectly... I just had to apply the total change in commit "Rebase.." Hopefully next time is better. |
Unless you really want to preserve the (or some) of commits, I suggest to first squash all the commits in your branch to have a single one on top of mine. Then, |
02645b9
to
2db0542
Compare
9c66f33
to
535bd11
Compare
b4813cb
to
6e3e701
Compare
bb886c8
to
8fc40e4
Compare
5e05546
to
f7326b0
Compare
@RocketRoss, I accidentally force-pushed to branch |
ghdl/issues/3
This pull request contains only the updates to ghdl.h (and supporting main.c, tb.vhd and run.sh) from umarcor/ghdl/pull/1.
Updates
arrays
Pasted below is the output of the updated test (./run.sh)
Each index of an array is given the value of 11*(indexId+1), where indexId is the sequential enumeration of the possible indices: eg. 2D array (2, 3): (0,0)=0, (0,1)=1, (0,2)=2, (1,0)=3, (2,0)=4...etc.
For the 2D and 3D verification printouts in C, the (indexId) is printed after the [index list].