_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://freenode.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
Degi_ has joined #litex
Degi has quit [Ping timeout: 265 seconds]
Degi_ is now known as Degi
mikeK_de1soc has joined #litex
mikeK_de1soc has quit [Ping timeout: 240 seconds]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #litex
Bertl_oO is now known as Bertl_zZ
Degi_ has joined #litex
Degi has quit [Ping timeout: 268 seconds]
Degi_ is now known as Degi
chgavilana has quit [Ping timeout: 240 seconds]
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?
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #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> Sweet thanks!!
<nickoe> I build the demo.bin with: python ../../../litex/litex/soc/software/demo/demo.py --build-path=build/sim
<nickoe> and that builds a main.c somewhre in the demo path that you can modify
<mikeK_de1soc> Oh wow...
<mikeK_de1soc> Ok, so is this Riscv based??
<nickoe> yes
<mikeK_de1soc> ok....
<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
<nickoe> or that etherbone stuff
<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.
<tpb> Title: dpaste: E87NKBLM6 (at dpaste.com)
<nickoe> Right there using the DMAReader from litevideo
<nickoe> zyp: So that snippet of data dump is made with this code on the target https://dpaste.com/C7Y2HH8EZ.txt
<nickoe> Why this difference on target and sim happens, I can't explain.
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 260 seconds]
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 252 seconds]
mikeK_de1soc35 has quit [Ping timeout: 240 seconds]
pftbest has quit [Remote host closed the connection]
pftbest has joined #litex
pauluzs has joined #litex
Bertl is now known as Bertl_zZ
<nickoe> zyp: Someone in #symbiflow had the answer! :D This is happening because of the conversion from 128-bit native DRAM width to the 32-bit width requested here: https://github.com/nickoe/litex-boards/blob/f3090247db0a7d26291c39860eede3a3aa46ca64/litex_boards/targets/mars_ax3.py#L229 The solution is to add the parameter 'reverse=True' to the get port function call which will switch the order of 32-bit words when splitting a 128-bit word.
pftbest has quit [Remote host closed the connection]
pftbest has joined #litex
lf has quit [Ping timeout: 245 seconds]
lf has joined #litex