Skip to content

Commit

Permalink
Remove redundant ifndef SYNTHESIS
Browse files Browse the repository at this point in the history
This is already covered by `pragma translate_off`.
  • Loading branch information
andreaskurth committed Dec 19, 2019
1 parent 08a6e40 commit 44f15e7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/axi_cut.sv
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ module axi_cut_intf #(
// Check the invariants.
// pragma translate_off
`ifndef VERILATOR
`ifndef SYNTHESIS
initial begin
assert ( ADDR_WIDTH > 0 ) else $fatal(1, "Wrong addr width parameter");
assert ( DATA_WIDTH > 0 ) else $fatal(1, "Wrong data width parameter");
Expand All @@ -192,7 +191,6 @@ module axi_cut_intf #(
assert ( out.AXI_USER_WIDTH == USER_WIDTH) else $fatal(1, "Wrong interface definition");
end
`endif
`endif
// pragma translate_on
endmodule

Expand Down Expand Up @@ -246,7 +244,6 @@ module axi_lite_cut_intf #(
// Check the invariants.
// pragma translate_off
`ifndef VERILATOR
`ifndef SYNTHESIS
initial begin
assert ( ADDR_WIDTH > 0) else $fatal(1, "Wrong addr width parameter");
assert ( DATA_WIDTH > 0) else $fatal(1, "Wrong data width parameter");
Expand All @@ -256,6 +253,5 @@ module axi_lite_cut_intf #(
assert ( out.AXI_DATA_WIDTH == DATA_WIDTH ) else $fatal(1, "Wrong interface definition");
end
`endif
`endif
// pragma translate_on
endmodule
2 changes: 0 additions & 2 deletions src/axi_lite_to_axi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@ module axi_lite_to_axi_intf (
);

// pragma translate_off
`ifndef SYNTHESIS
initial begin
assert(in.AXI_ADDR_WIDTH == out.AXI_ADDR_WIDTH);
assert(in.AXI_DATA_WIDTH == out.AXI_DATA_WIDTH);
end
`endif
// pragma translate_on

assign out.aw_id = '0;
Expand Down
6 changes: 0 additions & 6 deletions src/axi_multicut.sv
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ module axi_multicut #(
// Check the invariants
// pragma translate_off
`ifndef VERILATOR
`ifndef SYNTHESIS
initial begin
assert(NoCuts >= 0);
end
`endif
`endif
// pragma translate_on
endmodule

Expand Down Expand Up @@ -149,7 +147,6 @@ module axi_multicut_intf #(
// Check the invariants.
// pragma translate_off
`ifndef VERILATOR
`ifndef SYNTHESIS
initial begin
assert ( ADDR_WIDTH > 0 ) else $fatal(1, "Wrong addr width parameter");
assert ( DATA_WIDTH > 0 ) else $fatal(1, "Wrong data width parameter");
Expand All @@ -165,7 +162,6 @@ module axi_multicut_intf #(
assert ( out.AXI_USER_WIDTH == USER_WIDTH ) else $fatal(1, "Wrong interface definition");
end
`endif
`endif
// pragma translate_on
endmodule

Expand Down Expand Up @@ -225,7 +221,6 @@ module axi_lite_multicut_intf #(
// Check the invariants.
// pragma translate_off
`ifndef VERILATOR
`ifndef SYNTHESIS
initial begin
assert ( ADDR_WIDTH > 0 ) else $fatal(1, "Wrong addr width parameter");
assert ( DATA_WIDTH > 0 ) else $fatal(1, "Wrong data width parameter");
Expand All @@ -235,6 +230,5 @@ module axi_lite_multicut_intf #(
assert ( out.AXI_DATA_WIDTH == DATA_WIDTH ) else $fatal(1, "Wrong interface definition");
end
`endif
`endif
// pragma translate_on
endmodule

0 comments on commit 44f15e7

Please sign in to comment.