OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [rtl/] [verilog/] [components/] [smii/] [smii_sync.v] - Diff between revs 18 and 42

Show entire file | Details | Blame | View Log

Rev 18 Rev 42
Line 41... Line 41...
module smii_sync
module smii_sync
  (
  (
   // SMII sync
   // SMII sync
    output            sync,
    output            sync,
   // internal
   // internal
    output reg [1:10] state,
   output reg [10:1] state, // Changed for verilator -- jb
   // clock amd reset
   // clock amd reset
    input             clk,
    input             clk,
    input             rst
    input             rst
   );
   );
 
 
   // sync shall go high every 10:th cycle
   // sync shall go high every 10:th cycle
   always @ (posedge clk or posedge rst)
   always @ (posedge clk or posedge rst)
     if (rst)
     if (rst)
       state <= 10'b0000000001;
       state <= 10'b1000000000;
     else
     else
       state <= {state[10],state[1:9]};
       state <= {state[9:1],state[10]};
 
 
   assign sync = state[1];
   assign sync = state[1];
 
 
endmodule // smii_sync
endmodule // smii_sync
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.