-
Notifications
You must be signed in to change notification settings - Fork 13
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
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. |
docs/conf.py
Outdated
@@ -45,6 +45,7 @@ | |||
'sphinx_markdown_tables', | |||
'symbolator_sphinx', | |||
'sphinxcontrib_verilog_diagrams', | |||
'm2r' |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
README.md
Outdated
@@ -1,9 +1,106 @@ | |||
# python-symbiflow-v2x | |||
# SymbiFlow Verilog to XML |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Poke.
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.
Alright changed. I thought I changed this, maybe lost it when rebasing.
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.
Still doesn't seem to have updated?
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.
Oh! The issue is you have a README.rst
and a README.md
file now!
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.
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. |
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.
Just the two minor comments.
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
- 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 <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
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 <[email protected]>
@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 <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
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? |
docs/examples.rst
Outdated
@@ -0,0 +1,10 @@ | |||
Examples | |||
============ |
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.
this underline is too long
docs/examples/clocks.rst
Outdated
.. Clock Example Tests | ||
|
||
Clock | ||
============== |
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.
this underline is too long
@@ -0,0 +1,6 @@ | |||
Autodetection of clock from flipflop | |||
===================================== |
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.
this underline is too long
@@ -0,0 +1,7 @@ | |||
Manually set inputs as clock | |||
================================== |
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.
this underline is too long
@@ -0,0 +1,5 @@ | |||
Manually set outputs as clock | |||
================================== |
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.
this underline is too long
@@ -0,0 +1,19 @@ | |||
Set input as clock by name (clk) | |||
+++++++++++++++++++++++++++++++++++ |
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.
this underline is too long
@@ -0,0 +1,23 @@ | |||
Set input as clock by name (regex) | |||
+++++++++++++++++++++++++++++++++++ |
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.
this underline is too long
@@ -0,0 +1,19 @@ | |||
Set outputs as clock by name (multiple clock outputs) | |||
++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
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.
this underline is too long
@@ -0,0 +1,19 @@ | |||
Manually set output as clock by setting the CLOCK attribute | |||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
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.
this underline is too long
@@ -0,0 +1,19 @@ | |||
Set output as clock by name (clk) | |||
+++++++++++++++++++++++++++++++++++ |
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.
this underline is too long
Ok fixed the underlines |
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
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.