交易级建模通过提高建模抽象层次,加快了系统建模和仿真的速度。针对AMBAAHB协议,采用SystemC语言,进行了交易级建模及通信细化。结果表明,由于抽象层次部分结合了BCA(buscycle—accumte)级描述,使得到的交易级模型包含了更多时间/协议信息,同时保留了速度优势,有利于前期验证和系统开发。而之后进行的通信细化,将抽象通道转化为模块实体和端口,对于最终RTL级实现具有重要意义。
Transaction level modeling can speed up the building of system model and reduce the simulation time by modeling in a higher level. Based on SystemC, we model the AHB protocol in TLM and refine its communication channel subsequently. Combining the BCA level partly, the simulation result shows that the TLM model contains more infor- mation of cycle/protocol, meanwhile, preserves the superiority in speed. The method of modeling is useful for early validation and exploration of the system. Furthermore, we perform the communication refinement: turn the abstract channel to the module entities and ports, which is quite important for the final RTL implementation.