Forum Discussion
Altera_Forum
Honored Contributor
16 years agoVerilog Help
Hey Guyz! I need some help with verilog coding. i got this code off opencore website that teaches us how to code a sd card controller.Below shows 2 of the verilog file. A) spiMaster_defin...
Altera_Forum
Honored Contributor
16 years agoFrom the name, the first file appears to contain definitions for constants. The code you listed in 'A' defines two constants which are dependant on whether or not SIM_COMPILE is defined. If SIM_COMPILE is defined, SD_INIT_START_SEQ_LEN will be an 8 bit value of '3'. If SIM_COMPILE is not defined, SD_INIT_START_SEQ_LEN will be hex 'a0'.