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

✨ Gate-level layout file reader and writer #296

Merged
merged 43 commits into from
Oct 6, 2023

Conversation

simon1hofmann
Copy link
Collaborator

@simon1hofmann simon1hofmann commented Sep 27, 2023

Description

This PR introduces a file writer and a parser to store/read gate_level_layouts in .fgl files.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@simon1hofmann simon1hofmann added the enhancement New feature or request label Sep 27, 2023
@simon1hofmann simon1hofmann self-assigned this Sep 27, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (9d1c542) 95.83% compared to head (d4c583b) 96.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #296      +/-   ##
==========================================
+ Coverage   95.83%   96.00%   +0.16%     
==========================================
  Files          98      100       +2     
  Lines        9539     9906     +367     
==========================================
+ Hits         9142     9510     +368     
+ Misses        397      396       -1     
Files Coverage Δ
include/fiction/io/read_fgl_layout.hpp 100.00% <100.00%> (ø)
include/fiction/io/write_fgl_layout.hpp 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_gate_level_layout.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_gate_level_layout.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_fgl_layout.hpp Show resolved Hide resolved
include/fiction/io/read_fgl_layout.hpp Show resolved Hide resolved
include/fiction/io/read_fgl_layout.hpp Show resolved Hide resolved
include/fiction/io/write_fgl_layout.hpp Show resolved Hide resolved
include/fiction/io/write_fgl_layout.hpp Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

include/fiction/io/read_fgl_layout.hpp Show resolved Hide resolved
include/fiction/io/read_fgl_layout.hpp Show resolved Hide resolved
include/fiction/io/read_fgl_layout.hpp Show resolved Hide resolved
@simon1hofmann simon1hofmann added the cli Concerning the command-line interface (CLI) label Oct 6, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

cli/cmd/io/read.hpp Show resolved Hide resolved
cli/cmd/io/read.hpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@marcelwa marcelwa left a comment

Choose a reason for hiding this comment

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

Many thanks for the edits. Almost there. Just a handful of minor comments really.

cli/cmd/io/read.hpp Outdated Show resolved Hide resolved
cli/cmd/io/read.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_fgl_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_fgl_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/read_fgl_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_fgl_layout.hpp Outdated Show resolved Hide resolved
include/fiction/io/write_fgl_layout.hpp Outdated Show resolved Hide resolved
test/io/read_fgl_layout.cpp Outdated Show resolved Hide resolved
test/io/read_fgl_layout.cpp Outdated Show resolved Hide resolved
test/io/write_fgl_layout.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

cli/cmd/io/read.hpp Show resolved Hide resolved
cli/cmd/io/read.hpp Show resolved Hide resolved
cli/cmd/io/read.hpp Outdated Show resolved Hide resolved
Co-authored-by: Marcel Walter <[email protected]>
@marcelwa marcelwa changed the title ✨ Gate level layout reader and writer ✨ Gate-level layout file reader and writer Oct 6, 2023
Copy link
Collaborator

@marcelwa marcelwa left a comment

Choose a reason for hiding this comment

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

LGTM! Many thanks for this great addition 🙏

@simon1hofmann simon1hofmann merged commit 0b7e2fb into cda-tum:main Oct 6, 2023
58 checks passed
@simon1hofmann simon1hofmann deleted the gate_level_layout_io branch October 18, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Concerning the command-line interface (CLI) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants