-
Notifications
You must be signed in to change notification settings - Fork 40
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 can I get a VGA signal in addition to HDMI? #67
Comments
Hi, I guess below : https://github.com/jmio/SaxonSoc/blob/vga_dma/hardware/scala/saxon/board/muselab/ICESugerPro/ICESugarProMinimal.scala#L170 val vgaPhy = vga.withRegisterPhy(withColorEn = false) should be good ? |
Oh! It worked. Thank you very much(^^) I've read up on withRegisterPhy(), but I'm still not sure how it works. I know it's not a good way to do it, but I can't do it in Spinal yet, so I want to do it in Verilog(^^; In this case, how can I get the signal from BmbVgaCtrl.io and then bring it to the top level? |
ahhh val vgaBus = Handle(vga.output.toIo) should be fine ? |
It worked like magic ! I would like to know what kind of rules make it work this way. |
So, SaxonSoc is kind of a paradigme on the top of SpinalHDL, it use the fiber stuff to specify things in a "distributed" manner : Basicaly, Handle{ ... } fork a new thread to execute the given chunk of code, which can do active blocking when one of the thing it try to access isn't generated yet. Then the "toIo" is a regular SpinalHDL thing to propagate io from a child component to the parent component.
Hmmm, the whole SaxonSoc stuff ^^ |
Thank you for your answer. I managed to learn "toIo" (^^; I pull out the VgaCtrl.vga.ctrl.io.frameStart using "toIo", saw the following error
I was able to get "frameStart" out, but... (jmio@35020f5#diff-b9270f6802cfabf0bd12a5a10a5754fa879eb61bc5551fcdd28310c206e47331) I guess I need to learn Scala properly (^^; |
Ahhh if you go more than one level deep into the hearchy, you have to do a : VgaCtrl.vga.ctrl.io.frameStart.pull().toIo That should work, as long that everything pulled is just for read (not for write) ^^ |
pull().toIo is handy (^^) |
Hi,
I am continuing to learn SaxonSoc's Minimal sample.
I've got VGA (HDMI) from SDRAM working.
I want to output to HDMI, but also externally extract the VGA signal for LCD.
I think SaxonSoC automatically creates the inputs and outputs with InOutWrapper.
In this case, how should I describe it?
ICESugarProMinimal.scala
The text was updated successfully, but these errors were encountered: