-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Each IO contains an IODELAY module, providing a total of 128 (0~127) delays. The delay may be set statically or dynamically. The delay block is enabled immediately before/after the IO pad. This commit adds only the basic primitive, which works on all boards except Tangnano9k - there traditionally uses its own primitive - DELAYC, which will be implemented later. DELAYB primitive will not be implemented because it is found in rare unsupported chips, and the fate of DELAYA is unknown - it is not mentioned in documentation. Delay is formally part of IOLOGIC, but can be used without ddr/oser/ides - as shown in the iodelay.v example. The examples blinky-oddr.v and oser4.v are modified to test the new primitive at the same time. Signed-off-by: YRabbit <[email protected]>
- Loading branch information
Showing
11 changed files
with
138 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* */ | ||
module top ( | ||
input clk, | ||
input key_i, | ||
input rst_i, | ||
input data_i, | ||
input fclk_i, | ||
input LCD_CLK, | ||
input LCD_SYNC, | ||
output [5:0] led | ||
); | ||
|
||
|
||
IODELAY id0( | ||
.DO(led[0]), | ||
.DI(rst_i), | ||
.DF(led[1]), | ||
.SDTAP(data_i), | ||
.SETN(fclk_i), | ||
.VALUE(key_i) | ||
); | ||
defparam id0.C_STATIC_DLY='d96; | ||
|
||
IODELAY od1( | ||
.DO(led[2]), | ||
.DI(LCD_CLK), | ||
.DF(led[3]), | ||
.SDTAP(data_i), | ||
.SETN(fclk_i), | ||
.VALUE(key_i) | ||
); | ||
defparam od1.C_STATIC_DLY='d63; | ||
|
||
endmodule | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters