Skip to content

Commit 7dfb353

Browse files
[fusesoc] SPI device DPI moved to own core
This allows it to be imported separately into another repository (like CHERI Mocha).
1 parent e587f0e commit 7dfb353

2 files changed

Lines changed: 29 additions & 9 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
CAPI=2:
2+
# Copyright lowRISC contributors.
3+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
4+
# SPDX-License-Identifier: Apache-2.0
5+
name: "lowrisc:sonata:spidevicedpi"
6+
description: "SPI device DPI model"
7+
8+
filesets:
9+
files_rtl:
10+
files:
11+
- spidevicedpi.sv: { file_type: systemVerilogSource }
12+
13+
files_c:
14+
files:
15+
- spidevicedpi.cc: { file_type: cppSource }
16+
- spidevicedpi.hh: { file_type: cppSource, is_include_file: true }
17+
- spi_flash.cc: { file_type: cppSource }
18+
- spi_flash.hh: { file_type: cppSource, is_include_file: true }
19+
- spi_lcd.cc: { file_type: cppSource }
20+
- spi_lcd.hh: { file_type: cppSource, is_include_file: true }
21+
- spi_microsd.cc: { file_type: cppSource }
22+
- spi_microsd.hh: { file_type: cppSource, is_include_file: true }
23+
24+
targets:
25+
default:
26+
filesets:
27+
- files_rtl
28+
- files_c

sonata.core

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ filesets:
3232
- lowrisc:dv_dpi_sv:uartdpi:0.1
3333
- lowrisc:dv_dpi_c:usbdpi:0.1
3434
- lowrisc:dv_dpi_sv:usbdpi:0.1
35+
- lowrisc:sonata:spidevicedpi
3536
files:
3637
- rtl/system/rs485_ctrl.sv: { file_type: systemVerilogSource }
3738
- dv/dpi/i2cdpi/i2c_lsm9ds1.cc: { file_type: cppSource }
@@ -45,15 +46,6 @@ filesets:
4546
- dv/dpi/i2cdpi/i2cdpi.sv: { file_type: systemVerilogSource }
4647
- dv/dpi/i2cdpi/i2cdpi.cc: { file_type: cppSource }
4748
- dv/dpi/i2cdpi/i2cdpi.hh: { file_type: cppSource, is_include_file: true }
48-
- dv/dpi/spidevicedpi/spidevicedpi.sv: { file_type: systemVerilogSource }
49-
- dv/dpi/spidevicedpi/spidevicedpi.cc: { file_type: cppSource }
50-
- dv/dpi/spidevicedpi/spidevicedpi.hh: { file_type: cppSource, is_include_file: true }
51-
- dv/dpi/spidevicedpi/spi_flash.cc: { file_type: cppSource }
52-
- dv/dpi/spidevicedpi/spi_flash.hh: { file_type: cppSource, is_include_file: true }
53-
- dv/dpi/spidevicedpi/spi_lcd.cc: { file_type: cppSource }
54-
- dv/dpi/spidevicedpi/spi_lcd.hh: { file_type: cppSource, is_include_file: true }
55-
- dv/dpi/spidevicedpi/spi_microsd.cc: { file_type: cppSource }
56-
- dv/dpi/spidevicedpi/spi_microsd.hh: { file_type: cppSource, is_include_file: true }
5749
- dv/models/hyperram/rtl/hyperram_W956.sv: { file_type: systemVerilogSource }
5850
- dv/models/fpga/rtl/DNA_PORT.v: { file_type: systemVerilogSource }
5951
- dv/models/fpga/rtl/IOBUF.v: { file_type: systemVerilogSource }

0 commit comments

Comments
 (0)