From 4dbad4f7d5340fdcaa42dbfe486a99cea1ddba82 Mon Sep 17 00:00:00 2001 From: Daniel Benusovich Date: Wed, 13 Feb 2019 22:22:48 -0800 Subject: [PATCH] Adding header comments for validator --- TLB/PermissionValidator.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/TLB/PermissionValidator.py b/TLB/PermissionValidator.py index 4e4b7918..7cc12d93 100644 --- a/TLB/PermissionValidator.py +++ b/TLB/PermissionValidator.py @@ -1,15 +1,18 @@ from nmigen import Signal from nmigen.cli import main -# The expected form of the data is -# Item (Bits) -# Tag (N - 79) / ASID (78 - 64) / PTE (63 - 0) - # The purpose of this Module is to check the Permissions of a given PTE # against the requested access permissions. # This module will either validate (by setting the valid bit HIGH) the request # or find a permission fault and invalidate (by setting the valid bit LOW) # the request +# +# Arguments: +# data_size: (bit count) The size of the data words being processed +# +# Return: +# 1. Data is valid -> valid is HIGH +# 2. Data is not valid -> valid is LOW class PermissionValidator(): def __init__(self, data_size): # Input -- 2.30.2