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

Why is 'cycles_sr[9]' used as part of the 'READ_ST'. #9

Open
CraigBRS opened this issue Oct 29, 2024 · 0 comments
Open

Why is 'cycles_sr[9]' used as part of the 'READ_ST'. #9

CraigBRS opened this issue Oct 29, 2024 · 0 comments

Comments

@CraigBRS
Copy link

CraigBRS commented Oct 29, 2024

I don't understand the section below. Why is 'cycles_sr[9]' used ? Isn't the minimum delay only 3 cycles ? So why is the bit index '9' used ?

 if (state == READ_ST)  begin
     if (cycles_sr[3]) begin
         // command sent, now wait for result
         dq_oen <= 1;
     end
     if (cycles_sr[9])
         wait_for_rd_data <= 1;
     if (wait_for_rd_data && (rwds_in_ris ^ rwds_in_fal)) begin     // sample rwds falling edge to get a word / \_
         dout <= {dq_in_ris, dq_in_fal};
         ram_cs_n <= 1;
         ck_e <= 0;
         state <= IDLE_ST;
     end
 end

@zf3

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