How and where are the inputs given? #153
-
Hi Alex, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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: These act as streaming sources and sinks, so data can be sent into the MAC like so: And then the response can be retrieved later on: https://github.com/alexforencich/verilog-ethernet/blob/master/tb/eth_mac_10g_fifo/test_eth_mac_10g_fifo.py#L117 |
Beta Was this translation helpful? Give feedback.
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…