Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the loop back user core issue #10

Open
ducdracaena opened this issue Oct 6, 2022 · 0 comments
Open

the loop back user core issue #10

ducdracaena opened this issue Oct 6, 2022 · 0 comments

Comments

@ducdracaena
Copy link

I want to build a 100G tcp/ip server in fpga, so pc client can send data to server and server can loop back that data to pc client. I have changed the ipert core but that core is only receive. Could you please take a look at that code and let me know where is issue?

switch (serverFsmState)
{
case WAIT_PKG:
	if (!rxMetaData.empty() && !rxDataBuffer.empty())
	{
		rxMetaData.read();
		net_axis<WIDTH> receiveWord = rxDataBuffer.read();
		if (!receiveWord.last)
		{
			serverFsmState = CONSUME;
		}
	}
	break;
case CONSUME:
	if (!rxDataBuffer.empty())
	{
		receiveWord = rxDataBuffer.read();
		if (receiveWord.last)
		{
			serverFsmState = WRITE_PKG;
		}
	}
	break;
case WRITE_PKG:
{
	txDataBuffer.write(receiveWord);
	if (receiveWord.last)
	{
		serverFsmState = WAIT_PKG;
	}
}
	break;
}

Thank you,
Duc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant