|

楼主 |
发表于 2017-3-9 21:03:45
|
显示全部楼层
软件自带的例子,大面上看起来,也不是很难,但我还是有一些困惑,其中包含了一个sim文件,用来加刺激,
The srio_quick_start module, which is instantiated in srio_example_top, connects to the
Maintenance port and generates maintenance transactions. You can add, modify, or remove
transactions by editing the maintenance_list file. The srio_request_gen module, which
is instantiated within the srio_example_top, is where I/O (and message) transactions are
generated. The transaction types to be generated are passed down through parameters so
that only transactions supported on the connected port are produced. This file also stores
the expected response for any response-generating-requests that it creates, and compares
received responses to the expected value. The srio_response_gen module, also instantiated
in srio_example_top, generates responses to requests received from the link partner.
红框圈住的文件是example design中的主要文件,其他的一些数据报告模块暂时不考虑。
我困惑的地方是,两个ip核链接起来可怎么通信啊,我听不懂抽象的话,maintenance transactions和 I/O (and message) transactions,到底要干什么,各自是什么,srio_quick_start module是用来发送一些数据包来对寄存器进行配置?包的量很大,srio_request_gen module也要发送包,也是一大堆,这两者的关系搞不清楚,我从今天开始才开始看代码,就这几个文件,我再琢磨琢磨他的代码,能不能给个思路让我参考一下。真的很受伤。
Overview
The SRIO Gen2 Endpoint example design connects two instances of the core together. Each
core instance can be configured to send supported packet types, check for receive packet
mismatches, and report in the simulation transcript with details about the link traffic. Both
the simulation host and the primary core being tested use the SRIO Gen2 Endpoint
reference design (consisting of a LOG, BUF, and PHY provided through the SRIO Gen2
Endpoint top-level wrapper) and the Configuration Fabric reference design.
|
|