Skip to content

Commit

Permalink
Change to partial imports to avoid enum conflicts
Browse files Browse the repository at this point in the history
riscv_opcodes_pkg's enum define has conflict with one used in isa.sv, we
can fix that by only import specific define we'd like to use.
  • Loading branch information
fennecJ committed Oct 24, 2024
1 parent e81ee5c commit ae78ce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion property/fv_regfile.sv
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

module fv_regfile
import riscv_opcodes_pkg::*;
import riscv_opcodes_pkg::rsd_t;
import riscv_opcodes_pkg::zero;
(
// Common input
input clk,
Expand Down
2 changes: 1 addition & 1 deletion property/isa.sv
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ module isa (

`ifdef RegFileStable
// Import necessary package
import riscv_opcodes_pkg::*;
import riscv_opcodes_pkg::rsd_t;

// DUV's regfile signal
logic [31:0] rf [32];
Expand Down

0 comments on commit ae78ce0

Please sign in to comment.