Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
CAOS_HW
HDL_IP
SafeSU
Commits
4637a4b6
Commit
4637a4b6
authored
Sep 11, 2019
by
Guillem
Browse files
BUGFIX: Offset weights was incorrect
parent
46275eb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
hdl/AXI_PMU_interface_v1_0_S00_AXI.sv
View file @
4637a4b6
...
...
@@ -647,7 +647,18 @@
//map slv_reg s to events_weights_i. Weight size shall be a power of
//2 an smaller than MCCU_DATA_WIDTH. This constrain can be overcome
//with a mechanism "align" the weights of the registers in hardware but
//we will skip it for now.
`ifdef
ASSERTIONS
//we will skip it for now And assume that MCCU_DATA_WIDTH is
//always aligned
//TODO: handele misaligment aligments and remove this constrains
always
@
(
*
)
begin
assert
(
(
MCCU_DATA_WIDTH
!=
4
)
||
(
MCCU_DATA_WIDTH
!=
8
)
||
(
MCCU_DATA_WIDTH
!=
16
)
||
(
MCCU_DATA_WIDTH
!=
32
);
end
`endif
//Nº of the slv_register where weights start
localparam
OFFSET_MCCU_WEIGHTS
=
OFFSET_MCCU_CONFIG
+
MCCU_N_CORES
;
...
...
@@ -692,7 +703,8 @@
assign
weights_flat_bitarray
[
ARRAY_BIT_OFFSET_H
:
ARRAY_BIT_OFFSET_L
]
=
slv_reg
[
CURRENT_REG_OFFSET
]
slv_reg
[
CURRENT_REG_OFFSET
+
BASE_MCCU
+
N_CORES
]
[
SLV_BIT_OFFSET_H
:
SLV_BIT_OFFSET_L
];
end
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment