ominous2012的个人空间 https://blog.eetop.cn/934213 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

ral3

已有 1126 次阅读| 2016-1-31 17:01 |个人分类:ral

1.field  name {
     properties
}

bits n;指定域的比特数,如果没有指定,默认为1,该属性只能指定一次

access rw|ro|wo|w1|ru|w1c|rc|a1|a0|other|user0|user1|user2|user3|dc;
指定域的访问属性
read/write                                                                    rw
read-only                                                                      ro
write-only                                                                     wo
write-once                                                                    w1
read-only, but value updated by the design          ru
write a 1 to bitwise-clear                                           w1c
clear on read                                                               rc
auto-set by the design                                               a1
auto-cleared by the design                                       a0
other                                                                              other
user-defined behavior.                                                user0
                                                                                        user1
                                                                                        user2
                                                                                        user3
don’t care                                                                      dc
如果写某个域导致其他域的内容被修改或一个域的行为取决于另一个域的值,则指定其属性为other,userName或dc.其他的访问模式都是假设各个域是相互独立的。

When using the  “vmm_ral_field::mirror()”  method with the  check
argument specified as vmm_ral::VERB, the mirrored value of 
the field is assumed to contain the expected value  of the field for 
all field modes except don’t-care (dc). If a field is specified as  dc, 
its mirrored value behaves as if it were a rwfield, but it is never 
compared against a value read from the design.

Modeling Fields Using User Defined Behavior. With Other and 
UserX Access Types
class STATUS_field_callbacks extends 
vmm_ral_field_callbacks;
bit prevent_write;
virtual task post_write(..);
prevent_write = ral_model.PREVENT_WRITE.get();
// If the STATUS field is currently write protected 
maintain its previous value in the RAL mirror.
if(prevent_write)
ral_model.STATUS.mirror( , vmm_ral::QUIET);
endtask
endclass


点赞

全部作者的其他最新日志

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 2

    粉丝
  • 0

    好友
  • 0

    获赞
  • 1

    评论
  • 529

    访问数
关闭

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

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

GMT+8, 2024-5-1 07:40 , Processed in 0.013868 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部