Permalink
Browse files

Exclude gpr accessor functions from synthesis

Synplify pro fails when it encounters set_gpr.
  • Loading branch information...
olofk authored and skristiansson committed Apr 11, 2013
1 parent c6e2732 commit 20bc31a5d0dffa64a7fb0e5ab5c8ac02eb7d1369
@@ -695,6 +695,8 @@ module mor1kx_cpu_cappuccino
.pipeline_flush_i (pipeline_flush_o)); // Templated
`ifndef SYNTHESIS
// synthesis translate_off
/* Debug signals required for the debug monitor */
function [OPTION_OPERAND_WIDTH-1:0] get_gpr;
// verilator public
@@ -725,6 +727,8 @@ module mor1kx_cpu_cappuccino
mor1kx_rf_cappuccino.rfb.ram[gpr_num] = gpr_value;
end
endtask
// synthesis translate_on
`endif
/* mor1kx_execute_ctrl_cappuccino AUTO_TEMPLATE (
@@ -578,6 +578,8 @@ module mor1kx_cpu_espresso
end
endfunction
`ifndef SYNTHESIS
// synthesis translate_off
task set_gpr;
// verilator public
input [4:0] gpr_num;
@@ -587,6 +589,8 @@ module mor1kx_cpu_espresso
mor1kx_rf_espresso.rfb.ram[gpr_num] = gpr_value;
end
endtask
// synthesis translate_on
`endif
/* mor1kx_ctrl_espresso AUTO_TEMPLATE (
.ctrl_alu_result_i (alu_result_o),
@@ -655,6 +655,8 @@ module mor1kx_cpu_prontoespresso
endfunction //
`ifndef SYNTHESIS
// synthesis translate_off
task set_gpr;
// verilator public
input [4:0] gpr_num;
@@ -664,6 +666,8 @@ module mor1kx_cpu_prontoespresso
mor1kx_rf_espresso.rfb.ram[gpr_num] = gpr_value;
end
endtask
// synthesis translate_on
`endif
/* mor1kx_ctrl_prontoespresso AUTO_TEMPLATE (
.ctrl_alu_result_i (alu_result_o),

0 comments on commit 20bc31a

Please sign in to comment.