Forum Discussion
Altera_Forum
Honored Contributor
8 years agoPISO reg issue
Hello there. I am trying to implement PISO register with this code (dout and tmp are regs)
always @(posedge sclk)
begin
if (cs == 0)
begin
dout <= tmp;
...
Altera_Forum
Honored Contributor
8 years agoHi,
--- Quote Start --- If i simply wrote if (sclk_adc) ... else... my shift regs will load with main clock since this block is posedge clk_i, so i created pos and neg edge detectors which work well enough, but they latched on the next clk after pos_sclk detected, why? --- Quote End --- It seems to be latched on the next clk after pos_sclk detected but if you check carefully the posedge clk_i & posedge reset wave then you we will reliase that it is looking for posedge clk_i or posedge reset event when pos_sclk is High. Refer the yellow colored cursor portion in the attached screenshot. Let me know if this has helped resolve the issue you are facing or if you need any further assistance. Best Regards Vikas Jathar (This message was posted on behalf of Intel Corporation)