Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - How could I output a real signal to std_logic_vector?

 
Thread Tools Search this Thread
Old 03-09-2009, 06:01 PM   #1
Default How could I output a real signal to std_logic_vector?


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
  Reply With Quote
Old 03-18-2009, 08:23 PM   #2
JohnDuq
Member
 
Join Date: Dec 2008
Posts: 83
Default
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
JohnDuq is offline   Reply With Quote
Old 03-20-2009, 05:28 AM   #3
Ukanbal
Junior Member
 
Join Date: Mar 2009
Posts: 9
Default
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
Ukanbal is offline   Reply With Quote
Old 03-20-2009, 12:46 PM   #4
JohnDuq
Member
 
Join Date: Dec 2008
Posts: 83
Default
You can create a sinusoid by using a look up table.


JohnDuq
JohnDuq is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46