标题: 我是新手,一个cpld问题 [打印本页] 作者: 吕兴利 时间: 2003-9-16 12:04 标题: 我是新手,一个cpld问题 我是新手,一个cpld问题
是一个简单四选一的程序!
编译烧入,一切正常,但是就是无法使用。不知道我哪里还有问题???我用得是
epm7128stc100-15芯片
用单片机控制所有的口都一直是低电平。
我得邮箱是lvxingli@263.net
library ieee;
use ieee.std_logic_1164.all;
entity mux is port(
a, b, c, d: in std_logic;
s: in std_logic_vector(1 downto 0);
x: out std_logic);
end mux;
architecture archmux of mux is
begin
mux4_1:process(a,b,c,d)
begin
if s = "00" then
x <= a;
elsif s = "01" then
x <= b;
elsif s = "10" then
x <= c;
else
x <= d;
end if;
end process mux4_1;
end archmux;
作者: 狂迷 时间: 2003-9-29 20:46
单片 pascal 语言? 你用的是什么牌子的编译器?[我想学单片机]作者: pillar 时间: 2003-10-31 16:25
虎头蛇尾作者: loop_ctrl 时间: 2003-11-7 18:34
是不是应该将s选择信号加入到process中的敏感列表中吧,,,可以试试看作者: shunzi3 时间: 2004-1-7 16:02
VHDL语言,通过Maxplusii编译了吗,器件选择对了,管脚锁定了吗,你要注意s信号,同时配置对吗。是否使用了BYTEBLASTmv啊!作者: wangsf 时间: 2004-2-6 21:05
可能是没有处理未使用的引脚!!!
你看一下电流大不大!!作者: louiskoochen 时间: 2004-3-2 11:14
高手啊