Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lawrie Griffiths
    @lawrie
    It is also missing the usb_fpga_dp/dn version of the pins.
    The oled connector is completely missing.
    It should probably be used ujprog rather than openFPGALoader - https://github.com/nmigen/nmigen-boards/blob/master/nmigen_boards/ulx3s.py#L143-L146
    I am also not very convinced by how the buttons are done, and various other attributes seem to be missing or wrong.
    emard
    @emard
    looks nmigen board pinout is unfinished to be fixed later when someone tries to use them. I haven't participated in the making. Goran send board Luna for porting the USB sniffer, but we should probably load nmigen ourself, try and ask for fixing
    openFPGALoader itself is ok if someone prefers e.g. fujprog binary is not working on some platform. It can program fpga and flash, same as fujprog
    Goran Mahovlic
    @goran-mahovlic
    @Dolu1990 @lawrie wow! https://twitter.com/Ruinland_Mask/status/1321467724774535169 And I thought we are still at tetris :)
    Dolu1990
    @Dolu1990
    Cool :D
    kost
    @kost

    openFPGALoader itself is ok if someone prefers e.g. fujprog binary is not working on some platform. It can program fpga and flash, same as fujprog

    will investigate this.it stopped working with newest release?

    kost
    @kost
    user@machine:~/blink$ sudo ~/Downloads/fujprog/fujprog-v48-linux-x64 -j flash blink_12f.bit 
    ULX2S / ULX3S JTAG programmer v4.8 (git 96ebb45 built Oct  7 2020 20:34:11)
    Copyright (C) Marko Zec, EMARD, gojimmypi, kost and contributors
    Using USB cable: ULX3S FPGA 12K v3.0.8
    Erasing sectors, please wait.
    Programming: 100%  
    Completed in 41.93 seconds.
    user@machine:~/blink$ sudo ~/Downloads/fujprog/fujprog-v46-linux-x64 -j flash blink_12f.bit 
    ULX2S / ULX3S JTAG programmer v4.6 (git 0a4cc36 built Jul 22 2020 20:50:14)
    Copyright (C) Marko Zec, EMARD, gojimmypi, kost and contributors
    Using USB cable: ULX3S FPGA 12K v3.0.8
    Erasing sectors, please wait.
    Programming: 100%  
    Completed in 45.14 seconds.
    Tested released versions and they are working fine.
    kost
    @kost
    any specific platforms?
    I need to test it on?
    Lawrie Griffiths
    @lawrie
    @kost I thought @emard was saying that openFPGALoader was an alternative IF fujprog was not working on a particular platform at any time. I didn't think he meant it was not currently working. I would prefer nmigen changed to use fujprog. It is not particularly easy to switch between using one or the other.
    emard
    @emard
    @kost @lawrie Right fujprog could be working ok, but this nmigen source author maybe didn't know of fujprog, or for his multiplatform project he prefers to use the same tool (openFPGALoader) for as many platforms possible.
    When flashing fujprog is slightly faster than openFPGALoader
    kost
    @kost
    thanks on details. Just wanted to see if there is any bug i'm not aware. As I have spend quite some time on multiplatform support: from Windows, Linux, Mac and BSD.
    Goran Mahovlic
    @goran-mahovlic
    We have added few USB/OV7670 extensions to e-radionica https://e-radionica.com/en/catalogsearch/result/?q=ulx3s
    still no pictures, but will be there
    Torfinn Ingolfsen
    @tingox_gitlab

    this might show my lack of verilog knowledge, but still. In the example https://github.com/lawrie/ulx3s_cpm_z80 in the file Microcomputer.v I find this little snippet:

       // ===============================================================
       // System Clock generation
       // ===============================================================
       wire clk125, clk;
    
       pll pll_i (
         .clkin(clk25_mhz),
         .clkout0(clk125),
         .clkout1(clk)
       );

    But no further definition in any file related to this project. Is this some kind of built in primitive for verilog? (I couldn't find a description in Lattice ecp5 documents, so I don't think it comes from there). How is one supposed to figure out what 'clk125' and 'clk' are? (ok, I might guess that clk125 is 125 MHz, but that is just a guess).

    Lawrie Griffiths
    @lawrie
    Torfinn Ingolfsen
    @tingox_gitlab
    never mind, I just found the pll.v file that comes with the project blush
    Paul Ruiz
    @pnru_gitlab
    I wrote a simple assembler for the Oberon RISC5 cpu and with that some simple test programs for the Oberon rom:
    https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/as5.c
    https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/test.s
    To my surprise, the cache does not seem to read from sdram at all, and just keeps showing the pre-loaded content. A small anomaly every 64 words suggests that it does recognize cache lines and updates the tag for the line. This overall outcome surprised me: I had expected it so see it read garbage or maybe data with a location offset, etc.
    Then I configured a simple 99K system with the cache + sdram (and a bit of rom and bram for a monitor). With that system the cache + sdram mostly works, there is some data corruption that suggests my timing is not quite right but otherwise results are as expected.
    Krome Plasma
    @kromulan
    Where is ULX3s sold ? I mean where can i buy the board ECP5 85F?
    Ed Bordin
    @edbordin
    you can preorder from the next batch of 85F on crowdsupply or mouser. I'm not sure if Radiona sells through other channels too
    Goran Mahovlic
    @goran-mahovlic
    @kromulan I have 85F prepared for CrowdSupply, but currently waiting for some papers from them.
    And currently no other chanels for 85F
    emard
    @emard
    @pnru_gitlab hey cool small source of assembler!! Obviously risc5 cpu presents some bus transitions that confuse the cache. Generally it is possible that cache and ram controller have a bug which doesn't manifest when used on one soft-core because it has always the same access pattern, while on other core the bug may manifest
    Charles Perkins
    @charlesap
    @pnru_gitlab An excellent little assembler! I will now abandon my efforts to make one in Python because this one does everything I would need.
    emard
    @emard
    ULX3S v3.1.4 project is out https://github.com/emard/ulx3s maybe you alread know, but I just tried and it works, small vt100 onboard editor for esp32 https://github.com/emard/esp32ecp5#onboard-editor
    mara
    @vmedea
    that could definitely come in useful ! at least with the memory to spare
    Andrew Nesbit
    @ullbeking_gitlab
    :'-( :'-( :'-( Waaaahhhh!! I was SO EXCITED when this was being lobbied for and I was pledging for it. Then it was finally released and guess what, I am completely and utterly broke, and there's no way I can rationalize buying this now :'-( I thinkit will make it all the more sweet when I finally DO save up some money and finally am able to buy it myself. It will mean so much more to me then.
    emard
    @emard
    @ullbeking_gitlab production really took much time. If I click "mouser" at https://kitspace.org/boards/github.com/emard/ulx3s/ parts for 85F without PCB cost 93$. Design goal asked by FER uni was that 200-500 assembled boards cost approx equal as parts from one set from mouser For student buying at FER shop, less than 100$ per board. Price at CS is only exceeded by administrative amount, but it is still very tight, Goran must work really hard to get any income from this - if there is more than 8% of faulty boards from production it would mean loss of investition. Even I don't have latest v3.0.8 85F because Goran sent all to CS distribution. It is always unsure will new v3.1.4 or higher prototype, when assembled, work as expected.
    Goran Mahovlic
    @goran-mahovlic
    I am trying to organize production with e-radionica for 12F without some chips - like ADC/I2C/RTC that version would be in the e-radionica store so we would not pay for extra shipping/export/import/fees so it should be more affordable.
    One 100 pcs. production run is requested from Watterot - but we are waiting really long time for them. I also do not think it will be cheaper, it will only have 64Mb SDRAM - as the first batch they did...
    Goran Mahovlic
    @goran-mahovlic
    As for Crowd Supply - in after sale I really lowered all prices for them - as in campaign (after lots of negotiations) they offered good fee - almost too good, so they did not have any profit on campaign boards. Specially after sending all those "free" connectors in separate shipment.
    Michael Engel
    @michaelengel
    Yeah, the separate connectors (which came in a rather large package) were a bit of a surprise...
    Paul Ruiz
    @pnru_gitlab

    I've now got the cache to work reliably for the 99K system:
    https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/cache.v
    https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/sdram.v

    NextPNR reports an Fmax of ~65MHz, but this seems wrong: I've tested with the cache/sdram running at 90MHz and 130MHz (CPU clocked at 25MHz) and both work just fine. I've not drilled down to the bottom of this, but probably NextPNR sees a limit on a signal that is stable for more than one clock.

    I was stuck for a long time on something that appears to be a Yosys/NextPNR bug. If I'm not mistaken, this does not work:

    reg   [0:SETS-1] dirty[0:WAYS-1];
    dirty[way][set] <= dirty[way][set] | wr;

    (appears to always set bit 15 regardless of the value of 'set') and this does work as expected:

    reg   [SETS-1:0] dirty[0:WAYS-1];
    dirty[way][set] <= dirty[way][set] | wr;

    (note reversal of bit range).

    Paul Ruiz
    @pnru_gitlab
    I hope to get back to the Oberonstation next week.
    David Shah
    @daveshah1
    @pnru_gitlab the indexing issue sounds like a Yosys issue to me
    as for the timing, that is because the FPGAs are turning out to be a lot better than Lattice specify these days
    -6 and -8 speed grades are essentially indistinguishable in practice
    Paul Ruiz
    @pnru_gitlab

    @daveshah1 The problematic line appears to be:
    https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/cache.v#L144
    If I change that to a posedge the calculated Fmax goes up to ~130MHz. Originally that line was just an assign, but that left occasional data corruption. If I just register sdr_ctr[0] on negedge, Fmax is also calculated to about 130MHz.

    Maybe the circuit is helped by the block ram being sequentially accessed and staying in a single row; this may lead to an access time well less than 10ns ??

    emard
    @emard
    I made ESP32 micropython DCF77 fake sender which doesn't work :) https://github.com/emard/DCF77/tree/master/micropython I tried best I can and signal on the scope looks as it should be. But clocks don't recognize the carrier. I don't know do I have wrong clocks or too noisy environment so it can't work. If anyone sees anything wrong in my code let me know
    Thomas Hornschuh
    @ThomasHornschuh
    HI, I have a question about MASTER_SPI_PORT=ENABLE or DISABLE. Diamond tells me that I can only access flash pins from Bitstream with set to DISABLE. This is also stated on the comment in the standard .lpf file. With ENABLE it states "write to FLASH possible any time from JTAG:" . Does it mean, that after Bitstream load with set to DISABLE further FTP put over ESP32 will fail?
    mara
    @vmedea
    in general no, no matter what the bitstream does (as long as it keeps wifi_en=1 so that the ESP32 remains on) it doesn't prevent the ESP32 from flashing or programming
    Simon Thornington
    @sthornington
    is there an example of handling a button press on the esp32 in micropython, given the passthru bitstream? I am having trouble searching for this
    emard
    @emard
    @ThomasHornschuh It actually means that while bitstream is running, it is possible to write flash without interrupting of the bitstream for special applications which need minimal downtime. currently esp32ecp5 will always unload bitstream but you can disable this in the source.