litex-hub / zephyr-on-litex-vexriscv

BSD 2-Clause "Simplified" License
12 stars 10 forks source link

Please update LiteX sources to include "Secure" VexRiscv cores #5

Closed lindemer closed 3 years ago

lindemer commented 3 years ago

I'd like to run Zephyr on the new PMP-enabled VexRiscv cores added to the LiteX sources here https://github.com/litex-hub/pythondata-cpu-vexriscv/pull/9. I was able to build and load with VexRiscv_Secure by making the following changes in this repository:

However, this doesn't work with the VexRiscv_SecureDebug CPU variant. I get the following error from Vivado:

ERROR: [Synth 8-448] named port connection 'debugReset' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16438]
ERROR: [Synth 8-448] named port connection 'debug_bus_cmd_payload_address' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16439]
ERROR: [Synth 8-448] named port connection 'debug_bus_cmd_payload_data' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16440]
ERROR: [Synth 8-448] named port connection 'debug_bus_cmd_payload_wr' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16441]
ERROR: [Synth 8-448] named port connection 'debug_bus_cmd_valid' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16442]
ERROR: [Synth 8-448] named port connection 'debug_bus_cmd_ready' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16459]
ERROR: [Synth 8-448] named port connection 'debug_bus_rsp_data' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16460]
ERROR: [Synth 8-448] named port connection 'debug_resetOut' does not exist for instance 'VexRiscv' of module 'VexRiscv' [/home/nebula/zephyr-on-litex-vexriscv/build/arty/gateware/arty.v:16461]
pawelsag commented 3 years ago

Hi @lindemer The issue should be fixed by 6665588. Could you verify if it works for you?

lindemer commented 3 years ago

It builds with secure+debug now, thanks!