-
Notifications
You must be signed in to change notification settings - Fork 1
[Docs] Added Image Description of Benchmark Suite #24
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
Open
Minchan-Kwon
wants to merge
4
commits into
siliconcompiler:master
Choose a base branch
from
Minchan-Kwon:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f5f80ff
[Docs] Added Image Description of Benchmark Suite
Minchan-Kwon a64eeea
[Suite] Added New RTL for Syntax Suite
Minchan-Kwon f2205ca
[Suite] Added Partial Support for Queries
Minchan-Kwon bf0920b
[Suite] Fixed Incorrect Verilog Syntax
Minchan-Kwon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| /* | ||
| Command: get_clocks | ||
| Description: | ||
| -Returns a list of clocks matching patterns | ||
|
|
||
| SDC Example: | ||
| get_clocks clk1 | ||
| get_clocks -quiet clk1098 | ||
| */ | ||
|
|
||
| //Main module | ||
| module get_clocks( | ||
| input wire clk1, | ||
| input wire clk2, | ||
| input wire clk_gen, | ||
| input wire clock, | ||
| output reg dummy_out | ||
| ); | ||
| initial dummy_out = 1'b1; | ||
|
|
||
| always @(posedge clk1 or posedge clk2 or posedge clk_gen or posedge clock) begin | ||
| dummy_out <= ~dummy_out; | ||
| end | ||
|
|
||
| endmodule | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* | ||
| Command: get_pins | ||
| Description: | ||
| -Returns a list of all instance pins matching patterns | ||
|
|
||
| SDC Example: | ||
| get_pins -regexp u1/D | ||
| get_pins u1/D | ||
| */ | ||
|
|
||
| //Main module | ||
| module get_pins( | ||
| input wire clk, | ||
| input wire data_in, | ||
| output reg [1:0] data_out | ||
| ); | ||
| wire u1_out, u2_out; | ||
|
|
||
| //Datapath | ||
| DFF u1(.clk(clk), .D(data_in), .Q(u1_out)); | ||
| DFF u2(.clk(clk), .D(~data_in), .Q(u2_out)); | ||
|
|
||
| assign data_out = {u1_out, u2_out}; | ||
|
|
||
| endmodule | ||
|
|
||
| module DFF( | ||
| input wire clk, | ||
| input wire D, | ||
| output reg Q | ||
| ); | ||
| always @(posedge clk) begin | ||
| Q <= D; | ||
| end | ||
| endmodule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /* | ||
| Command: get_ports | ||
| Description: | ||
| -Returns a list of all top level ports that match patterns | ||
|
|
||
| SDC Example: | ||
| get_ports data* | ||
| get_ports -regexp rst | ||
| */ | ||
|
|
||
| module get_ports( | ||
| input wire clk, | ||
| input wire rst, | ||
| input wire data1_in, | ||
| input wire data2_in, | ||
| input wire valid_in, | ||
| output reg result_out, | ||
| output wire ready_out | ||
| ); | ||
| //ready_out is always 1 for this simple module | ||
| assign ready_out = 1'b1; | ||
|
|
||
| always @(posedge clk or posedge rst) begin | ||
| if (rst) begin | ||
| result_out <= 1'b0; | ||
| end | ||
| else if (valid_in) begin | ||
| result_out <= data1_in + data2_in; | ||
| end | ||
| end | ||
|
|
||
| endmodule |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure patterns match the selected mode (glob vs
-regexp)PATTERNSnow feeds both plain mode and-regexpmode. Several entries (e.g.,clk*,*in,*/Q) look like glob patterns; under-regexpthey may be invalid or at least semantically different than intended depending on the SDC implementation. Consider maintaining separate pattern banks (glob vs regex) or translating when-regexpis present.PATTERNS = { - "clock": ["clk*", "clk_gen", "clock", "clk1"], - "port": ["data*", "*in", "*out", "valid_in"], - "pin": ["u1/*", "*/Q", "u2/D", "*/clk"], + # Consider splitting into "glob" vs "regex" banks if -regexp is used. + "clock": ["clk*", "clk_gen", "clock", "clk1"], + "port": ["data*", "*in", "*out", "valid_in"], + "pin": ["u1/*", "*/Q", "u2/D", "*/clk"], "cell": ["inst*", "reg_*", "*_buffer"], "net": ["net*", "n[0-9]*", "*_data"] }📝 Committable suggestion
🤖 Prompt for AI Agents