![]() |
|
|
|||||||
![]() |
VHDL - str to stdvec of converted values |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hello there,
I'm somewhat new to vhdl programming and am betting on there being more knowledgeable/smart people in this forum who could help. I’m trying to something similar to the thread below, whereby I’m having an input string fed in to be converted to a std_logic_vector of the converted values. I would be very appreciative and humbled if anybody could please help me out. Thanks, Jeff http://www.velocityreviews.com/forum...gic-value.html function str_to_stdvec(inp: string) return std_logic_vector is variable temp: std_logic_vector((BLOCK_LENGTH+1)-1 downto 0) := (others => 'X'); begin for i in inp'range loop temp(i)<=std_logic'value(string(i) & NUL); end loop; return temp; end; Errors encountered: # ** Error: TB_rev_A.vhd(53): Illegal type conversion from integer to string (numeric to array). # ** Error: TB_rev_A.vhd(53): Target of signal assignment is not a signal. J_R_L |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cisco QOS MIB values required | manjunatht | Hardware | 1 | 06-13-2008 02:34 PM |
| Values set by javascript are not reflected in serverside(.Net) | rchimakurty | Software | 2 | 11-28-2007 10:07 AM |
| Checkbox values problem in gridview | thanigaimani.thirumalai | Software | 0 | 11-09-2007 05:12 AM |
| Cisco QOS MIB values required | manjunatht | Software | 0 | 09-11-2007 05:40 PM |
| How to make the form View save it's field values in Visual Stdio .NET | asammoud | Software | 0 | 07-17-2007 10:57 AM |