## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
##
import math
license = 'gplv2+'
inputs = ['logic']
outputs = []
+ tags = ['Debug/trace']
options = (
{'id': 'debug', 'desc': 'Debug', 'default': 'no', 'values': ('yes', 'no') },
)
('address', 'Address'),
('data-write', 'Data write'),
('data-read', 'Data read'),
- ('debug', 'Debug'),
+ ('debug-msg', 'Debug message'),
)
annotation_rows = (
('bits', 'Bits', (0,)),
self.sync_reflen_min = math.floor(self.samplerate * 64 / self.HSI_max)
self.sync_reflen_max = math.ceil(self.samplerate * 128 / (self.HSI_min / 2))
- if self.options['debug'] == 'yes':
- self.debug = True
- else:
- self.debug = False
+ self.debug = True if self.options['debug'] == 'yes' else False
# The SWIM entry sequence is 4 pulses at 2kHz followed by 4 at 1kHz.
self.eseq_reflen = math.ceil(self.samplerate / 2048)