summaryrefslogtreecommitdiff
path: root/rtl/core
diff options
context:
space:
mode:
Diffstat (limited to 'rtl/core')
-rw-r--r--rtl/core/regs/file.sv5
1 files changed, 5 insertions, 0 deletions
diff --git a/rtl/core/regs/file.sv b/rtl/core/regs/file.sv
index 7109edf..e0f9b4c 100644
--- a/rtl/core/regs/file.sv
+++ b/rtl/core/regs/file.sv
@@ -14,7 +14,12 @@ module core_reg_file
// Ver comentario en uarch.sv
word file[30] /*verilator public*/;
+ //FIXME: Esto claramente no sirve
+`ifdef VERILATOR
+ always_ff @(negedge clk) begin
+`else
always_ff @(posedge clk) begin
+`endif
if(wr_enable)
file[wr_index] <= wr_value;