User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
labs:seven_segment_controller [2019/05/30 12:26]
jgoeders [Exercise #2 - Seven Segment Controller Verification]
labs:seven_segment_controller [2019/05/30 12:59] (current)
jgoeders [Exercise #3 - Top-Level Circuit]
Line 196: Line 196:
 ^ Port Name ^ Direction ^ Width ^ Function ^ ^ Port Name ^ Direction ^ Width ^ Function ^
 | clk | Input | 1 | 100 MHz System Clock | | clk | Input | 1 | 100 MHz System Clock |
 +| CPU_RESETN | Input | 1 | Active-low reset button |
 | sw | Input | 16 | 16 Slide switches to determine what to display | | sw | Input | 16 | 16 Slide switches to determine what to display |
 | btnc | Input | 1 | Assert all segments (test mode) | | btnc | Input | 1 | Assert all segments (test mode) |
Line 209: Line 210:
 | anode | Output | 8 | Anode signals for each of the eight digits | | anode | Output | 8 | Anode signals for each of the eight digits |
  
-Begin the body of your module by instancing your seven segment controller and attaching the clk input to the top-level clock and the segment and anode signals to the top-level segment and anode signals. You will need to create additional logic to control the other signals of your seven segment controller (dataIn, digitDisplay,​ and digitPoint). In particular, your logic will generate the values for these signals based on the values of the top-level buttons and switches. The figure below provides a high-level diagram of how you should organize your top-level design.+Begin the body of your module by instancing your seven segment controller and attaching the ''​clk'' ​input to the top-level clock, the ''​CPU_RESETN''​ to the ''​reset''​ input (remember to invert it), and the ''​segment'' ​and ''​anode'' ​signals to the top-level ​''​segment'' ​and ''​anode'' ​signals. You will need to create additional logic to control the other signals of your seven segment controller (dataIn, digitDisplay,​ and digitPoint). In particular, your logic will generate the values for these signals based on the values of the top-level buttons and switches. The figure below provides a high-level diagram of how you should organize your top-level design.
  
 {{ :​labs:​seven_segment_control_top.png?​nolink&​500 |}} {{ :​labs:​seven_segment_control_top.png?​nolink&​500 |}}