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

Rmii example #89

Merged
merged 4 commits into from
Feb 3, 2025
Merged

Rmii example #89

merged 4 commits into from
Feb 3, 2025

Conversation

shuchitak
Copy link
Contributor

No description provided.

@shuchitak shuchitak force-pushed the rmii_example branch 5 times, most recently from b5dc6f7 to 5fb9844 Compare January 16, 2025 13:25
@shuchitak shuchitak marked this pull request as ready for review February 3, 2025 11:44
@shuchitak shuchitak requested a review from ed-xmos February 3, 2025 11:44
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how useful this diagram is - would just remove it rather than updating it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'll remove it for now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now wrong, but we know that. It's 4 threads and the names aren't good. Better maybe:

Rx packet, Tx packet, filter, server

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is still the standard MAC diagram. I'll remove it and add the updated block diagram in a separate documentation focussed PR.

@@ -0,0 +1,21 @@
# This file relates to internal XMOS infrastructure and should be ignored by external users
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably ask if this is a new app note. I expect we would need to put it in xmosnotes at some point

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But not a concern right now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this has appnote level documentation. We'll move it to xmosnotes at some point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, none of the images in the images/ directory make sense. I'll remove them all. We can add later

#include "xk_eth_xu316_dual_100m/board.h"
#include "debug_print.h"

rmii_data_port_t p_eth_rxd = {{PHY_0_RXD_4B, USE_LOWER_2B}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be USE_UPPER_2B

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'll fix this. What about rmii_data_port_t p_eth_txd = {{PHY_0_TXD_4B, USE_LOWER_2B}};? Is USE_LOWER_2B for PHY_0_TXD_4B ok?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are both HIGHER as the pinout somewhat reflects what is available on the QF60 even though it's TQ128. Probably should used the LOWER ones as that's a tougher case, but I recall there is a fair bit of margin in the ASM

};

[[combinable]]
void lan8710a_phy_driver(client interface smi_if smi,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function can be deleted

Copy link
Contributor

@ed-xmos ed-xmos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are issues with the diagrams but we know that. With the FW changes I think we can merge this for now and update when we get info about the kit.

It might be worth being clear about which ethernet port is activated in the docs - but again this will be easier to define once we see physical HW.

@shuchitak shuchitak merged commit 924d044 into xmos:develop Feb 3, 2025
1 check passed
@shuchitak shuchitak deleted the rmii_example branch February 3, 2025 16:23
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

Successfully merging this pull request may close these issues.

2 participants