Changeset 557 for trunk/modules/sdmmc/caba
- Timestamp:
- Oct 23, 2013, 12:12:44 AM (11 years ago)
- Location:
- trunk/modules/sdmmc/caba/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/sdmmc/caba/source/include/sdmmc.h
r556 r557 81 81 82 82 // methods 83 void transition(); 84 void genMoore(); 83 void genMealy(); 85 84 86 85 void handle_sdmmc_cmd(uint8_t, uint32_t); -
trunk/modules/sdmmc/caba/source/src/sdmmc.cpp
r556 r557 40 40 41 41 //////////////////////// 42 void SdMMC:: transition()42 void SdMMC::genMealy() 43 43 { 44 44 if(p_resetn.read() == false) … … 200 200 break; 201 201 } 202 spi_clk = p_spi_clk.read(); 203 } // end transition 204 205 ////////////////////// 206 void SdMMC::genMoore() 207 { 202 203 //// now genrate output signal 204 208 205 switch(spi_fsm) { 209 206 case S_IDLE: … … 217 214 break; 218 215 } 219 } // end GenMoore() 216 spi_clk = p_spi_clk.read(); 217 } // end GenMealy() 220 218 221 219 … … 487 485 std::cout << " - Building SdMMC " << name << std::endl; 488 486 489 SC_METHOD(transition); 490 dont_initialize(); 491 sensitive << p_clk.pos(); 492 493 SC_METHOD(genMoore); 487 SC_METHOD(genMealy); 494 488 dont_initialize(); 495 489 sensitive << p_clk.neg(); 490 sensitive << p_resetn; 491 sensitive << p_spi_ss; 492 sensitive << p_spi_clk; 496 493 497 494 m_fd = ::open(filename.c_str(), O_RDWR);
Note: See TracChangeset
for help on using the changeset viewer.