集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 1605|回复: 0

求助:dsp2812与fpga连接问题

[复制链接]
CHA 发表于 2010-6-27 23:55:09 | 显示全部楼层 |阅读模式
本帖最后由 fpgaw 于 2010-7-15 13:26 编辑

我用2812与fpga,数据总线地址总线连接在一起
fpga另一个分别带了2个数据总线

但现在发现2812一运行就发热
fpga无问题

下面是fpga的代码,帮忙看看有没有错误

module RDBus(
Rst,
AddressIn,
AddressOut,
Wr28,
Rd28,
Cs28,
XclkOut28,
PageAD,
DataBus28,
DataBusAD,
DataBusECAT,
WrECAT,
RdECAT,
RdAD,
CsAD1,
CsAD2,
CsAD3,
CsECAT
);
input Rst;
input [11:0] AddressIn;
output [11:0] AddressOut;
input Wr28;
input Rd28;
input Cs28;
input XclkOut28;
input PageAD;
inout [15:0] DataBus28;
input [13:0] DataBusAD;
inout [15:0] DataBusECAT;
output WrECAT,RdECAT,RdAD;
output CsAD1,CsAD2,CsAD3,CsECAT;

wire [15:0] DataBus28;
wire [13:0] DataBusAD;
wire [15:0] DataBusECAT;
reg [15:0] DataBusReg;
reg [15:0] DataBusReg2;
initial
begin
DataBusReg2 = 16'b0;
DataBusReg = 16'b0;
end

assign WrECAT = Wr28;
assign RdECAT = Rd28;
assign RdAD = Rd28;
assign AddressOut = AddressIn;
/*
assign CsAD1 = (!PageAD) || Cs28 || (!AddressIn[0]);
assign CsAD2 = (!PageAD) || Cs28 || (!AddressIn[1]);
assign CsAD3 = (!PageAD) || Cs28 || (!AddressIn[2]);
assign CsECAT = PageAD || Cs28;
*/
assign CsAD2 = Cs28;
assign DataBus28 = !Rd28 ? DataBusReg:16'bz;
assign DataBusECAT = !Wr28 ? DataBusReg2:16'bz;

[email=always@(negedge]always@(negedge[/email] Rd28)
begin
if(PageAD)
  DataBusReg <= DataBusAD;
else
  DataBusReg <= DataBusECAT;
end
[email=always@(negedge]always@(negedge[/email] Wr28)
begin
if(!PageAD)
DataBusReg2 <= DataBus28;
end
endmodule
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|手机版|Archiver|fpga论坛|fpga设计论坛 ( 京ICP备20003123号-1 )

GMT+8, 2024-11-27 10:15 , Processed in 0.057921 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表