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

TDO is driven on th rising edge of tck #173

Closed
omerguzelelectronicguy opened this issue Sep 24, 2024 · 1 comment
Closed

TDO is driven on th rising edge of tck #173

omerguzelelectronicguy opened this issue Sep 24, 2024 · 1 comment

Comments

@omerguzelelectronicguy
Copy link

// TDO changes state at negative edge of TCK
always_ff @(posedge tck_n, negedge trst_ni) begin : p_tdo_regs
if (!trst_ni) begin
td_o <= 1'b0;
tdo_oe_o <= 1'b0;
end else begin
td_o <= tdo_mux;
tdo_oe_o <= (shift_ir | shift_dr);
end
end

As I understand the jtag standarts tells that tdo should be driven in the falling edge of the tck. It is also left as comment in the code section above. However, It is driven in the rising edge. Did I misunderstand the standart? What am I missing? Or Is this just a small bug in the code?

@omerguzelelectronicguy
Copy link
Author

I missed that it is driven in posedge of tck_n which is negedge of tck.

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