Here, we are designing a positive edge-triggered JK Flipflop. The always keyword makes sure the statements between begin and end will be executed as soon as the sensitivity list is triggered. Therefore, we have to make sure the outputs retain their value until the next value is given to them. Why? We define output using the reg datatype because we use procedural assignments. Wait! Did we mention output as reg? Yes, we did. Behavioral Modeling of JK Flip FlopĪs always, we start with the module declaration and the port declarations module jkff_behave(clk,j,knq,qbar) Using the described behavior, we can start coding. CLOCK J K Q Q’ State Positive edge 0 0 Q Q’ No change Positive edge 0 1 0 1 Reset Positive edge 1 0 1 0 Set Positive edge 1 1 (Q prev)’ Q prev Toggle
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |