Skip to content

Commit

Permalink
Release 20211121
Browse files Browse the repository at this point in the history
* binutils 4a86d4cf37...56e8e3ab5b (1):
  > increase BIOS space by 16KB

* fontamsoc-hw 9929a05...cc679a2 (1):
  > bugfixes and improvements
      pu: fix identifier 'operands' is used before its declaration
      use ARCHBITSZ without ARCHBITSZIS*
      use dma
      dma device
      pu32-nexysvideo
      pu32-sim
      safer fifo
      bugfix uart_tx_phy
      adjustment for 16KB BIOS space increase
      socloader set a sufficiently large %ksl value; PRELDRADDR must not adjust it
      bugfix pi1r to prevent lock-up when a slave is not ready from a PINOOP
      bugfix pi1q to correctly set queuenotfull queuenotalmostfull
  nexys4ddr.bit  33efe32c05300bcb9ad5b5c55661a68b036d778a260fad1c4a6d934363c74a82
  nexysvideo.bit 5f8e6c44efb66e976a8ad842df80ef64dc6d5d8d38b7a16f8552aabf8be680ea
  xula2lx25.bit  78ca6eca07051dabe7e632a23ea979e0be2739a5a5b89df0dbeddda3cd3fb18a

* fontamsoc-sw b04f31f...b067ac4 (9):
  > implement kernel environment "BIOSend" to pass where BIOS ends in memory
  > enable additional parkpu() setup error messages; remove unnecessary ___ishw declaration
  > enable ram size check
  > use DMA engine to load the kernel
  > DMA engine driver
  > implement hexdumping of loaded kernel; enabled with macro DO_KERNEL_HEXDUMP
  > bugfix RAM device lookup
  > increase BIOS space by 16KB; and double its stack size
  > loader: set %ksl to a larger value such that PRELDRADDR does not need to

* linux 4a12328d9455...c0df9b1e6604 (5):
  > fix pu32hdd Kconfig help text
  > pu32hdd: kernel command line argument pu32hdd_usebios to force BIOS use
  > pu32hdd: prevent /sys/module/pu32hdd/parameters/* invalid values
  > check for kernel environment "BIOSend" to claim unused BIOS space
  > increase BIOS space by 16KB
  • Loading branch information
tambewilliam committed Nov 21, 2021
1 parent f7be9a2 commit 73ffeeb
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,22 @@ Flash corresponding FPGA bitstream:

Connect to serial port using 115200n8.

## Run Linux using verilator

Build executable `pu32/fontamsoc-hw/pu32-sim/sim` from top module file `pu32/fontamsoc-hw/pu32-sim/sim.v` and testbench file `pu32/fontamsoc-hw/pu32-sim/sim.cpp`:

make -f pu32/fontamsoc-hw/pu32-sim/makefile

Convert disk image to verilog .hex file to be loaded through $readmemh():

hexdump -v -e '/1 "%02x "' pu32-vmlinux.img > pu32/fontamsoc-hw/pu32-sim/img.hex

Run executable:

./pu32/fontamsoc-hw/pu32-sim/sim

Terminate executable using ctrl+c.

## Reconfigure Linux kernel

make -f pu32/makefile linux-menuconfig
Expand Down
2 changes: 1 addition & 1 deletion binutils
Submodule binutils updated 1 files
+1 −1 sim/pu32/sim-main.h
2 changes: 1 addition & 1 deletion fontamsoc-hw
Submodule fontamsoc-hw updated 68 files
+35 −35 dev/bootldr.v
+445 −0 dev/dma.v
+3 −3 dev/intctrl.v
+5 −5 dev/pi1_dcache.v
+1 −1 dev/pi1_to_axi4.v
+1 −1 dev/pi1_to_wb4.v
+2 −3 dev/pi1_upconverter.v
+1 −1 dev/pi1q_to_axi4.v
+1 −1 dev/pi1q_to_wb4.v
+279 −0 dev/sdcard/sdcard_sim_phy.v
+85 −24 dev/sdcard/sdcard_spi.v
+2 −2 dev/sdcard/sdcard_spi_phy.v
+159 −0 dev/smem.v
+3 −3 dev/uart_hw.v
+104 −0 dev/uart_sim.v
+7 −4 lib/fifo.v
+6 −3 lib/fifo_fwft.v
+5 −5 lib/perint/pi1q.v
+25 −9 lib/perint/pi1r.v
+2 −2 lib/spi/spi_master.v
+1 −3 lib/uart/uart_rx.v
+2 −3 lib/uart/uart_tx.v
+5 −3 lib/uart/uart_tx_phy.v
+237 −55 pu/dcache.comb.pu.v
+4 −0 pu/init.pu.v
+1 −1 pu/memctrl.comb.pu.v
+26 −2 pu/multipu.v
+39 −17 pu/netsandregs.pu.v
+29 −13 pu/opld.pu.v
+29 −13 pu/opldst.pu.v
+6 −1 pu/opli.pu.v
+2 −1 pu/opmuldiv.pu.v
+12 −1 pu/pu.v
+11 −5 pu32-nexys4ddr/devtbl.nexys4ddr.v
+ pu32-nexys4ddr/litedram/litedram.bin
+0 −4 pu32-nexys4ddr/litedram/litedram.c
+ pu32-nexys4ddr/litedram/litedram.elf
+1 −1 pu32-nexys4ddr/litedram/litedram.hex
+10 −10 pu32-nexys4ddr/litedram/litedram.su
+0 −29 pu32-nexys4ddr/litedram/litedram.v
+87 −51 pu32-nexys4ddr/nexys4ddr.v
+147 −0 pu32-nexysvideo/devtbl.nexysvideo.v
+167 −0 pu32-nexysvideo/litedram/hwdrvchar/hwdrvchar.h
+109 −0 pu32-nexysvideo/litedram/lfsr.h
+ pu32-nexysvideo/litedram/litedram.bin
+870 −0 pu32-nexysvideo/litedram/litedram.c
+ pu32-nexysvideo/litedram/litedram.elf
+5 −0 pu32-nexysvideo/litedram/litedram.h
+1 −0 pu32-nexysvideo/litedram/litedram.hex
+167 −0 pu32-nexysvideo/litedram/litedram.lds
+13 −0 pu32-nexysvideo/litedram/litedram.su
+19,950 −0 pu32-nexysvideo/litedram/litedram.v
+31 −0 pu32-nexysvideo/litedram/makefile
+33 −0 pu32-nexysvideo/litedram/print/print.h
+646 −0 pu32-nexysvideo/nexysvideo.v
+342 −0 pu32-nexysvideo/nexysvideo.xdc
+82 −0 pu32-nexysvideo/pll_100_to_50_100_mhz.nexysvideo.v
+9 −0 pu32-nexysvideo/vivado/makefile
+214 −0 pu32-nexysvideo/vivado/nexysvideo.xpr
+10 −0 pu32-sim/.gitignore
+151 −0 pu32-sim/devtbl.sim.v
+43 −0 pu32-sim/makefile
+39 −0 pu32-sim/sim.cpp
+425 −0 pu32-sim/sim.v
+100 −0 pu32-sim/sim_use_vcd.cpp
+10 −4 pu32-xula2lx25/devtbl.xula2lx25.v
+82 −38 pu32-xula2lx25/xula2lx25.v
+1 −1 version.v
2 changes: 1 addition & 1 deletion fontamsoc-sw
2 changes: 1 addition & 1 deletion linux
Binary file modified nexys4ddr.bit
Binary file not shown.
Binary file added nexysvideo.bit
Binary file not shown.
Binary file modified xula2lx25.bit
Binary file not shown.

0 comments on commit 73ffeeb

Please sign in to comment.