Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Reading and writing hexadecimal numbers

The reading and writing of hexadecimal numbers is not specified in standard VHDL. The Issues Screening and Analysis Committee of the VHDL Analysis and Standardization Group (ISAC-VASG) has specified that the TextIO package reads and writes only decimal numbers.

To expand this functionality, ModelSim supplies hexadecimal routines in the package io_utils, which is located in the file /modeltech/examples/io_utils.vhd. To use these routines, compile the io_utils package and then include the following use clauses in your VHDL source code:

use std.textio.all;
use work.io_utils.all; 

Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase