IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

README.md 1.92 KB
Newer Older
Alfredo's avatar
Alfredo committed
1
# riscv_vm
Alfredo's avatar
Alfredo committed
2
The OpenHW Group's RISC-V Virtual Machine (riscv_vm) is intended for anyone wanting to study, configure as-preferred, modify, implement or release hardware based the RISC-V Instruction Set Architecture. The VM is preconfigured for RISC-V HW development.
Alfredo's avatar
Alfredo committed
3
4
5
   * RISC-V SW tool chain using the Eclipse-IDE
   * RISC-V Imperas OVPSim model
   * RISC-V Verilator model
Alfredo's avatar
Alfredo committed
6
The files in the ~/bin directory are used to create the VM Linux image after Ubuntu 18.04LT has been installed. The VM'sminimal configuration is 2CPU/4G-RAM/20GB-DISK with USB 2.0 enabled
Alfredo's avatar
Alfredo committed
7
8
To donwload a protable *.osa appliance file, go to: [RISCV_VM *.OVA image on Google Drive](https://drive.google.com/drive/folders/18njYttFpczl-CrHkZ7HQ-lLf-w2fBcL9)
**Note that the virtual machine userID /password is _user/abc123_**
9
 
Alfredo's avatar
Alfredo committed
10
## Importing VM into VirtualBox on Windows10 host
11
The instructions to install and run are:
Alfredo's avatar
Alfredo committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
1. Open a Windows Command-line prompt with Admin privileges:
   * Press the Windows-Start key
   * write cmd to search for the program
   * right-click on CMD icon
   * select “Run as administrator”
2. Download and run the installed batch file available in this repository: 
   - [riscv_vm Windows10 Install script](https://github.com/openhwgroup/riscv_vm/blob/master/riscv_vm_win10_install.bat)
6. Import the *.OVA “appliance” into VirtualBox
7. Start the VcXsrv client
8. Start git-bash to run the following:
   - Start the VM from the git-bash in head-less mode (your path may be different):
  ```
        <PROMPT$>/c/bta_cadtree/VirtualBox/vb6_0_10/VBoxManage startvm riscv_vm2 --type headless
        <PROMPT$>export DISPLAY=localhost:0.0
  ```
9. SSH into the VM using the command:
   - ssh -Yv user@<_IP of riscv_vm2_>
   - In my case that is: ssh -Yv user@192.168.56.101
30

Alfredo's avatar
Alfredo committed
31
32
33
## Importing VM into VirtualBox on Linux host
The instructions to install and run are:
   * TBD
34
 
Alfredo's avatar
Alfredo committed
35
36
37
## Importing VM into VirtualBox on MacOS host
The instructions to install and run are:
   * TBD