mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Moved getenv/getenvval declaration to config-shared so lint and regression both run
This commit is contained in:
parent
571b67f565
commit
338f37b570
@ -129,3 +129,9 @@ localparam CORRSHIFTSZ = NORMSHIFTSZ-2; // Drop lead
|
|||||||
/* verilator lint_off STMTDLY */
|
/* verilator lint_off STMTDLY */
|
||||||
/* verilator lint_off ASSIGNDLY */
|
/* verilator lint_off ASSIGNDLY */
|
||||||
/* verilator lint_off PINCONNECTEMPTY */
|
/* verilator lint_off PINCONNECTEMPTY */
|
||||||
|
|
||||||
|
`ifdef VERILATOR
|
||||||
|
import "DPI-C" function string getenvval(input string env_name);
|
||||||
|
`else
|
||||||
|
import "DPI-C" function string getenv(input string env_name);
|
||||||
|
`endif
|
@ -26,12 +26,6 @@
|
|||||||
|
|
||||||
// This model actually works correctly with vivado.
|
// This model actually works correctly with vivado.
|
||||||
|
|
||||||
`ifdef VERILATOR
|
|
||||||
import "DPI-C" function string getenvval(input string env_name);
|
|
||||||
`else
|
|
||||||
import "DPI-C" function string getenv(input string env_name);
|
|
||||||
`endif
|
|
||||||
|
|
||||||
module rom1p1r #(parameter ADDR_WIDTH = 8, DATA_WIDTH = 32, PRELOAD_ENABLED = 0)
|
module rom1p1r #(parameter ADDR_WIDTH = 8, DATA_WIDTH = 32, PRELOAD_ENABLED = 0)
|
||||||
(input logic clk,
|
(input logic clk,
|
||||||
input logic ce,
|
input logic ce,
|
||||||
|
@ -34,11 +34,6 @@
|
|||||||
`endif
|
`endif
|
||||||
|
|
||||||
import cvw::*;
|
import cvw::*;
|
||||||
`ifdef VERILATOR
|
|
||||||
import "DPI-C" function string getenvval(input string env_name);
|
|
||||||
`else
|
|
||||||
import "DPI-C" function string getenv(input string env_name);
|
|
||||||
`endif
|
|
||||||
|
|
||||||
module testbench;
|
module testbench;
|
||||||
/* verilator lint_off WIDTHTRUNC */
|
/* verilator lint_off WIDTHTRUNC */
|
||||||
|
Loading…
Reference in New Issue
Block a user