![]() |
|
|
|||||||
![]() |
VHDL - How could I output a real signal to std_logic_vector? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi all,
I'm really new to VHDL. I need to output a real signal. How could I convert it to std_logic_vector? Or, could I output a real number directly? BTW, is there any way that I could monitor variables during test bench simulation like debugging in other language? Thanks and bow. Will |
|
|
|
|
#2 |
|
Member
Join Date: Dec 2008
Posts: 83
|
Well, first you need some definition for your 'real' signal. If you can define it as a std_logic_vector then you are done.
signal clk_scaler : unsigned(20 downto 0); What is your definition of 'real'? Not 'imaginary' (1 + i1)? Yes, your test bench will let you see about anything that makes it through the compiler. JohnDuq |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2009
Posts: 9
|
in VHDL you can set your signal into any number. you can write any signed or unsigned number on it and your output signal will carry that value until you change it.
the question regarding creating a real signal... if you are talking about actual signals such as sinusoid i do not think you can do that. you can create a squarewave which is a simple clock in VHDL but thats about it. Ukanbal |
|
|
|
|
|
#4 |
|
Member
Join Date: Dec 2008
Posts: 83
|
You can create a sinusoid by using a look up table.
JohnDuq |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I am having trouble editing a signal in a sub program. | Haai | Hardware | 0 | 08-28-2007 02:58 PM |
| IMHO, Digital SECAM video is better than Analog NTSC video | Radium | DVD Video | 167 | 10-25-2006 04:16 AM |
| Sony Precision Cinema Progressive Output vs Component 480p Output | Otto Pylot | DVD Video | 1 | 04-18-2004 10:49 PM |
| Panasonic S25 DVD player w/o S-video output - will its replacement have S-video? | Mark | DVD Video | 1 | 02-11-2004 04:19 PM |
| Convert S-video to RF signal | Monkey Monkey | DVD Video | 10 | 01-14-2004 08:17 AM |