Rustum
Newbie level 4
Hi all,,
I am getting the following error in mode code.What are the possible causes for it?
As i have declared the states as parameter but really dont know why it is happening?
Second query is---
can i write the condition in if statement like below-
"if(sclk_sig==1 and miso==0)"-------it is throwing an error.
Please help me!!!
I am getting the following error in mode code.What are the possible causes for it?
Code:
HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 123: <idle> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 136: <read_block> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 142: <read_block_wait> is already declared.
ERROR:HDLCompiler:806 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 143: Syntax error near "and".
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 153: <read_block_data> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 167: <read_block_crc> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 173: <send_cmd> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 187: <receive_byte_wait> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 205: <receive_byte> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 220: <write_block_cmd> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 233: <write_block_init> is already declared.
ERROR:HDLCompiler:31 - "C:/Users/gyan.CYSEMI/Documents/PSoC Creator/SDIO_MASTER/SDIO_M.v" Line 238: <write_block_data> is already declared.
Second query is---
can i write the condition in if statement like below-
"if(sclk_sig==1 and miso==0)"-------it is throwing an error.
Please help me!!!