Skip to content
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

Support to VHDL-AMS #237

Open
dataludus opened this issue Oct 24, 2017 · 4 comments
Open

Support to VHDL-AMS #237

dataludus opened this issue Oct 24, 2017 · 4 comments

Comments

@dataludus
Copy link

Hi,
I would like to know if VHDL-AMS support is on the Roadmap?

@josyb
Copy link
Contributor

josyb commented Oct 24, 2017

It currently isn't.
And as we have quite a backlog, it will take a while ...
What is your goal:
Use MyHDL to simulate (in-place) or use MyHDL to generate VHDL-AMS code to simulate in an external Simulator?

@dataludus
Copy link
Author

Thank you for the answer.
Ideally would be nice to be independent of such expensive VHDL-AMS simulators and bring this language to the open source community. Maybe 2 phases could be introduced:

Phase 1: Generate VHDL-AMS code for external simulators
Phase 2: Simulate in-place

This, of course, if phase 1 "helps" phase 2. If not, directly phase 2.

@josyb
Copy link
Contributor

josyb commented Oct 25, 2017

I think 'simulate in place' in MyHDL using the power of Python is a possibility. Generating VHDL-AMS code for use with an external $$$ commercial simulator is pointless?
Can you show a (slightly) more elaborated example than that on the Wikipedia page? It should contain both digital and analogue processes.

@dataludus
Copy link
Author

Hi @josyb,
I prepared an example file (mixed_signal_example.vhd) with a testbench (tb_top,vhd), see attachment.
The example is from a nice presentation that you can consult here.

This is a working code and produces the following output in a 100 µs simulation run:
output

We have here:

  • constants
  • digital signals
  • terminals (i.e. analog ports)
  • quantities (which requires ODE solver)
  • entity instance
  • processes with and without trigger

This list is quite complete, if this is simulable in myhdl would be great. Later functions can be introduced but I think that for python will be not difficult.

test_mixed_signal.zip

Let me know your thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants