control_registers.py revision 5933
15933Sgblack@eecs.umich.edu# Copyright (c) 2009 The Regents of The University of Michigan 25933Sgblack@eecs.umich.edu# All rights reserved. 35933Sgblack@eecs.umich.edu# 45933Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 55933Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 65933Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 75933Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 85933Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 95933Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 105933Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 115933Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 125933Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 135933Sgblack@eecs.umich.edu# this software without specific prior written permission. 145933Sgblack@eecs.umich.edu# 155933Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 165933Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 175933Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 185933Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 195933Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 205933Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 215933Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 225933Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 235933Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 245933Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 255933Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 265933Sgblack@eecs.umich.edu# 275933Sgblack@eecs.umich.edu# Authors: Gabe Black 285933Sgblack@eecs.umich.edu 295933Sgblack@eecs.umich.edumicrocode = ''' 305933Sgblack@eecs.umich.edudef macroop CLTS { 315933Sgblack@eecs.umich.edu rdcr t1, 0, dataSize=8 325933Sgblack@eecs.umich.edu andi t1, t1, 0xF7, dataSize=1 335933Sgblack@eecs.umich.edu wrcr 0, t1, dataSize=8 345933Sgblack@eecs.umich.edu}; 355933Sgblack@eecs.umich.edu''' 36