First version of the Vproc co-simulator. This repo will be used to lern how to use it
  • VHDL 26.3%
  • Verilog 22.9%
  • C 20.5%
  • C++ 13.6%
  • Makefile 6.6%
  • Other 10.1%
Find a file
2024-12-15 11:32:47 +00:00
bfm Fixes for AXI BFM when running on Linux 2024-10-15 16:11:27 +01:00
code Added more configurability to VerilatorSimCtrl 2024-12-15 11:32:47 +00:00
doc Dropped support for Verilog PLI to use VPI only for those simulators that use it. 2024-10-14 13:41:02 +01:00
examples/riscv Updated rv32 model to v 1.1.2 2024-11-05 13:31:59 +00:00
python Dropped support for Verilog PLI to use VPI only for those simulators that use it. 2024-10-14 13:41:02 +01:00
test Added Verilator Simulation Control HDL code and updates to software and make files 2024-12-05 13:00:46 +00:00
unsupported Moved all make files for now unsupported simulators to an unsupported/ directory 2024-01-17 14:30:47 +00:00
verilator Added more configurability to VerilatorSimCtrl 2024-12-15 11:32:47 +00:00
extradefs.v Added configurability option to define VProc's timescale externally. Must define VProcTimeScale as the `timescale definition, and (for test files) NSEC value for the configured timescale for 1 nanosecond 2024-04-24 09:01:23 +01:00
f_VProc.sv Made Verilog and SystemVerilog VProc HDL common source 2024-04-22 16:28:18 +01:00
f_VProc.v Adding burst functionality with first/last byte enables, and byte oriented burst transfers. 2024-04-28 15:20:52 +01:00
f_vproc.vhd Adding burst functionality with first/last byte enables, and byte oriented burst transfers. 2024-04-28 15:20:52 +01:00
f_vproc_pkg.vhd Added parameters to HDL to configure Interrupt input width Node input width and burst address increment. Also added support for vector IRQ on changes to Interrupt input port. 2024-01-17 14:38:11 +00:00
f_vproc_pkg_ghdl.vhd Corrected creation date 2024-04-22 11:33:38 +01:00
f_vproc_pkg_nvc.vhd Corrected creation date 2024-04-22 11:33:38 +01:00
LICENSE Initial commit 2016-09-29 10:01:18 +01:00
README.md Update README.md 2024-10-14 13:47:01 +01:00
vprocdefs.vh Adding burst functionality with first/last byte enables, and byte oriented burst transfers. 2024-04-28 15:20:52 +01:00
vprocdpi.vh Added support for Xilinx Vivado Xsim simulator using SystemVerilog and DPI-C interface. 2024-04-07 12:48:59 +01:00

VProc

Virtual processor co-simulation and co-design element for Verilog and VHDL environment.

Allows native C/C++ programs or Python scripts to co-simulate with Verilog, SystemVerilog or VHDL simulations, with a memory mapped read/write interface and support to model interrupts. This enables virtually limitless possibilities for control of a simulation from C/C++ or Python programs, running as if on the instantiated virtual processor in the logic simulation. User code could be as simple as linear test program to drive pattrens on the bus, software models of processors and other SoC components, or embedded software, amongst other things. The software running on the virtual processor can be debugged using such standard tools such as gdb and related IDE applications such as Eclipse.

Currently supported simulators:

  • Questa : Verilog with VPI, VHDL with FLI
  • Icarus : Verilog with VPI
  • Vivado Xsim : SystemVerilog with DPI-C
  • Verilator : SystemVerilog with DPI-C
  • NVC : VHDL with VHPIDIRECT
  • GHDL : VHDL with VHPIDIRECT

More information can be found in the documentation located in doc/VProc.pdf and related articles on virtual processors, co-simulation and VProc can be found here and here to complement the information in the manual.


VProc HDL component

The diagram below shows the VProc component that's instantiated in the HDL.


VProc stack with Python

The diagram below shows the stack for node 0 from the HDL environment (Verilog in this diagram) through to the user code—in this case, python. For the C/C++ environment, the stack tops out at VUserMain0() as the user code entry point, with any additional user hiearchy on top of this.

Copyright © 2024 Simon Southwell. All rights reserved.