LiteX
By comparing against other waveforms, I have gradually figured out what is needed. Next, what we need is the memory map. I modified the memory map as follows. [ { "base": "0x0000_0000", "size": "0x0002_0000", "attr": {"R": 1, "W": 0, "X": …
Continuing with LiteX. It looks like accesses to the UART address are not going through correctly. First, checking where the .data section is located, Disassembly of section .data: 10000000 <s_flush_cpu_dcache>: 10000000: 0d60 .2byte 0xd60 10000002: 0000 .2by</s_flush_cpu_dcache>…
For connecting the PLIC, I'm just wiring up buses one after another. It compiles now, but the simulation still stops, so I need to look at the waveforms and analyze it... [serial2console] loaded (0x55e25615cef0) [gmii_ethernet] loaded (0x5…
For the first time in a while, I am connecting my own CPU core to LiteX and running simulations. The FPGA environment is coming together somehow, so I figure that if I can confirm the BIOS runs in simulation, things will be more or less fi…
For the first time in a while, I am connecting my own CPU core to LiteX and running simulations. The FPGA environment is coming together somehow, so I figure that if I can confirm the BIOS runs in simulation, things will be more or less fi…
For the first time in a while, I am connecting my own CPU core to LiteX and running simulations. The FPGA environment is coming together somehow, so I figure that if I can confirm the BIOS runs in simulation, things will be more or less fi…
For the first time in a while, I've connected my own CPU core to LiteX and am working on simulation. The FPGA environment is slowly coming together, so I figure that if I can confirm the BIOS runs in simulation, things will be more or less…
The LiteX simulation environment is now in fairly good shape, so I'm looking into an environment for checking operation on real hardware. One option is to use the litex-bords repository, but I haven't been able to use that with my own CPU …
In logic synthesis with LiteX, the design doesn't fit on the target FPGA board, so I analyzed the area. The graph below shows only the LUT area, which is where the problem lies. The LSU and the BRU take up quite a lot of area. I don't real…
I've been investigating what to do to load and run a program of my choice when running LiteX. Looking at Linux-on-Litex-Vexriscv, I get the feeling that loading it somewhere and running it from there is the way to go. litex_sim --help | gr…
The CHANGES are as follows. Judging from them, there don't seem to be any major changes. I'll have to update my own CPU and try it out. [> Fixed -------- - liteeth/arp : Fixed response on table update. - litesata/us(p)sataphy : Fixed data_…
Notes from using LiteX's synthesis environment to estimate the operating frequency and size of various cores. With tag 2023.8, Rocket could no longer be synthesized. VexRiscv python3 -m litex_boards.targets.digilent_zedboard --cpu-type=vex…
Until now, the LiteX support for my own CPU has targeted only the smallest configuration, but on closer inspection it turns out that LiteX lets you specify a CPU configuration and synthesize it. For example, in the case of VexRiscv, you ca…
Even with last time's test program, memset() and memcpy() just seemed far too slow, so I decided to check the waveforms to be sure. $ litex_sim --cpu-type=scariv --output scariv_build --trace --trace-fst --trace-end 100000000000 --integrat…
This time, let's put an app that I wrote myself, rather than the demo app, into the LiteX SoC environment for my own CPU. Although I call it an app, it's just a test that simply reads and writes memory. I created a test that only writes to…
Last time, I also applied an app to VexRiscv and got the donut program running. This time, I'd like to apply it to my own CPU. After some investigation, I found that VexRiscv and my own CPU have different memory maps, so the program has to…
I've ended up with so many LiteX environments scattered around my machine that I can't tell which is which anymore, so I'm going to build a Docker environment and stuff everything into it. Let's start with writing the Dockerfile. Basically…
I've been investigating what to do to load and run a program of my choice when running LiteX. For now, there were demo files, so I'd like to try them out. github.com First, simply build VexRiscv. To do this, run the following command. lite…
For the first time in a while, I've connected my own CPU core to LiteX and am working on simulation. The FPGA environment is slowly coming together, so I figure that if I can confirm the BIOS runs in simulation, things will be more or less…
For the first time in a while, I am connecting my own CPU core to LiteX and running simulations. The FPGA environment is coming together somehow, so I figure that if I can confirm the BIOS runs in simulation, things will be more or less fi…
For the first time in a while, I am connecting my own CPU core to LiteX and running simulations. The FPGA environment is coming together somehow, so I figure that if I can confirm the BIOS runs in simulation, things will be more or less fi…
LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com There is not much information about the FPGA synthesis environment in LiteX, so I'd li…
LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com There is not much information about the FPGA synthesis environment in LiteX, so I'd li…
On the problem of the serial console not responding: while dumping an FST, I had mistakenly put in an fst dump() call last time, which made everything extremely slow. After removing the dump(), I can now type on the keyboard while capturin…
On the problem of the serial console not responding: while dumping an FST, I had mistakenly put in an fst dump() call last time, which made everything extremely slow. After removing the dump(), I can now type on the keyboard while capturin…
The serial console isn't responding. When I try to type on the keyboard while dumping an FST, the simulation slows down a lot, and on top of that the keyboard input is still not accepted. I need to think a bit more about how to debug this.…
First, the design defines the following interface as the serial console. //------------------------------------------------------------------------------ // Module //-------------------------------------------------------------------------…
I'm trying out a PLIC implementation. I will instantiate a PLIC in the SoC environment of my own CPU and connect it. For the PLIC implementation, I plan to grab an open-source one from somewhere. github.com For now, I connect it as follows…
Continuing with LiteX. I've managed to get the BIOS to boot on LiteX somehow, but now keyboard input isn't accepted. This is probably because I haven't properly connected the interrupts. How do the other designs in LiteX do it? First, let'…
Continuing with LiteX. I had a problem where writes weren't reaching the SoC hierarchy, and it turned out that I hadn't connected the AXI correctly. After fixing the AXI arbitration, I finally got as far as the BIOS booting. I've reached t…