mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-20 03:47:15 -04:00
Use ifndef to avoid re-declaration warnings in *cosim_dpi.svh
This commit is contained in:
parent
9f14922382
commit
36a9abbf1c
2 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
|||
// Implemented as a header file as VCS needs `import` declarations included in each verilog file
|
||||
// that uses them.
|
||||
|
||||
`ifndef COSIM_DPI_SVH
|
||||
`define COSIM_DPI_SVH
|
||||
|
||||
import "DPI-C" function int riscv_cosim_step(chandle cosim_handle, bit [4:0] write_reg,
|
||||
bit [31:0] write_reg_data, bit [31:0] pc, bit sync_trap);
|
||||
import "DPI-C" function void riscv_cosim_set_mip(chandle cosim_handle, bit [31:0] mip);
|
||||
|
@ -23,3 +26,5 @@ import "DPI-C" function void riscv_cosim_clear_errors(chandle cosim_handle);
|
|||
import "DPI-C" function void riscv_cosim_write_mem_byte(chandle cosim_handle, bit [31:0] addr,
|
||||
bit [7:0] d);
|
||||
import "DPI-C" function int riscv_cosim_get_insn_cnt(chandle cosim_handle);
|
||||
|
||||
`endif
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
`ifndef SPIKE_COSIM_DPI_SVH
|
||||
`define SPIKE_COSIM_DPI_SVH
|
||||
|
||||
import "DPI-C" function
|
||||
chandle spike_cosim_init(string isa_string,
|
||||
bit [31:0] start_pc,
|
||||
|
@ -9,3 +12,5 @@ import "DPI-C" function
|
|||
string log_file_path);
|
||||
|
||||
import "DPI-C" function void spike_cosim_release(chandle cosim_handle);
|
||||
|
||||
`endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue