Skip to content

How and where are the inputs given? #153

Answered by alexforencich
sametzeybek asked this question in Q&A
Discussion options

You must be logged in to vote

The MyHDL testbenches are old; the current cocotb testbench for the 10G MAC is here: https://github.com/alexforencich/verilog-ethernet/tree/master/tb/eth_mac_10g_fifo. Unfortunately, Vivado's simulator PLI is incomplete and hence cannot be used with cocotb.

Data is driven through the HDL using simulation models from cocotbext-axi and cocotbext-eth, which are instantiated here:

https://github.com/alexforencich/verilog-ethernet/blob/master/tb/eth_mac_10g_fifo/test_eth_mac_10g_fifo.py#L66-L70

These act as streaming sources and sinks, so data can be sent into the MAC like so:

https://github.com/alexforencich/verilog-ethernet/blob/master/tb/eth_mac_10g_fifo/test_eth_mac_10g_fifo.py#L114

And th…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sametzeybek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants