captain_morgan has quit [Quit: Ping timeout (120 seconds)]
captain_morgan has joined #litex
pftbest has quit [Quit: Leaving...]
kgugala has joined #litex
kgugala_ has quit [Read error: Connection reset by peer]
kgugala has quit [Quit: -a- Connection Timed Out]
kgugala has joined #litex
d_olex has joined #litex
<nickoe>
mmm, is this a bad idea to try to make the clock of a module slower? self.comb += ClockSignal().eq(clock_domain.clk)
<nickoe>
Vsim just appears to never complete.
<nickoe>
_florent_: Is there or was there a bug in litedram that could cause the LiteDRAMDMAReader to act differently in simulation and hardware? https://i.snipboard.io/geh8WT.jpg I am talking about the mydma_dma_sink_sink_ready signal. In the simulation it ready'es a lot to fill its fifo, but on hardware it does not and it will have those odd ready signals multiple clock cylces with a low cycle.
<nickoe>
I am currently on litedram 080948d49c0cfe3fa8e10dcea1ae123bbe3949ac which is a bit old. I have not tested my design on latest of everything yet.
pftbest has joined #litex
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 268 seconds]
pftbest has quit [Quit: Leaving...]
pftbest has joined #litex
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 252 seconds]
mikeK_de1soc has joined #litex
<mikeK_de1soc>
Hi Nickoe: Can I ask you a questions about litex?
<nickoe>
mikeK_de1soc: you can try, but I am no expert
<mikeK_de1soc>
Thanks. Like I said I am still learning, IS there an example of using the PWM function that Florent has in some of his example code?
<mikeK_de1soc>
So for example I am looking through the Litex-boards examples, and I found something under LEDs but it looks like you can only use the PWM through the CSR's from the Risc-V cpu?
<mikeK_de1soc>
The question is not confusing I hope..
<mikeK_de1soc>
Bascally How can I access the pins in Litex-Boards?
<mikeK_de1soc>
Maybe that's too loaded of a question...
<mikeK_de1soc>
Sorry.
<mikeK_de1soc>
Lets TRy this simple Question How Do I send a Link to a Line of the Code, From Github for example?
<mikeK_de1soc>
Here's the Code I am working with... I just need to add the PPM modulation Here instead of the PWM?? (This is my Ultimate Goal, To send PPM signals to an RC controller instead of PWM signals)
Bertl_zZ is now known as Bertl
<nickoe>
mikeK_de1soc: You can clik the line number or multiple to get a direct link range that is highlighted
<mikeK_de1soc>
OK thanks!
<nickoe>
that CSRStorage is available as a register you can write or read to from the cpu
<nickoe>
0x82005800 : 0x00000000 leds_out
<nickoe>
litex_cli --regs | grep led
<nickoe>
in my design
<mikeK_de1soc>
Ok thanks... IS there a Wiki example or documented somewhere?
<nickoe>
and that add_pwm function is just exactly that, an example on how to use the PWM() module
<mikeK_de1soc>
Right now my Linux-on-litex-vexriscv build envrioment is broken.. :(
<nickoe>
I have mostly been using the bare metal cpu thing, not the linux one
<mikeK_de1soc>
ah ok..
<nickoe>
What hardware do you have?
<mikeK_de1soc>
Altera... DE10NAno and the DE1Soc
<mikeK_de1soc>
hence in the name... :)
<nickoe>
ok
<mikeK_de1soc>
Do you have an example of a Bare metal CPU?
<mikeK_de1soc>
A wiki if you will??
<nickoe>
I think you can add some other CSRStorage things to attach to the args of add_pwm and you can control the pwm from the cpu
<mikeK_de1soc>
I am driking from the firehose here.. :)
<nickoe>
essentially the same as you do for linux, just that you don't run linux
<mikeK_de1soc>
so you still need the Linux-on-litex-vexriscv
<nickoe>
So if you want to implement the PPM protocol, I guess you want to create your own simple PPM module and give it some registers you can control from sw
<nickoe>
no, I am not using linux-on-llitex-vexriscv
<nickoe>
Just using the example in litex-boards directly
<mikeK_de1soc>
oh ok...
<mikeK_de1soc>
that's exactly what I am doing, I took the PWM code, then I am changing it to the PPM, in Verilog. (well python to verilog)
<mikeK_de1soc>
where I get a little confused is where the Gateware stops and the software starts..
<mikeK_de1soc>
the links you sent is a great start... more reading!! :)
<nickoe>
well, the python is essentially gateware
<nickoe>
as it generates verilog
<nickoe>
if you add --csr-csv=csr.csv when building your target, you can see what registers you can acccess
<nickoe>
or, I call them registers, but they are the CSRStorage things
<mikeK_de1soc>
AH ok...
<nickoe>
That can be wired up to signals in the gateware but are addressable from the CPU
<mikeK_de1soc>
Yes, I remember now. still learning, The only down side right now with the Terasic boards, is that the Ethernet is connected to the CPU side on the ARM processor PART in the FPGA IC.
<nickoe>
Is it possible to use that CPU in the litex soc project or is that not supported?
<mikeK_de1soc>
well.. it's complicated... No from my limited understanding..
mikeK_de1soc has quit [Quit: Connection closed]
mikeK_de1soc has joined #litex
<mikeK_de1soc>
it's not supported.. So long story, within the Quartus SOC builder you create a SOC system with the Canned Software, But it would be possible if you have a Wishbone to to AXI bus bridge..
mikeK_de1soc has quit [Quit: Connection closed]
mikeK_de1soc has joined #litex
mikeK_de1soc has quit [Ping timeout: 240 seconds]
<nickoe>
_florent_: I tried it with latest litedram and it appears to have similar symptoms. I wonder why my sim is different to my hw.
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 246 seconds]
kgugala has joined #litex
<nickoe>
zyp: Is it possible for the ClockDomainCrossing to overflow?
<zyp>
not if flow control is implemented
kgugala_ has quit [Ping timeout: 240 seconds]
mikeK_de1soc35 has joined #litex
<nickoe>
mmm!!!
<nickoe>
I think it is sort of an endianess problem
<nickoe>
I get 4x32 bits from the DMA thing, but I get the lowest address last.