embedded lab
embedded lab
(SEQUENTIAL LOGIC)
DESIGN:
Step 1: Open Quartus II
1. Launch the Quartus II software.
2. Create a new project by clicking File > New Project Wizard.
SIMULATION:
Open the Waveform Editor:
Go to File > New > University Program VWF (Vector Waveform File) or Simulation > New
Waveform File.
Insert Nodes/Signals:
Use Node Finder to add the signals (J, K, CLK, Q, Q_bar) from your design.
Set Clock Signal (CLK):
Define the clock's period (e.g., 20 ns for 50 MHz) and duty cycle (e.g., 50%).
Set Input Signals (J, K):
To set the J and K signals manually:
o Option 1: Use the Toolbar:
Select the time range in the waveform timeline where you want the input to be 1 or
0.
Use the Force High (1) or Force Low (0) icons on the toolbar to set the value.
o Option 2: Draw the Waveform:
Click and drag the waveform for J or K to manually create high (1) or low (0) regions.
Save Your Work:
Set the .vwf file as the simulation input file (under Assignments > Settings > Simulation).
Run the simulation, and the outputs will be displayed in the Waveform Editor.