PV, PV+T, CA in SystemC

The most abstract level in the SystemC TLM methodology is called PV. It implements the channel communication based on events that determine the beginning and the end of the request phase, mstr_requestStartEvent and
mstr_requestEndEvent, as well as the protocol functionality using three methods, sendRequest, getRequest, and requestInProgress. The first method is used by the traffic generator and the second by the message receiver; the purpose of the third one is to check the status of the transfer:

 

Adding more details, such as time and detailed transfer information (data and address), we move to a more concrete level called PV+T. The class constructor now takes an additional parameter: the clock period. New methods extend the bus functionality (e.g., they now consider the reset aspects). In the following, we provide an example of the implementation of the request phase. Although the behavior remains the same, the transfer information has been detailed to include data and address:

 

 

Further changes relate to the implementation of the acceptRequest method, which now takes timing information, either in explicit time form:

 

 

or in a form correlated to clock cycles:

 

 

The next version, which is even more concrete, is a cycle-accurate implementation that uses clock cycle timing and bit true variable information. As can be seen from the bus implementation shown here, the detailed data information is packaged in the newRequest structure:

 

 

The actual timing is implemented on the bus interface, both in the bus master and the slave interface methods, as demonstrated here for the request method of the master interface:

 

 

The process is synchronized by a clock, but also offers the opportunity to run with a fixed delay using wait_for. The delay is also used in case of a handshaking mechanism or response check offered by the bus slave.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值