Movatterモバイル変換


[0]ホーム

URL:


Wayback Machine
121 captures
26 Jan 2019 - 29 Dec 2025
AprMAYJun
16
201820192020
success
fail
COLLECTED BY
Organization:Internet Archive
The Internet Archive discovers and captures web pages through many different web crawls.At any given time several distinct crawls are running, some for months, and some every day or longer.View the web archive through theWayback Machine.
Content crawled via theWayback Machine Live Proxy mostly by the Save Page Now feature on web.archive.org.

Liveweb proxy is a component of Internet Archive’s wayback machine project. The liveweb proxy captures the content of a web page in real time, archives it into a ARC or WARC file and returns the ARC/WARC record back to the wayback machine to process. The recorded ARC/WARC file becomes part of the wayback machine in due course of time.
TIMESTAMPS
loading
The Wayback Machine - https://web.archive.org/web/20190516025118/https://github.com/westerndigitalcorporation/swerv_eh1
Skip to content
Sign in Sign up

/swerv_eh1

Join GitHub today

GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up
A directory of Western Digital’s RISC-V SweRV Cores
Branch:master
Clone or download

Clone with HTTPS

Use Git or checkout with SVN using the web URL.

Launching GitHub Desktop...

If nothing happens,download GitHub Desktop and try again.

Launching GitHub Desktop...

If nothing happens,download GitHub Desktop and try again.

Launching Xcode...

If nothing happens,download Xcode and try again.

Launching Visual Studio...

If nothing happens,download the GitHub extension for Visual Studio and try again.

@tmw-wdc
tmw-wdcUpdate RISC-V_SweRV_EH1_PRM.pdf
Fixed link to RISC-V Debug spec
Latest commit d9204cfMay 4, 2019

README.md

SweRV RISC-V CoreTM from Western Digital

This repository contains the SweRV CoreTM design RTL

License

By contributing to this project, you agree that your contribution is governed byApache-2.0.
Files under thetools directory may be available under a different license. Please review individual file for details.

Directory Structure

├── configs                 # Configurations Dir│   └── snapshots           # Where generated configuration files are created├── design                  # Design root dir│   ├── dbg                 #   Debugger│   ├── dec                 #   Decode, Registers and Exceptions│   ├── dmi                 #   DMI block│   ├── exu                 #   EXU (ALU/MUL/DIV)│   ├── ifu                 #   Fetch & Branch Prediction│   ├── include             │   ├── lib│   └── lsu                 #   Load/Store├── docs├── tools                   # Scripts/Makefiles└── testbench               # (Very) simple testbench    ├── asm                 #   Example assembly files    └── hex                 #   Canned demo hex files

Dependencies

  • Verilator(3.926 or later) must be installed on the system
  • If adding/removing instructions, espresso must be installed (used bytools/coredecode)

Quickstart guide

  1. Clone the repository
  2. Setup RV_ROOT to point to the path in your local filesystem
  3. Determine your configuration {optional}
  4. Run make with tools/Makefile

Configurations

SweRV can be configured by running the$RV_ROOT/configs/swerv.config script:

% $RV_ROOT/configs/swerv.config -h for detailed help options

For example to build with a DCCM of size 64 :

% $RV_ROOT/configs/swerv.config -dccm_size=64

This will update thedefault snapshot in $RV_ROOT/configs/snapshots/default/ with parameters for a 64K DCCM.

Add-snapshot=dccm64, for example, if you wish to name your build snapshotdccm64 and refer to it during the build.

This script derives the following consistent set of include files :

$RV_ROOT/configs/snapshots/default├── common_defines.vh                       # `defines for testbench or design├── defines.h                               # #defines for C/assembly headers├── pd_defines.vh                           # `defines for physical design├── perl_configs.pl                         # Perl %configs hash for scripting├── pic_ctrl_verilator_unroll.sv            # Unrolled verilog based on PIC size├── pic_map_auto.h                          # PIC memory map based on configure size└── whisper.json                            # JSON file for swerv-iss

Building a model

  1. Set the RV_ROOT environment variable to the root of the SweRV directory structure

    RV_ROOT = /path/to/swerv
    export RV_ROOT

  2. Create your configuration

    (Skip if default is sufficient)
    (Name your snapshot to distinguish it from the default. Without an explicit name, it will update/override thedefault snapshot)
    $RV_ROOT/configs/swerv.config [configuration options..] -snapshot=mybuild

    Snapshots are placed in$RV_ROOT/configs/snapshots/<snapshot name>/ directory

  3. Build withverilator:

    make -f $RV_ROOT/tools/Makefile verilator [snapshot=name]

This will create and populate the verilatorobj_dir/ in the current work dir.

Other targets supported:

vcs  (Synopsys)  irun (Cadence)

Running a simple Hello World program (verilator)

RV_ROOT = /path/to/swervexport RV_ROOTmake -f $RV_ROOT/tools/Makefile verilator-run

This will build a verilator model of SweRV with AHB-lite bus, and execute a short sequence of instructions that writes out "HELLOWORLD" to the bus.

You can re-execute using

./obj_dir/Vtb_topStart of sim------------------------------Hello World from SweRV @WDC !!------------------------------Finished : minstret = 389, mcycle = 1658End of sim

A vcd filesim.vcd is created which can be browsed by gtkwave or similar waveform viewers.trace_port.csv contains a log ofthe trace port.

The Makefile allows you to specify different assembly files from command line

make -f $RV_ROOT/tools/Makefile verilator-run ASM_TEST=my_hellow_world.s ASM_TEST_DIR=/path/to/dir

If you change only the assembly files, you do not need to rebuild verilator, just specify the target asprogram.hex :

make -f $RV_ROOT/tools/Makefile program.hex ASM_TEST=my_hello_world.s ASM_TEST_DIR=/path/to/dir./obj_dir/Vtb_top

Western Digital, the Western Digital logo, G-Technology, SanDisk, Tegile, Upthere, WD, SweRV Core, SweRV ISS, and OmniXtend are registered trademarks or trademarks of Western Digital Corporation or its affiliates in the US and/or other countries. All other marks are the property of their respective owners.

You can’t perform that action at this time.

[8]ページ先頭

©2009-2026 Movatter.jp