StanfordVLSI / dragonphy2

Open Source PHY v2
Apache License 2.0
22 stars 2 forks source link

Add basic test for MDLL #94

Closed sgherbst closed 4 years ago

sgherbst commented 4 years ago

This PR resolves #93 by running a basic test on the MDLL -- an external clock is fed into the reference clock pins for the MDLL, the various signals are asserted / de-asserted to get the MDLL output clock selected as the source for analog_core and sent out through an output buffer in digital_core.

I think the main interesting thing here is that this is effectively a record of the steps that have to be taken to use the MDLL. Hopefully that's useful for lab testing.

// enable buffer for reference clock
`FORCE_ADBG(disable_ibuf_mdll_ref, 0);
// Take the MDLL out of reset and enable the oscillator
`FORCE_MDBG(rstn_jtag, 1);
`FORCE_MDBG(en_osc_jtag, 1);
// Use the MDLL clock in the analog core
`FORCE_ADBG(sel_clk_source, 1);
// Bypass the initial divide-by-two in the analog core
`FORCE_ADBG(bypass_inbuf_div2, 1);
codecov-io commented 4 years ago

Codecov Report

Merging #94 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   22.26%   22.26%           
=======================================
  Files          33       33           
  Lines        1909     1909           
=======================================
  Hits          425      425           
  Misses       1484     1484           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 346fb53...3357e28. Read the comment docs.