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

DOT output format #48

Merged
merged 3 commits into from
Aug 19, 2024
Merged

DOT output format #48

merged 3 commits into from
Aug 19, 2024

Conversation

Muxianesty
Copy link
Collaborator

@Muxianesty Muxianesty commented Aug 15, 2024

This Pull Request introduces .dot-file output format for DFCxx dataflow graph, mentioned in #27.

@Muxianesty Muxianesty added enhancement New feature or request stage II For issues applicable to Stage II of the project labels Aug 15, 2024
@Muxianesty Muxianesty requested a review from ssmolov August 15, 2024 20:06
@Muxianesty Muxianesty self-assigned this Aug 15, 2024
README.md Outdated
@@ -221,6 +221,7 @@ The list of arguments for `hls`-mode is presented below:
* `--out-sv-lib <PATH>`: *optional* filesystem-path option; used to specify the output SystemVerilog file for generated operations library.
* `--out-dfcir <PATH>`: *optional* filesystem-path option; used to specify the output DFCIR file.
* `--out-firrtl <PATH>`: *optional* filesystem-path option; used to specify the output FIRRTL file.
* `--out-dot <PATH>`: *optional* filesystem-path option; used to specify the output .dot file.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The following renaming is proposed:
".dot" -> "DOT"

It will look more relevant to existing descriptions in this file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

outputStreams,
sched);
bool result = true;
// Compile the kernel to .dot if such stream is specified.
Copy link
Collaborator

Choose a reason for hiding this comment

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

.dot -> DOT

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

src/options.h Outdated
@@ -195,6 +197,9 @@ struct HlsOptions final : public AppOptions {
outputGroup->add_option(OUT_FIRRTL_ARG,
outNames[OUT_FORMAT_ID_INT(FIRRTL)],
"Path to output scheduled FIRRTL");
outputGroup->add_option(OUT_DOT_ARG,
outNames[OUT_FORMAT_ID_INT(Dot)],
"Path to output a DFCxx kernel in .dot format.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

.dot -> DOT

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

Comment on lines 19 to 20
#include <unordered_map>
#include <string>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lexicographical order is broken

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@ssmolov ssmolov merged commit eac27e3 into master Aug 19, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stage II For issues applicable to Stage II of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants