mor1kx-bemicrocv/cores/flashrom-wb/flashrom_pkg.vhd
2016-08-04 19:22:38 +02:00

19 lines
663 B
VHDL

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
package flashrom_pkg is
constant FLASHROM_ADDR_WIDTH : integer := 12;
constant FLASHROM_COMMAND_MANUFACTURER_ID : std_logic_vector(7 downto 0) := x"9F";
function padBits(target : std_logic_vector; other : std_logic_vector) return std_logic_vector;
end package flashrom_pkg;
package body flashrom_pkg is
function padBits(target : std_logic_vector; other : std_logic_vector) return std_logic_vector is
begin
return std_logic_vector(to_unsigned(0, target'length - other'length));
end function padBits;
end package body flashrom_pkg;