Integer and Integer_vector conversions

Proposal Editing Information

  • Who Updates: JimLewis, <Add YourName>, ...
  • Date Proposed: 2012-08-19
  • Date Last Updated: 2012-08-19
  • Priority:
  • Complexity:
  • Focus: Testbench

Requirement Summary

Need boolean to integer and boolean_vector to integer_vector conversions. Need std_ulogic to integer and std_ulogic_vector to integer_vector conversions.


Operations such as coverage modeling work best with integer based types.

Related and/or Competing Issues: none


-- std.standard
function to_integer (I : boolean) return integer ; 
function to_integer_vector (I : boolean_vector) return integer_vector ; 
function to_boolean (I : integer) return boolean; 
function to_boolean_vector (I : integer_vector) return boolean_vector ; 

-- ieee.std_logic_1164
function to_integer (I : std_ulogic) return integer ; 
function to_integer_vector (I : std_ulogic_vector) return integer_vector ; 
function to_std_ulogic (I : integer) return std_ulogic ; 
function to_std_ulogic_vector (I : integer_vector) return std_ulogic_vector ; 


General Comments


-- MatthiasAlles - 2013-02-14

Add your signature here to indicate your support for the proposal

Topic revision: r3 - 2020-02-17 - 15:34:34 - JimLewis
Copyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback