Giter VIP home page Giter VIP logo

Comments (11)

yrabbit avatar yrabbit commented on August 15, 2024 1

In a few minutes I will make corrections in nextpnr and the networks will be routed correctly.
In the meantime, one question: are you sure that your design will show something on the screen? I ask because I have a white screen and if you are confident in the design, then the problems with the networks are much deeper than I thought.

from apicula.

yrabbit avatar yrabbit commented on August 15, 2024 1

I looked at the generated signals:
Sorry for not changing the label, but the connection is this:

channel 0 - pin 35 LCD_LCK
channel 1 - pin 34 LCD_SYNC
channel 2 - pin 33 LCD_DEN
channel 3 - pin 40 LCD_HYNC

The apicula: LCD_CLK 9MHz, a very beautiful and uniform vertical sync signal ~ 58 frames per second.

my.mp4

Gowin option - LCD_CLK is also 9MHz, but instead of a vertical sync signal there is terror that flaps in the night.

gw.mp4

bad

My display just canโ€™t handle such tricks, so I think there are no errors in software just different displays - your display can work with such vertical sync, but mine can't. You can close the issue. ๐Ÿ˜‰

from apicula.

mitnk avatar mitnk commented on August 15, 2024

Yes, it should look like this one:

.

link

from apicula.

yrabbit avatar yrabbit commented on August 15, 2024

hmm... this is their picture, but have you tried compiling this project in the IDE?
Or just download their ready-made .fs and flash it in Tangnano9k?

https://github.com/sipeed/TangNano-9K-example/tree/main/lcd_4.3

fs

Perhaps my board just died completely.

from apicula.

yrabbit avatar yrabbit commented on August 15, 2024

If you have the apicula repository installed, then you can now assemble the example bsram-SDPB-tangnano9k.fs which is more beautiful and everything is fine with VGA and wires ๐Ÿ˜‰

cd wherever-you-installed-the-apicula-repository/apicula/examples/himbaechel
make -f Makefile.himbaechel bsram-SDPB-tangnano9k.fs

from apicula.

mitnk avatar mitnk commented on August 15, 2024

make -f Makefile.himbaechel bsram-SDPB-tangnano9k.fs

This works the the two little spirits show up on my LCD. (with a Mac with M2 chip)

have you tried compiling this project in the IDE?

Yes, I did compiled the source with Gowin IDE on Windows and it works (never used their fs file).

from apicula.

yrabbit avatar yrabbit commented on August 15, 2024

If you donโ€™t want to compile nextpnr yourself, then remove references to all unused PLL outputs like .CLKOUTP and your project will compile right now.
It's strange that in my case everything is white...

from apicula.

mitnk avatar mitnk commented on August 15, 2024

Thanks @yrabbit for the help!

I'll try compile later today using the branch you drafted.

Had a quick skim on command in Makefile.himbaechel, it involves some vh files in, but there seems no corresponding thing in my pll, not sure if it is because of the Gowin IP thing does not "linked" or not.

from apicula.

yrabbit avatar yrabbit commented on August 15, 2024

Well, apicula is designed for many boards with different quartz and therefore the PLL parameters are placed in separate files.

from apicula.

mitnk avatar mitnk commented on August 15, 2024

I tried your nextpnr branch, it works! Thanks for your time @yrabbit

I noticed there are some noise in the LCD with apicula, compared to Gowin compiled. But the fs apicula produced is good enough.

from apicula.

yrabbit avatar yrabbit commented on August 15, 2024

Oh, this is quite expected - in your first message it is indicated that the router cannot route from the PLL output to X33Y8/A6. Here the destination is not a clock input or IO pin and such networks are currently given to the general purpose router. Perhaps in the future I will complicate the dedicated router or not - I somehow donโ€™t really like using the clock as an input for the LUT ๐Ÿ˜„

from apicula.

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.