-
Notifications
You must be signed in to change notification settings - Fork 950
[alert,fpv] Dramatic improvements to the async alert fpv #27557
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
14 commits
Select commit
Hold shift + click to select a range
e0bde7a
[fpv] Make sequence chains compile much faster
rswarbrick c4b96fc
[fpv] Make it possible to generate coverage from other tasks
rswarbrick 7a01a69
[prim,fpv] Add a "helper assertion" for prim_diff_decode
rswarbrick 9936bc8
[alert,fpv] Minor layout tidy-ups in async alert fpv
rswarbrick 677b76b
[alert,fpv] Document handshakes better in async alert fpv
rswarbrick de7e857
[alert,fpv] Rephrase the handshake assertion in async rxtx alert fpv
rswarbrick 183644a
[alert,fpv] Rephrase some liveness properties with s_eventually
rswarbrick aa515b1
[alert,fpv] Rather simplify some of the async alert code assertions
rswarbrick ae50068
[alert,fpv] Dramatically simplify code for two liveness assertions
rswarbrick 3eee56c
[alert,fpv] Simplify AlertCheck1_A in rxtx async assert
rswarbrick f17b1c9
[alert,fpv] Describe the AlertCheck1_A assertion more clearly
rswarbrick 627f871
[alert,fpv] Make AlertCheck1_A actually true for async alerts
rswarbrick 122ad0d
[alert,fpv] Add stopats and assertions to hit parasitic FSM states
rswarbrick 0c5dbb8
[alert,fpv] Slightly rephrase a couple of liveness assertions
rswarbrick 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
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 @@ | ||
| CAPI=2: | ||
| # Copyright lowRISC contributors (OpenTitan project). | ||
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| name: "lowrisc:fpv:prim_diff_decode_fpv" | ||
| description: "A binding with assertions for prim_diff_decode_fpv" | ||
| filesets: | ||
| files_formal: | ||
| depend: | ||
| - lowrisc:prim:diff_decode | ||
| files: | ||
| - tb/prim_diff_decode_bind_fpv.sv | ||
| - vip/prim_diff_decode_assert_fpv.sv | ||
| file_type: systemVerilogSource | ||
|
|
||
| targets: | ||
| default: &default_target | ||
| # note, this setting is just used | ||
| # to generate a file list for jg | ||
| default_tool: icarus | ||
| filesets: | ||
| - files_formal | ||
|
|
||
| formal: | ||
| <<: *default_target | ||
|
|
||
| lint: | ||
| <<: *default_target |
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,10 @@ | ||
| // Copyright lowRISC contributors (OpenTitan project). | ||
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| // Bind prim_diff_decode_assert_fpv into each instance of prim_diff_decode in the design. | ||
|
|
||
| module prim_diff_decode_bind_fpv; | ||
| bind prim_diff_decode prim_diff_decode_assert_fpv | ||
| #(.AsyncOn (AsyncOn)) u_assert_fpv (.clk_i, .rst_ni); | ||
| 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,36 @@ | ||
| # Copyright lowRISC contributors (OpenTitan project). | ||
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # This is a TCL file that can be sourced by FPV runs that are doing | ||
| # some form of "prim_alert_rxtx" verification. | ||
|
|
||
| proc move_to_task {task_name assert_name} { | ||
| task -edit ${task_name} -copy "${assert_name}*" | ||
| assert -disable ${assert_name} | ||
| } | ||
|
|
||
|
|
||
| set valid_state_props [get_property_list -regexp -include {"name" "ValidState_A$"}] | ||
| foreach prop $valid_state_props { | ||
| assert -set_helper $prop | ||
| } | ||
|
|
||
| # The property names in this list are properties that depend on some FSM state register pointing at | ||
| # a parasitic state. Use a stopat on various state registers to make the properties say something. | ||
|
|
||
| task -create FreeFsm | ||
| stopat -task FreeFsm "i_prim_alert_sender.state_q" | ||
| stopat -task FreeFsm "i_prim_alert_receiver.state_q" | ||
|
|
||
| set parasitic_state_props {SenderStateDValid_A ReceiverStateDValid_A} | ||
|
|
||
| foreach psn $parasitic_state_props { | ||
| foreach psp [get_property_list -regexp -include [list name "${psn}$"]] { | ||
| move_to_task FreeFsm $psp | ||
| } | ||
| } | ||
|
|
||
| # Add FreeFsm to the cov_tasks variable, which is a list of the tasks that will be used for | ||
| # check_cov at the end of fpv.tcl if coverage is enabled. | ||
| lappend cov_tasks FreeFsm |
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
Oops, something went wrong.
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.