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

How to use in Spartan 6? How to translate to Verilog? #24

Open
TheSonders opened this issue Apr 2, 2021 · 7 comments
Open

How to use in Spartan 6? How to translate to Verilog? #24

TheSonders opened this issue Apr 2, 2021 · 7 comments
Assignees

Comments

@TheSonders
Copy link

I'm trying to use this code in a Spartan 6 board, however ISE14.7 does not support System Verilog.
Vivado supports SV but not Spartan 6 family :-(
I tried to translate this code to Verilog but packed assignaments like this get me confussed and don't know how to do it.
Any clue to translate it? Is there any tool to convert it to Verilog? Thanks.

logic [23:0] audio_sample_word_packet [3:0] [1:0];...

logic [23:0] audio_sample_word_buffer [1:0] [3:0] [1:0];...

audio_sample_word_packet <= audio_sample_word_buffer[!sample_buffer_current];

@sameer
Copy link
Member

sameer commented Apr 2, 2021 via email

sameer added a commit that referenced this issue Apr 2, 2021
@sameer
Copy link
Member

sameer commented Apr 2, 2021

Please give https://github.com/hdl-util/hdmi/tree/v1.2.1-verilog a try. I've converted to Verilog using sv2v and made sure it can compile.

Let me know if you run into any problems!

@sameer sameer self-assigned this Apr 2, 2021
@TheSonders
Copy link
Author

Thanks a lot! I'm on it right now!
After solving small issues (mixing of blocking and non-blocking assignments) and the problem of $clog2 in localparams...
I'm trying to solve the serializer (not posible in Verilog assign both on rise and fall edges)
Let's see if I can use the IP instantiated version of the SV code.

@sameer
Copy link
Member

sameer commented Apr 3, 2021 via email

@TheSonders
Copy link
Author

Sorry for taking so long. Bad news! I've tried several ways but can't get any HDMI image. I've solved som issues due the translation, and even used other serializers with the Spartan6 primitives.
As result: a few warnings, all signals routed, all constraints met, perfect timing report and bitfile created; but no image or sound.
I give up. Thanks a lot for your effort!

@sameer
Copy link
Member

sameer commented Apr 21, 2021 via email

@TheSonders
Copy link
Author

Sure! Thanks a lot!
https://github.com/TheSonders/Hdmi

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