Guest User

Untitled

a guest
Jan 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VHDL 0.23 KB | None | 0 0
  1. FUNCTION adr_to_index(a: std_logic_vector; base: std_logic_vector; o_size: integer) RETURN natural IS
  2.         VARIABLE idx: natural;
  3. BEGIN  
  4.         idx := to_integer(base) - to_integer(a) / o_size;
  5.         return idx;
  6. END FUNCTION;
Add Comment
Please, Sign In to add comment