Skip to content
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

Add support for nd-vector #54

Merged
merged 5 commits into from
Aug 6, 2020
Merged

Add support for nd-vector #54

merged 5 commits into from
Aug 6, 2020

Conversation

leonardt
Copy link
Owner

@leonardt leonardt commented Jul 30, 2020

For code generating ndarrays

Also allows nested index nodes (for indexing the ndarrays)

@leonardt leonardt requested a review from rsetaluri July 30, 2020 16:59
tests/basic.cpp Outdated
dims.push_back(vAST::make_num("32"));
vAST::NDVector slice(vAST::make_id("x"), vAST::make_num("31"),
vAST::make_num("0"), std::move(dims));
EXPECT_EQ(slice.toString(), "[31:0] x [8][32]");
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remember exactly what the desired multi-dimensional array syntax is, but this is easy enough to change or make different options for.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this way is good for now (believe that was the FB feedback as well)

include/verilogAST.hpp Show resolved Hide resolved
include/verilogAST.hpp Show resolved Hide resolved
@rsetaluri rsetaluri self-requested a review August 4, 2020 04:21
@leonardt leonardt merged commit 8f13844 into master Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants