-
Notifications
You must be signed in to change notification settings - Fork 5
Update config integration #57
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
450701a
Read ff models and mae models from cad tarball
gigeresk bae6536
Remove ff models (using duplicate info in tech_flops.v instead), remo…
gigeresk 31ee52e
Add warnings if techmap paths are absolute
gigeresk 511b29d
add illegal end checks
gigeresk 7e04546
Add and expand unit tests, but these are not run
gigeresk 1425479
Merge branch 'main' into update_config_integration
gigeresk df3696d
Remove comment
gigeresk e2eec8a
remove unused
gigeresk 7183989
Proper partname
gigeresk 9b7dd5a
Part name fix
gigeresk 3ad30eb
re-add dffmodels
gigeresk 5f14b60
Doesn't matter if path is abs or rel
gigeresk 61c40a4
remove illegal cells config
gigeresk 73abb5c
remove more
gigeresk fdeee7f
Do not overcomplicate partname
gigeresk b23e94b
Re-enable tests
gigeresk f25004d
Add warning and change comment
gigeresk 52cd268
Add comment
gigeresk 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
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
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
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,20 @@ | ||
| { | ||
| "version": 1, | ||
| "partname": "z1000", | ||
| "lut_size": 4, | ||
| "flipflops": { | ||
| "features": [ | ||
| "async_reset", | ||
| "flop_enable" | ||
| ], | ||
| "models": { | ||
| }, | ||
| "legalize_list": [ | ||
| "$_DFF_PN0_", | ||
| "$_DFF_P_", | ||
| "$_DFFE_PP_", | ||
| "$_DFFE_PN0P_" | ||
| ], | ||
| "techmap": "/tech_flops.v" | ||
| } | ||
| } |
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
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,29 @@ | ||
| { | ||
| "version": 1, | ||
| "partname": "z1010", | ||
| "lut_size": 4, | ||
| "flipflops": { | ||
| "features": ["async_reset", "async_set", "flop_enable"], | ||
| "models": { | ||
| }, | ||
|
Comment on lines
+7
to
+8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably makes sense to have a test that includes the models to ensure this behavior is properly implemented at this time. |
||
| "legalize_list": ["$_DFF_PN0_", "$_DFF_P_", "$_DFFE_PP_", "$_DFFE_PN0P_"], | ||
| "techmap": "/tech_flops.v" | ||
| }, | ||
| "brams": { | ||
| "memory_libmap": ["/bram_memory_map.txt"], | ||
| "techmap": ["/tech_bram.v"] | ||
| }, | ||
| "dsps": { | ||
| "family": "DSP48", | ||
| "techmap": "/mult18x18_DSP48.v", | ||
| "techmap_parameters": { | ||
| "DSP_A_MAXWIDTH": 18, | ||
| "DSP_B_MAXWIDTH": 18, | ||
| "DSP_A_MINWIDTH": 2, | ||
| "DSP_B_MINWIDTH": 2, | ||
| "DSP_Y_MINWIDTH": 9, | ||
| "DSP_SIGNEDONLY": 1, | ||
| "DSP_NAME": "$__MUL18X18" | ||
| } | ||
| } | ||
| } | ||
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,30 @@ | ||
| # yosys -m wildebeest -s heartbeat-z1000-config-abspath.ys | ||
| read_verilog <<EOF | ||
| module heartbeat #( | ||
| parameter N = 8 | ||
| ) ( | ||
| //inputs | ||
| input clk, // clock | ||
| input nreset, //async active low reset | ||
| //outputs | ||
| output reg out //heartbeat | ||
| ); | ||
|
|
||
| reg [N-1:0] counter_reg; | ||
|
|
||
| always @(posedge clk or negedge nreset) begin | ||
| if (!nreset) begin | ||
| counter_reg <= {(N) {1'b0}}; | ||
| out <= 1'b0; | ||
| end else begin | ||
| counter_reg <= counter_reg + 1'b1; | ||
| out <= (counter_reg == {(N) {1'b1}}); | ||
| end | ||
| end | ||
|
|
||
| endmodule | ||
| EOF | ||
|
|
||
| synth_fpga -config data/z1000/z1000_abspath.json -show_config | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same about log assertions |
||
| select -assert-count 9 */t:dffr | ||
| select -assert-count 11 */t:$lut | ||
1 change: 1 addition & 0 deletions
1
tests/unit/heartbeat-z1000.ys → tests/unit/heartbeat-z1000-config.ys
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # yosys -m wildebeest -s heartbeat-z1000-config.ys | ||
| read_verilog <<EOF | ||
| module heartbeat #( | ||
| parameter N = 8 | ||
|
|
||
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,30 @@ | ||
| # yosys -m wildebeest -s heartbeat-z1000-hardcode.ys | ||
| read_verilog <<EOF | ||
| module heartbeat #( | ||
| parameter N = 8 | ||
| ) ( | ||
| //inputs | ||
| input clk, // clock | ||
| input nreset, //async active low reset | ||
| //outputs | ||
| output reg out //heartbeat | ||
| ); | ||
|
|
||
| reg [N-1:0] counter_reg; | ||
|
|
||
| always @(posedge clk or negedge nreset) begin | ||
| if (!nreset) begin | ||
| counter_reg <= {(N) {1'b0}}; | ||
| out <= 1'b0; | ||
| end else begin | ||
| counter_reg <= counter_reg + 1'b1; | ||
| out <= (counter_reg == {(N) {1'b1}}); | ||
| end | ||
| end | ||
|
|
||
| endmodule | ||
| EOF | ||
|
|
||
| synth_fpga -partname z1000 | ||
| select -assert-count 9 */t:dffr | ||
| select -assert-count 11 */t:$lut |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.