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

How a processor reads data from a network card #149

Open
Mr-robot5 opened this issue Jun 1, 2020 · 3 comments
Open

How a processor reads data from a network card #149

Mr-robot5 opened this issue Jun 1, 2020 · 3 comments

Comments

@Mr-robot5
Copy link

Please answer my question, I don’t get it out of my head because there is no idea how this happens.
How a processor reads data from a network card??
Suppose an interruption occurred. And then what? How does he know in which transistor to send NOR or HOT, etc. How does he skip and calculate this source data and get the data that we need?

@tuhdo
Copy link
Owner

tuhdo commented Jun 1, 2020

You should look for DMA - Direct Memory Access. Typically, a NIC card is also a mini-computer that can send/receive network data and can directly access the system memory. Thus, the NIC can place data there when it receives network data, then send an interrupt to the CPU to notify some data is ready.

Transistors is just a building block for higher level functions. Think of transistors as bricks in your house. For example, if you want to mount your TV, you say you mount it on your wall, not on a brick. Bricks constitute the wall that you can use. Of course, if there is no brick, then there is no wall.

@Mr-robot5
Copy link
Author

And what is AND, NOR, NOT, OR? Isn't that a transistor? I got confused about something.

@Mr-robot5
Copy link
Author

But when the processor reads the data, it passes them through the transistors OR, AND, NOR, NOT, and so on?

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

2 participants