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
| module LFSR (CLK, RESET_n, out); | |
| input CLK, RESET_n; | |
| output wire out; | |
| always @(`CLK)begin | |
| if(RESET) | |
| dff[4:0] <= 5'b00001; | |
| else | |
| dff[4:0] <= {exdff[3:0],exdff[1] ^ exdff[4]}; |