Skip to content
Draft
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
8 changes: 4 additions & 4 deletions hw/top_chip/chip_mocha_genesys2.core
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ targets:

synth:
<<: *default_target
default_tool: vivado
flow: synth
flow_options:
tool: vivado
part: "xc7k325tffg900-2" # Genesys 2 with K325T
filesets_append:
- files_constraints
toplevel: chip_mocha_genesys2
parameters:
- BootRomInitFile
tools:
vivado:
part: "xc7k325tffg900-2" # Genesys 2 with K325T
4 changes: 3 additions & 1 deletion hw/top_chip/dv/top_chip_sim.core
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ targets:
toplevel: tb
# This is required as DVSim always expects a scr file, but in practice we are only running
# fusesoc up to the point it generates the filelist file.
default_tool: vcs
flow: sim
flow_options:
tool: vcs

parameters:
INST_SIM_SRAM:
Expand Down
48 changes: 19 additions & 29 deletions hw/top_chip/dv/verilator/top_chip_verilator.core
Original file line number Diff line number Diff line change
Expand Up @@ -43,38 +43,28 @@ targets:
<<: *default_target
parameters:
- INST_SIM_SRAM=true
default_tool: verilator
flow: sim
flow_options:
tool: verilator
mode: cc
verilator_options:
# Disabling tracing reduces compile times but doesn't have a
# huge influence on runtime performance.
- '--trace'
- '--trace-fst' # this requires -DVM_TRACE_FMT_FST in CFLAGS below!
- '--trace-structs'
- '--trace-params'
- '--trace-max-array 1024'
- '-CFLAGS "-Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=top_chip_verilator"'
- '-LDFLAGS "-pthread -lutil -lelf"'
- '--assert'
- '-Wall'
# RAM primitives wider than 64bit (required for ECC) fail to build in
# Verilator without increasing the unroll count (see Verilator#1266)
- "--unroll-count 72"
filesets_append:
- files_verilator
toplevel: top_chip_verilator
tools:
verilator:
mode: cc
verilator_options:
# Disabling tracing reduces compile times but doesn't have a
# huge influence on runtime performance.
- '--trace'
- '--trace-fst' # this requires -DVM_TRACE_FMT_FST in CFLAGS below!
- '--trace-structs'
- '--trace-params'
- '--trace-max-array 1024'
- '-CFLAGS "-Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=top_chip_verilator"'
- '-LDFLAGS "-pthread -lutil -lelf"'
- '--assert'
- '-Wall'
# RAM primitives wider than 64bit (required for ECC) fail to build in
# Verilator without increasing the unroll count (see Verilator#1266)
- "--unroll-count 72"

lint:
<<: *default_target
default_tool: verilator
filesets_append:
- files_verilator
toplevel: top_chip_verilator
tools:
verilator:
mode: lint-only

parameters:
INST_SIM_SRAM:
Expand Down
42 changes: 22 additions & 20 deletions hw/top_chip/top_chip_system.core
Original file line number Diff line number Diff line change
Expand Up @@ -45,34 +45,36 @@ targets:
toplevel: top_chip_system

sim:
default_tool: verilator
flow: sim
flow_options:
tool: verilator
filesets:
- files_rtl
toplevel: top_chip_system

lint:
<<: *default_target
default_tool: verilator
flow: lint
flow_options:
tool: verilator
mode: lint-only
verilator_options:
# Disabling tracing reduces compile times but doesn't have a
# huge influence on runtime performance.
- '--trace'
- '--trace-fst' # this requires -DVM_TRACE_FMT_FST in CFLAGS below!
- '--trace-structs'
- '--trace-params'
- '--trace-max-array 1024'
- '-CFLAGS "-Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=top_chip_verilator"'
- '-LDFLAGS "-pthread -lutil -lelf"'
- '--assert'
- '-Wall'
# RAM primitives wider than 64bit (required for ECC) fail to build in
# Verilator without increasing the unroll count (see Verilator#1266)
- "--unroll-count 72"
parameters:
- SYNTHESIS=true
tools:
verilator:
mode: lint-only
verilator_options:
# Disabling tracing reduces compile times but doesn't have a
# huge influence on runtime performance.
- '--trace'
- '--trace-fst' # this requires -DVM_TRACE_FMT_FST in CFLAGS below!
- '--trace-structs'
- '--trace-params'
- '--trace-max-array 1024'
- '-CFLAGS "-Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=top_chip_verilator"'
- '-LDFLAGS "-pthread -lutil -lelf"'
- '--assert'
- '-Wall'
# RAM primitives wider than 64bit (required for ECC) fail to build in
# Verilator without increasing the unroll count (see Verilator#1266)
- "--unroll-count 72"

parameters:
SYNTHESIS:
Expand Down
Loading