syscon: switch to only 7 digits / 28 bits of the hash stored in the register

Signed-off-by: Dan Horák <dan@danny.cz>
pull/243/head
Dan Horák 5 years ago
parent 7c48973d4e
commit 538a8629f4

@ -4,6 +4,6 @@ use ieee.std_logic_1164.all;
library work;

package git is
constant GIT_HASH : std_ulogic_vector(55 downto 0) := x"1234567890abcd";
constant GIT_HASH : std_ulogic_vector(27 downto 0) := x"1234567";
constant GIT_DIRTY : std_ulogic := '0';
end git;

@ -93,7 +93,7 @@ architecture behaviour of syscon is

-- GIT info register bits
--
-- 0 ..55 : git hash (56 bits)
-- 0 ..27 : git hash (7 digits = 28 bits)
-- 63 : dirty flag
--

@ -175,7 +175,7 @@ begin

-- GIT info register composition
reg_gitinfo <= (63 => GIT_DIRTY,
55 downto 0 => GIT_HASH,
27 downto 0 => GIT_HASH,
others => '0');

-- Wishbone response

Loading…
Cancel
Save