-
Notifications
You must be signed in to change notification settings - Fork 22
cn0577_adaq2387x: Add testbench #241
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
base: main
Are you sure you want to change the base?
Conversation
|
To be tested with analogdevicesinc/hdl#1870 |
8138e90 to
8979778
Compare
8979778 to
d7b9d72
Compare
a72fa8b to
4bad4c0
Compare
4bad4c0 to
e8aaf6e
Compare
af9bb89 to
3041862
Compare
3041862 to
c5eca49
Compare
|
To be used with the HDL main branch. |
|
Converting the testbench to draft since the cn0577 HDL reference design will be updated here: analogdevicesinc/hdl#1919 This will cause the testbench to fail because of the following modification:
Solution:
|
228d497 to
8744b4d
Compare
|
Since the cn0577 & adaq2387x projects have been separated in HDL, repurposed this testbench to support both projects. |
Signed-off-by: Stanca Pop <[email protected]>
Signed-off-by: Stanca Pop <[email protected]>
704c56f to
7c25485
Compare
| output reg dco_p, | ||
| output reg dco_n, |
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.
Not used in the system_tb, it has its own logic to create the dco_p and dco_n signals.
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.
Please review the input and output signals and update the lists in the test_program, as well as in the system_tb.
Note: system_tb was updated, dco_p and dco_n signals are generated inside the test_program.
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.
CRITICAL WARNING: [BD 41-759] The input pins (listed below) are either not connected or do not have a source port, and they don't have a tie-off specified. These pins are tied-off to all 0's to avoid error in Implementation flow.
Please check your design and connect them as needed:
/axi_ltc2387/delay_clk
Related: WARNING: [BD 41-597] NET <sys_200m_clk> has no source
Signed-off-by: Stanca Pop <[email protected]>
Signed-off-by: Stanca Pop <[email protected]>
Resolved in 176ab82 |
Signed-off-by: Stanca Pop <[email protected]>
| output reg dco_p, | ||
| output reg dco_n, |
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.
Please review the input and output signals and update the lists in the test_program, as well as in the system_tb.
Note: system_tb was updated, dco_p and dco_n signals are generated inside the test_program.
| initial begin | ||
| forever begin | ||
| @(posedge dco_in, negedge dco_in) begin | ||
| #1 | ||
| dco_p <= dco_in; | ||
| dco_n <= ~dco_in; | ||
| end | ||
| end | ||
| end |
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.
See previous comment on dco_p/dco_n.
| initial begin | ||
| forever begin | ||
| if (clk_gate == 1'b1) begin | ||
| dco_init = ref_clk; | ||
| end else begin | ||
| dco_init = 1'b0; | ||
| end | ||
| end | ||
| end |
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.
Since the forever loop is running endlessly, the simulation never passes time 0. Please add a time consuming statement that prevents the hang.
@(posedge clk_gate, negedge clk_gate); seems to be working if added before the conditional statement, but please verify that the testbench is still working as expected.
Signed-off-by: Stanca Pop <[email protected]>
PR Description
Add testbench support for cn0577 & adaq2387x.
PR Type
PR Checklist