Created
September 21, 2018 16:25
-
-
Save jrmmendes/a5f60b21c812944cd83fb9ee79cc1283 to your computer and use it in GitHub Desktop.
Edge identifier in AHDL
This file contains hidden or 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
TITLE "RISING EDGE IDENTIFIER"; | |
SUBDESIGN edge_identifier ( | |
x, clock: INPUT; | |
rising_edge: OUTPUT; | |
) | |
VARIABLE | |
ss: MACHINE WITH STATES (s0, s1); | |
TABLE | |
ss, x => ss, rising_edge; | |
s0, 0 => s0, 0; | |
s0, 1 => s1, 1; | |
s1, 0 => s0, 0; | |
s1, 1 => s1, 0; | |
END TABLE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment