Update documentation for clock examples#42
Conversation
|
@daniellimws This looks pretty good! |
|
@daniellimws - If you rebase and force push this branch there should be a new read-the-docs build that generates a preview of your new output! |
|
I'm currently following the naming that was given earlier in the docs. In this example, the title is "D-Flipflop with combinational logic". Doesn't a D-flipflop only have input D and output Q? Should we rename this to just flipflop instead of D-flipflop? |
|
@daniellimws - Regarding the weird rendering from the netlistsvg output I logged #48 |
|
I also logged - #50 -- Come up with a good "template" for documentation of the tests I think all the tests should have both symbolator diagram of the verilog and netlistsvg rendered output. |
| 'sphinx_markdown_tables', | ||
| 'symbolator_sphinx', | ||
| 'sphinxcontrib_verilog_diagrams', | ||
| 'm2r' |
There was a problem hiding this comment.
@mithro I'm using this extension to convert markdown into rst so that we can directly include README.md into the home page index.rst. However, there is a bug with the current version of m2r installed from pip/conda. I've applied the fix suggested here to my own fork. May I transfer it to SymbiFlow for sustainability purposes?
Also, this causes the readthedocs build to fail for now because of these lines https://github.com/SymbiFlow/python-symbiflow-v2x/pull/42/files#diff-85987f48f1258d9ee486e3191495582dR57-R59 causing there to be two markdown source parsers (when there should only be one).
There was a problem hiding this comment.
I think we need to figure out if we want to use m2r or recommonmark modules in all our documentation. This probably is a discussion for IRC.
Another option is to convert the README.md to a README.rst at the top level. Both PyPi and GitHub can reader rst files.
4cec9de to
0adcea7
Compare
| @@ -1,9 +1,106 @@ | |||
| # python-symbiflow-v2x | |||
| # SymbiFlow Verilog to XML | |||
There was a problem hiding this comment.
I think we want to be clear it is "Verilog to Routing XML", however "SymbiFlow Verilog to Verilog to Routing XML" is super weird looking with multiple "Verilog to" in it....
Maybe the following? Open to alternatives;
| # SymbiFlow Verilog to XML | |
| # Verilog to Routing XML file generation from Verilog (`python-symbiflow-v2x`) |
There was a problem hiding this comment.
Alright changed. I thought I changed this, maybe lost it when rebasing.
There was a problem hiding this comment.
Still doesn't seem to have updated?
There was a problem hiding this comment.
Oh! The issue is you have a README.rst and a README.md file now!
There was a problem hiding this comment.
Oh I forgot about it. I changed to use README.rst in the other pull request.
4c95c47 to
de0d892
Compare
|
@daniellimws Could you move |
|
Please rebase onto master. I think it LGTM otherwise. |
0735423 to
2960694
Compare
|
Ok, rebased and squashed some commits. |
|
@mithro I just realized I didn't add the |
|
There are many black box modules in the tests, which have the I think the documentation should give a brief explanation on why there is a (Actually, I myself don't know why is that attribute included.) |
|
@daniellimws - I created #61 to track the documentation of the whitebox attributes and friends. |
mithro
left a comment
There was a problem hiding this comment.
Just the two minor comments.
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
- Rename docs/tests/ to docs/examples/ as it fits the content more closely - Add examples main page - Add description for clock examples page Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
|
Ok removed README.md |
All this while it was using `code` which italicizes the code instead of ``code``. Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
|
@daniellimws - We seem to have lost a bunch of the documentation? Compare https://python-symbiflow-v2x.readthedocs.io/en/latest/ to https://python-symbiflow-v2x--42.org.readthedocs.build/en/42/index.html The left side is just showing "examples" now. Clicking on the "DSP" under the examples gets an empty page. |
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
|
The problem was Another problem was that the rtd build for master uses sphinx 2.4.4 while the build for this pull request uses sphinx 3.0.3. The newer version complains that the md files do not have a title and refuses to add them to the toctree. To fix this I changed the environment.yml file to use sphinx 2.4.4 for now while we are still using the markdown symlinks. Also removed The build for this PR still doesn't show the DSP examples because it is still using sphinx 3.0.3. I think it would work in master however. |
|
@mithro Ok to merge? |
| @@ -0,0 +1,10 @@ | |||
| Examples | |||
| ============ | |||
| .. Clock Example Tests | ||
|
|
||
| Clock | ||
| ============== |
| @@ -0,0 +1,6 @@ | |||
| Autodetection of clock from flipflop | |||
| ===================================== | |||
| @@ -0,0 +1,7 @@ | |||
| Manually set inputs as clock | |||
| ================================== | |||
| @@ -0,0 +1,5 @@ | |||
| Manually set outputs as clock | |||
| ================================== | |||
| @@ -0,0 +1,19 @@ | |||
| Set input as clock by name (clk) | |||
| +++++++++++++++++++++++++++++++++++ | |||
| @@ -0,0 +1,23 @@ | |||
| Set input as clock by name (regex) | |||
| +++++++++++++++++++++++++++++++++++ | |||
| @@ -0,0 +1,19 @@ | |||
| Set outputs as clock by name (multiple clock outputs) | |||
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |||
| @@ -0,0 +1,19 @@ | |||
| Manually set output as clock by setting the CLOCK attribute | |||
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |||
| @@ -0,0 +1,19 @@ | |||
| Set output as clock by name (clk) | |||
| +++++++++++++++++++++++++++++++++++ | |||
|
Ok fixed the underlines |
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
|
Weird. flake8 is failing on a file I did not modify. |
This adds many examples from the tests/clocks directory to the documentation, including the verilog code with a svg generated from it, and the contents of their respective model.xml.