找回密码
 注册
搜索
查看: 871|回复: 1

[讨论] 请教:verilog语言中一个语句的执行顺序

[复制链接]
发表于 2008-8-15 09:45:03 | 显示全部楼层 |阅读模式
请教各位大虾,以下语法是怎么执行的?
     task shift_in;
     output[7:0] shift;
  begin
          @(posedge scl)   shift[7]=sda;
          @(posedge scl)   shift[6]=sda;
          @(posedge scl)   shift[5]=sda;
          @(posedge scl)   shift[4]=sda;
          @(posedge scl)   shift[3]=sda;
          @(posedge scl)   shift[2]=sda;
          @(posedge scl)   shift[1]=sda;
          @(posedge scl)   shift[0]=sda;
    end
endtask
    请问以上begin...end里面的语句在执行时,每次在scl的上升沿执行所有语句还是只执行一条语句?
发表于 2008-8-19 11:04:58 | 显示全部楼层
所有啊
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-9-30 12:18 , Processed in 0.045888 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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