vector to integer

Joined
Jun 4, 2008
Messages
3
Reaction score
0
How to...?

dac: out std_logic;

signal dac_count: std_logic_vector (5 downto 0);

if dac_count>24 then
dac<= dac_data(dac_count); ???????? Error!
dac_cs<='0';
else
dac<='0';
dac_cs<='1';
end if;


thx.
 
Joined
Mar 10, 2008
Messages
348
Reaction score
0
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

....

dac: out std_logic;

signal dac_count: std_logic_vector (5 downto 0);

if dac_count>conv_std_logic_vector(24,6) then
dac<= dac_data(conv_integer(dac_count)); -- May be OK
dac_cs<='0';
else
dac<='0';
dac_cs<='1';
end if;
 
Joined
Jun 4, 2008
Messages
3
Reaction score
0
FPGA Equations list (like cpld)

Not found abel style equations list FPGA project, only CPLD project.
Xilinx ISE 10.1
I am beginer, and that list helps very much for me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,167
Messages
2,570,913
Members
47,455
Latest member
Delilah Code

Latest Threads

Top