mnipsy
Newbie level 4
Hi Everyone,
I have one SD card, two SD Sniffers and an Actel Dev board. (Click for their products information)
What I wanna do is like this: insert one SD sniffer without a SD card into my computer, connect it to the FPGA board as input, then connect another SD sniffer with SD card to the FPGA board as output. The FPGA board will do nothing but work as a buffer. I expect that my computer could detect the SD card through above connection, however it doesn't work.
Below is my Verilog code:
module aa(sck,sck_o,MOSI,MOSI_o,MISO,MIS,gnd1,gnd3,vcc,vcc_o);
input sck,MOSI,MISO,vcc,gnd1;
output sck_o,MOSI_o,MIS,vcc_o,gnd3;
buf b1(sck_o,sck);
buf b2(MOSI_o,MOSI);
buf b3(MIS,MISO);
buf b4(gnd3,gnd1);
buf b5(vcc_o,vcc);
endmodule
I assign all the I/O to GPIO ports in the Dev board.
Could someone give me some suggestions why it doesn't work? I'm wondering whether I should assign ground=0 or something? And for the Vcc, should I provide specific voltage for it? At first, I thought since the input SD sniffer is connected to computer, it should provide the voltage it need itself.
Thanks in advance!
- - - Updated - - -
I will appreciate any advise plz! It has been troubling me for almost 2 weeks...
I just couldn't find the problem...and none around me can help me...
I have one SD card, two SD Sniffers and an Actel Dev board. (Click for their products information)
What I wanna do is like this: insert one SD sniffer without a SD card into my computer, connect it to the FPGA board as input, then connect another SD sniffer with SD card to the FPGA board as output. The FPGA board will do nothing but work as a buffer. I expect that my computer could detect the SD card through above connection, however it doesn't work.
Below is my Verilog code:
module aa(sck,sck_o,MOSI,MOSI_o,MISO,MIS,gnd1,gnd3,vcc,vcc_o);
input sck,MOSI,MISO,vcc,gnd1;
output sck_o,MOSI_o,MIS,vcc_o,gnd3;
buf b1(sck_o,sck);
buf b2(MOSI_o,MOSI);
buf b3(MIS,MISO);
buf b4(gnd3,gnd1);
buf b5(vcc_o,vcc);
endmodule
I assign all the I/O to GPIO ports in the Dev board.
Could someone give me some suggestions why it doesn't work? I'm wondering whether I should assign ground=0 or something? And for the Vcc, should I provide specific voltage for it? At first, I thought since the input SD sniffer is connected to computer, it should provide the voltage it need itself.
Thanks in advance!
- - - Updated - - -
I will appreciate any advise plz! It has been troubling me for almost 2 weeks...
I just couldn't find the problem...and none around me can help me...