Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/fusesoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: run-fusesoc-targets
on: [push]

jobs:
build-openlane-sky130:
runs-on: ubuntu-latest
env:
REPO : zipcpu
VLNV : zipcpu::zipcpu
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
path: zipcpu
- run: echo "EDALIZE_LAUNCHER=el_docker" >> $GITHUB_ENV
- run: pip3 install fusesoc
- run: fusesoc library add $REPO $GITHUB_WORKSPACE/$REPO
- run: fusesoc run --target=sky130_div $VLNV

lint-verilator:
runs-on: ubuntu-latest
env:
REPO : zipcpu
VLNV : zipcpu::zipcpu
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
path: zipcpu
- run: sudo apt install verilator
- run: pip3 install fusesoc
- run: fusesoc library add $REPO $GITHUB_WORKSPACE/$REPO
- run: fusesoc run --target=lint $VLNV
8 changes: 8 additions & 0 deletions data/sky130.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set ::env(CLOCK_PORT) "i_clk"
set ::env(CLOCK_NET) $::env(CLOCK_PORT)
set ::env(GLB_RT_ADJUSTMENT) 0.15

set ::env(CLOCK_PERIOD) "19.09"
set ::env(SYNTH_MAX_FANOUT) 6
set ::env(FP_CORE_UTIL) 40
set ::env(PL_TARGET_DENSITY) [ expr ($::env(FP_CORE_UTIL)+5) / 100.0 ]
51 changes: 51 additions & 0 deletions zipcpu.core
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
CAPI=2:

name : zipcpu::zipcpu:0

filesets:
core:
files:
- rtl/cpudefs.v : {is_include_file : true}
- rtl/core/axiicache.v
- rtl/core/cpuops.v
- rtl/core/dblfetch.v
- rtl/core/dcache.v
- rtl/core/div.v
- rtl/core/idecode.v
- rtl/core/iscachable.v
- rtl/core/memops.v
- rtl/core/mpyop.v
- rtl/core/pfcache.v
- rtl/core/pipefetch.v
- rtl/core/pipemem.v
- rtl/core/prefetch.v
- rtl/core/slowmpy.v
- rtl/core/zipcpu.v
file_type : verilogSource

ex:
files:
- rtl/ex/busdelay.v
- rtl/ex/wbarbiter.v
- rtl/ex/wbdblpriarb.v
- rtl/ex/wbpriarbiter.v
file_type : verilogSource

sky130:
files: [data/sky130.tcl : {file_type : tclSource}]

targets:
default:
filesets: [core]

lint:
default_tool : verilator
filesets : [core, ex]
tools:
verilator: {mode: lint-only}
toplevel: zipcpu

sky130_div:
default_tool : openlane
filesets: [core, sky130]
toplevel : div