Skip to content

Commit c589d4e

Browse files
authored
Update cpld.rst
1 parent 9b13f1d commit c589d4e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/source/cpld.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The complexity of simulation models can vary a lot and is defined by the require
6161

6262
.. admonition:: Exercise 1: BUFG
6363

64-
#. Write a Verilog module "BUFG" (filename e.g. ``BUFG.v``) with the same IO pin names and basic functionality (hint: one-liner), that can be used within the simulation. Include the module in the ``afe_tb.v`` testbench (e.g. ```include "BUFG.v"``).
64+
#. Write a Verilog module "BUFG" (filename ``BUFG.v``) with the same IO pin names and basic functionality (hint: one-liner), that can be used within the simulation. Include the module in the ``afe_tb.v`` testbench (e.g. ```include "BUFG.v"``).
6565

6666

6767
Simulation
@@ -91,7 +91,7 @@ ToT Counter
9191

9292
The Time-Over-Threshold method yields information about the injected charge by measuring for how long the sensor signal amplitude was above the set threshold. In other words, for how long the comparator output signal is high.
9393

94-
A straightforward method to measure this time interval involves using a binary counter. The counter increments with each cycle of the fast clock (``clk_buf``), as long as the comparator output is high. The counter should be reset when the injection cycle is complete i.e. ``INJ_IN`` is low. Due to limited resources of our CPLD, a reasonable counter width is 8 bits.
94+
A straightforward method to measure this time interval involves using a binary counter. The counter increments with each rising edge of the fast clock (``clk_buf``), as long as the comparator output is high. The counter should be reset when the injection cycle is complete (``INJ_IN`` is low). Due to limited resources of our CPLD, a reasonable counter width is 8 bits.
9595

9696
What is the achievable ToT range and timing resolution? Can it be improved and what are the limitations?
9797

@@ -100,7 +100,7 @@ A description of the SPI protocol can be found in the :ref:`gpio-interface` chap
100100

101101
.. admonition:: Exercise 3: ToT counter
102102

103-
#. Implement a ToT counter and modify the SPI code to transmit the counter value. The pointer register (``ptr``) can be used to serialize the tot counter register by selecting one bit of the vector. Extend the existing ``MISO`` assignment to transfer the tot-counter when ``CS_B`` is low.
103+
#. Implement a ToT counter and modify the SPI code to transmit the counter value. The pointer register (``ptr``) can be used to serialize the ToT counter register. Use ptr as an index for the ToT counter vector. Extend the existing ``MISO`` assignment to transfer the tot-counter when ``CS_B`` is low.
104104
#. Verify your changes in simulation.
105105

106106

@@ -124,7 +124,7 @@ The development of the digital logic can now be done on the local Raspberry Pi w
124124

125125
Examine the output messages. If all tasks are executed without errors, an output file ``afe.xsvf`` will be generated in the folder ``/home/pi/work/ISE``. This file will be used in the next step to program the CPLD.
126126

127-
2. Now you can use the JTAG programming tool ``jtag_programmer`` to program the CPLD (you will need a special cable to connect the CPLD's JTAG interface to the GPIO port of the Raspberry Pi). The programming tool is located in the folder ``/home/pi/Embedded-System-Lab/code/AFE/jtag_programmer``. To execute the tool on the local Raspberry Pi, open a new terminal and type:
127+
2. Now you can use the JTAG programming tool ``jtag_programmer`` to program the CPLD (you will need a special cable to connect the CPLD's JTAG interface to the GPIO port of the Raspberry Pi). The programming tool is located in the folder ``/home/pi/Embedded-System-Lab/code/AFE/jtag_programmer``. To execute the tool on the local Raspberry Pi, open a new terminal and use the following command:
128128

129129
.. code-block::
130130

0 commit comments

Comments
 (0)