Up Down Counter
Up Down Counter
Up Down Counter
DEVICES
WEL LAB
6BIT-UP-DOWN-COUNTER
CONTENTS:
INTRODUCTION ..
GETTING STARTED.
DESIGN ENTRY.
PIN ASSIGNMENT.
REFERENCES.
Fig-1
2. Click Next.
Fig-3
5. In the next step we have to select the FPGA or CPLD device which
we are using on our board (select MAX 3000A) as shown in fig -4
make all the settings as shown in the Fig-4.
7. Click next , summary of project and its details are shown in the next
window.fig-6
In the design entry phase, you use RTL or schematic entry to create
the logic to be implemented in the device. You also make pin
assignments, including pin placement information, and timing
constraints that might be necessary for building a functioning design.
In the design entry step you create a schematic or Block Design File
(.bdf) or Hdl file (Vhdl, Verilog) that is the top-level design. You can
add library of parameterized modules (LPM) functions and use
Verilog HDL code to add a logic block.
When creating your own designs, you can choose any of these
methods or a combination of them.
a. Choose File > New > Verilog Hdl File/Schematic File (see Fig-7)
to create a new file, Verilog.v file which you will save as the top-
level design.
b. Click OK.
c. Choose File > Save As and enter the following information (see
fig-8).
File name: shift_register.
Save as type: Verilog Hdl File(*.v).
Fig-8
d. Type the following Verilog HDL code into the blank
shift_register file and save it. (see fig -9).
endmodule
In this section, you will make pin assignments. Follow the steps given
below for making assignment.
1. Once the design is compiled, you can choose what pins to assign as
input/output from Pin Planner under the Assignments tab in the
Menu bar. It opens windows as shown below. Fig-11
Fig-11
2. Re-run the compiler and make sure that there are no errors.
3. The pins which have been configured as input and output on the
board are listed. Onboard clock is on pin no 43.
Fig(a)
5. Since the CPLD is the only device in the JTAG chain, type the part
0 command. In case you have other devices connected to the JTAG
chain, you can choose the appropriate device by specifying the
corresponding part number.