URL
https://opencores.org/ocsvn/simple_spi/simple_spi/trunk
Subversion Repositories simple_spi
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 4 to Rev 5
- ↔ Reverse comparison
Rev 4 → Rev 5
/trunk/rtl/verilog/simple_spi_top.v
34,10 → 34,10
|
// CVS Log |
// |
// $Id: simple_spi_top.v,v 1.1.1.1 2002-12-22 16:07:15 rherveille Exp $ |
// $Id: simple_spi_top.v,v 1.2 2003-01-07 13:29:52 rherveille Exp $ |
// |
// $Date: 2002-12-22 16:07:15 $ |
// $Revision: 1.1.1.1 $ |
// $Date: 2003-01-07 13:29:52 $ |
// $Revision: 1.2 $ |
// $Author: rherveille $ |
// $Locker: $ |
// $State: Exp $ |
44,7 → 44,10
// |
// Change History: |
// $Log: not supported by cvs2svn $ |
// Revision 1.1.1.1 2002/12/22 16:07:15 rherveille |
// Initial release |
// |
// |
|
|
|
235,14 → 238,18
clkcnt <= #1 clkcnt - 10'h1; |
else |
case (espr) // synopsys full_case parallel_case |
4'h0: clkcnt <= #1 10'h0; // 2 |
4'h1: clkcnt <= #1 10'h1; // 4 |
4'h2: clkcnt <= #1 10'h7; // 16 |
4'h3: clkcnt <= #1 10'hf; // 32 |
4'h4: clkcnt <= #1 10'h3f; // 128 |
4'h5: clkcnt <= #1 10'h7f; // 256 |
4'h6: clkcnt <= #1 10'h1ff; // 1024 |
4'h7: clkcnt <= #1 10'h3ff; // 2048 |
4'b0000: clkcnt <= #1 10'h0; // 2 -- original M68HC11 coding |
4'b0001: clkcnt <= #1 10'h1; // 4 -- original M68HC11 coding |
4'b0010: clkcnt <= #1 10'h7; // 16 -- original M68HC11 coding |
4'b0011: clkcnt <= #1 10'hf; // 32 -- original M68HC11 coding |
4'b0100: clkcnt <= #1 10'h3; // 8 |
4'b0101: clkcnt <= #1 10'h1f; // 64 |
4'b0110: clkcnt <= #1 10'h3f; // 128 |
4'b0111: clkcnt <= #1 10'h7f; // 256 |
4'b1000: clkcnt <= #1 10'hff; // 512 |
4'b1001: clkcnt <= #1 10'h1ff; // 1024 |
4'b1010: clkcnt <= #1 10'h3ff; // 2048 |
4'b1011: clkcnt <= #1 10'h7ff; // 4096 |
endcase |
|
// generate internal SCK |