URL
https://opencores.org/ocsvn/statled/statled/trunk
Subversion Repositories statled
Compare Revisions
- This comparison shows the changes necessary to convert path
/statled/trunk
- from Rev 4 to Rev 5
- ↔ Reverse comparison
Rev 4 → Rev 5
/rtl/statled.v
39,7 → 39,7
// Capture status inputs |
// |
always @(posedge clk or posedge rst) |
if (rst) |
if (rst) |
str <= #tDLY 0; |
else |
str <= #tDLY status; |
48,19 → 48,19
// Shift register and bit counter |
// |
always @(posedge clk or posedge rst) |
if (rst) |
if (rst) |
bcnt <= #tDLY 15; |
else if (bcnt == 16) |
else if (bcnt == 16) |
bcnt <= #tDLY 0; |
else if (rate) |
else if (rate) |
bcnt <= #tDLY bcnt + 1; |
|
always @(posedge clk or posedge rst) |
if (rst) |
if (rst) |
lsr <= #tDLY 0; |
else if (bcnt == 16) |
else if (bcnt == 16) |
lsr <= #tDLY cr; |
else if (rate) |
else if (rate) |
lsr <= #tDLY lsr << 1; |
|
assign led = rst? 1 : lsr[15]; |