- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I am new to the ModelSim software and had a question regarding ASCII test values. At the moment, I am comfortable with the "Create Wave" function where I can establish a clock, a constant, etc. with one of my signals. However, I have no clue how to assign an ASCII value to one of my inputs and have it displayed in the Wave window. My project is a state machine that logs ASCII inputs and will generate a '1' output when 'm', 'p', and '3' are entered sequentially. Thank you in advance for your help! - dylpillzLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
VHDL Character-to-integer conversion:
variable c : character;
variable i : integer;
i := character'pos(c);
VHDL Integer-to-character conversion:
c := character'val(i);
Cheers, Dave

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page