GithubHelp home page GithubHelp logo

Better Documentation/Tutorials about veriloggen HOT 6 OPEN

pyhdi avatar pyhdi commented on May 29, 2024 1
Better Documentation/Tutorials

from veriloggen.

Comments (6)

LucasBraganca avatar LucasBraganca commented on May 29, 2024 1

Hi, this would be something like this:

from veriloggen import *

def make_module():
  m = Module('xval')
  i_xval = m.Input('i_xval',12,signed=True)
  e_xval = m.Wire('e_xval',15,signed=True)
  e_xval.assign(Cat(i_xval[11],i_xval,Repeat(Int(0,1,2),2)))
  
  return m

print(make_module().to_verilog())

from veriloggen.

xd009642 avatar xd009642 commented on May 29, 2024

I've figured out the issues I currently had. One thing I've failed to figure out how to do is an expression like so:

input wire	signed [(12-1):0] i_xval;
...
wire	signed [(15-1):0]	e_xval;
assign	e_xval = { {i_xval[(12-1)]}, i_xval, {(3-1){1'b0}} };

from veriloggen.

xd009642 avatar xd009642 commented on May 29, 2024

That fixed my issue thanks! Is there any appetite for improving the veriloggen docs, and maybe having HTML docs hosted somewhere? Whenever I run into an issue I normally spend time going through tests and examples looking for anything that solves it and then going through the actual code which is less than ideal.

from veriloggen.

shtaxxx avatar shtaxxx commented on May 29, 2024

HTML docs hosted somewhere

I should prepare such documents ...

from veriloggen.

xd009642 avatar xd009642 commented on May 29, 2024

I've not published any python projects myself that have required docs but pydoc should be able to generate docs from doc comments on classes and methods. It's just a case of doc comments for existing code

from veriloggen.

Nic30 avatar Nic30 commented on May 29, 2024

@shtaxxx I am using Sphinx code generator together with readthedocs.io
https://github.com/Nic30/hwtLib/blob/master/docs/conf.py

https://hwtlib.readthedocs.io/en/latest/?badge=latest

I was relatively good and it usually works however you may have to fix some code style of doc in your code. Sphinx can also generate PDF/epub/... and readthedocs.io also supports any files.

from veriloggen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.