Skip to content

Commit 6544830

Browse files
committed
axi_mcast_demux_mapped: Improve readability of assertions
1 parent cda42b9 commit 6544830

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/axi_mcast_demux_mapped.sv

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,22 +389,22 @@ module axi_mcast_demux_mapped #(
389389
assign size = addr_map_i[i].end_addr - addr_map_i[i].start_addr;
390390
`ASSERT(MulticastRuleSize,
391391
((size & (size - 1)) == 0), clk_i, !rst_ni,
392-
$sformatf("Size %d of rule %d is not a power of 2", size, i))
392+
$sformatf("Size %0d of rule %0d is not a power of 2", size, i))
393393
`ASSERT(MulticastRuleAlignment,
394394
(addr_map_i[i].start_addr % size) == 0, clk_i, !rst_ni,
395-
$sformatf("Rule %d, starting at 0x%x, is not aligned to its size (%d)",
396-
addr_map_i[i].start_addr, i, size))
395+
$sformatf("Rule %0d, starting at 0x%0x, is not aligned to its size (%0d)",
396+
i, addr_map_i[i].start_addr, size))
397397
end
398398
// Default rule is only converted to mask form if there are any other multicast rules
399399
if (NoMulticastRules > 0) begin : gen_multicast_default_rule_assertion
400400
addr_t size;
401401
assign size = default_mst_port_i.end_addr - default_mst_port_i.start_addr;
402402
`ASSERT(DefaultRuleSize,
403403
!en_default_mst_port_i || ((size & (size - 1)) == 0), clk_i, !rst_ni,
404-
$sformatf("Size %d of default rule is not a power of 2", size))
404+
$sformatf("Size %0d of default rule is not a power of 2", size))
405405
`ASSERT(DefaultRuleAlignment,
406406
!en_default_mst_port_i || ((default_mst_port_i.start_addr % size) == 0), clk_i, !rst_ni,
407-
$sformatf("Default rule, starting at 0x%x, is not aligned to its size (%d)",
407+
$sformatf("Default rule, starting at 0x%0x, is not aligned to its size (%0d)",
408408
default_mst_port_i.start_addr, size))
409409
end
410410

0 commit comments

Comments
 (0)