在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
123
返回列表 发新帖
楼主: txmfxf

新手求助版主:再问一个弱的问题

[复制链接]
 楼主| 发表于 2007-4-20 11:22:39 | 显示全部楼层
哪位高人给点意见啊!拜托!
发表于 2007-4-21 19:56:28 | 显示全部楼层
把.bmp文件打开,然后另存为.jepg文件,文件size就会变小很多。
偶们浏览网页的时候打开得也快些
 楼主| 发表于 2007-4-22 22:48:03 | 显示全部楼层
各位高人请指点。还是那段程序如果我想实现以下功能,在原有得程序上怎么修改?reset=0req101,在reset=1req10采样req0(低电平有效),等到dataout_rise0=1req101dataout_rise0=1req10采样了req0的低电平以后才会出现),到gnt0=0 frame_rise=1时(gnt0=0 frame_rise=1dataout_rise0=1以后才会出现)才恢复req10采样req0。也就是说:先在reset=1req10采样req0,等到dataout_rise0=1req101req10不采样req0),到gnt0=0 frame_rise=1时才恢复req10采样req0
下面是程序和功能仿真图
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY wc IS

PORT
(
  clock:  IN STD_LOGIC;
  reset:  IN STD_LOGIC;
  req0,req1,req2,req3,req4,req5: IN STD_LOGIC;
  dataout0,dataout1,dataout2,dataout3,dataout4,dataout5: IN STD_LOGIC;
  gnt0,gnt1,gnt2,gnt3,gnt4,gnt5:    IN STD_LOGIC;
  frame   : IN STD_LOGIC;
  req10,req11,req12,req13,req14,req15: OUT STD_LOGIC
);
END wc;
ARCHITECTURE a OF wc IS
signal tmp0,tmp1,tmp2,tmp3,tmp4,tmp5: std_logic;
signal  dataout_rise0,dataout_rise1,dataout_rise2,dataout_rise3,dataout_rise4,dataout_rise5: std_logic;
signal  frame0:std_logic;
signal  frame_rise:std_logic;
BEGIN
p1:process(clock,dataout_rise0,gnt0,frame_rise,reset)
   begin
   if clock'event and clock='1' then
       if(reset='0' or dataout_rise0='1' ) then
               req10<='1';
      elsif(reset='1' or (gnt0='0' and frame_rise='1'))then
             req10<=req0;
      end if;
end if;
end process p1;
p2:process(clock)
   begin
   if clock'event and clock='1' then
      tmp0 <=dataout0;
     end if;
end process p2;
dataout_rise0<='1' when (dataout0='0' and tmp0='1') else
              '0';            
p3:process(clock,dataout_rise1,gnt1,frame_rise,reset)
   begin
   if clock'event and clock='1' then
      if(reset='0' or dataout_rise1='1' ) then
               req11<='1';
      elsif(reset='1' or (gnt1='0' and frame_rise='1'))then
             req11<=req1;
      end if;
end if;
end process p3;
p4:process(clock)
   begin
   if clock'event and clock='1' then
      tmp1 <=dataout1;
     end if;
end process p4;
dataout_rise1<='1' when (dataout1='0' and tmp1='1') else
              '0';            
p5:process(clock,dataout_rise2,gnt2,frame_rise,reset)
   begin
   if clock'event and clock='1' then
      if(reset='0' or dataout_rise2='1' ) then
               req12<='1';
      elsif(reset='1' or (gnt2='0' and frame_rise='1'))then
             req12<=req2;
      end if;
end if;
end process p5;
p6:process(clock)
   begin
   if clock'event and clock='1' then
      tmp2 <=dataout2;
     end if;
end process p6;
dataout_rise2<='1' when (dataout2='0' and tmp2='1') else
              '0';            
p7:process(clock,dataout_rise3,gnt3,frame_rise,reset)
   begin
   if clock'event and clock='1' then
      if(reset='0' or dataout_rise3='1' ) then
               req13<='1';
      elsif(reset='1' or (gnt3='0' and frame_rise='1'))then
             req13<=req3;
      end if;
end if;
end process p7;
p8:process(clock)
   begin
   if clock'event and clock='1' then
      tmp3 <=dataout3;
     end if;
end process p8;
dataout_rise3<='1' when (dataout3='0' and tmp3='1') else
              '0';            
p9:process(clock,dataout_rise4,gnt4,frame_rise,reset)
   begin
   if clock'event and clock='1' then
      if(reset='0' or dataout_rise4='1' ) then
               req14<='1';
      elsif(reset='1' or (gnt4='0' and frame_rise='1'))then
             req14<=req4;
      end if;
end if;
end process p9;
p10:process(clock)
   begin
   if clock'event and clock='1' then
      tmp4 <=dataout4;
     end if;
end process p10;
dataout_rise4<='1' when (dataout4='0' and tmp4='1') else
              '0';            

p11:process(clock,dataout_rise5,gnt5,frame_rise,reset)
   begin
   if clock'event and clock='1' then
      if(reset='0' or dataout_rise5='1' ) then
               req15<='1';
      elsif(reset='1' or (gnt5='0' and frame_rise='1'))then
             req15<=req5;
      end if;
end if;
end process p11;
p12:process(clock)
   begin
   if clock'event and clock='1' then
      tmp5 <=dataout5;
     end if;
end process p12;
dataout_rise5<='1' when (dataout5='0' and tmp5='1') else
              '0';            

p14:process(clock)
   begin
   if clock'event and clock='1' then
      frame0 <=frame;
     end if;
end process p14;
frame_rise<='1' when (frame='0' and frame0='1') else
              '0';              
END a;
功能图中,我想要当dataout1产生下降沿时,req11一直置1,直到gnt1=0,frame下降沿时才恢复对req1的采样。但在功能图中不知为什么当dataout1产生下降沿时,req11只保持一个时钟周期的1

jpg

jpg
 楼主| 发表于 2007-4-23 10:48:51 | 显示全部楼层
各位大侠,帮帮忙吧,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-7-1 21:14 , Processed in 0.087244 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表