Hi, friends, I wrote a module to access the compactflash in true ide mode (pio0), the status register. the clock frequence is 50Mhz, every time I try to read, I got 0x54 from the cf_data, I think I should get 0x50 if it works right. What is wrong with me?? Thanks a lot!
following is the code:
wire cf_oe=1'b0; wire cf_reg=1'b1; wire cf_we=1'b1; wire cf_dasp=1'b1;
parameter pio0_t1=5'd5, pio0_t2=5'd22, pio0_t3=5'd23, pio0_t4=5'd30;
reg [4:0] cfcnt; always @(posedge clk or negedge reset) if (~reset) cfcnt