OpenCores
URL https://opencores.org/ocsvn/simple_customized_counter/simple_customized_counter/trunk

Subversion Repositories simple_customized_counter

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /simple_customized_counter
    from Rev 47 to Rev 48
    Reverse comparison

Rev 47 → Rev 48

/trunk/TestCounterOprEventBoard/src/CDecoder.psc
0,0 → 1,38
component CDecoder (in active uint:4 iKeys,
in passive uint:10 iSwitches,
out active Opr_t oOpr,
out passive ubyte oLoadValue)
{
// This component decodes the Keys and the Switches input port as follow:
//
// Switches bits 7-0 --> oLoadValue
//
// Keys An event on Keys generates an event on oOpr
// bit 0 --> Reset
// bit 1 --> Up
// bit 2 --> Down
// bit 3 --> Load
 
enum KeyCmd_t { cKeyReset = 1, cKeyUp = 2, cKeyDown = 4, oKeyLoad = 8 };
 
Decode(0) on iKeys
{
// Send the event
oOpr:;
 
// Decode the operation
oOpr = switch(iKeys)
{
case cKeyReset: cOprReset;
case cKeyUp: cOprUp;
case cKeyDown: cOprDown;
case oKeyLoad: cOprLoad;
default: (uint:3)0;
};
}
always()
{
oLoadValue = (ubyte)bits(iSwitches, 7ub, 0ub);
}
};
/trunk/TestCounterOprEventBoard/src/CDecoder.vmc Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/TestCounterOprEventBoard/src/CDecoder.vmc Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/TestCounterOprEventBoard/src/main.vmc =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/TestCounterOprEventBoard/src/main.vmc =================================================================== --- trunk/TestCounterOprEventBoard/src/main.vmc (nonexistent) +++ trunk/TestCounterOprEventBoard/src/main.vmc (revision 48)
trunk/TestCounterOprEventBoard/src/main.vmc Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/TestCounterOprEventBoard/src/main.vms =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/TestCounterOprEventBoard/src/main.vms =================================================================== --- trunk/TestCounterOprEventBoard/src/main.vms (nonexistent) +++ trunk/TestCounterOprEventBoard/src/main.vms (revision 48)
trunk/TestCounterOprEventBoard/src/main.vms Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/TestCounterOprEventBoard/targets/DE1SoC.env =================================================================== --- trunk/TestCounterOprEventBoard/targets/DE1SoC.env (nonexistent) +++ trunk/TestCounterOprEventBoard/targets/DE1SoC.env (revision 48) @@ -0,0 +1,75 @@ +[Configuration] + + num = 1 + reset_pin = * + clk_pin = clk + +[Device 1] + + path = TerasicDE1SoC + type = VHDL + parameters = * + +[Port 1] + + name = Keys + mapping_type = bitmap + device_number = 1 + pin_list = Keys + ev_pin = * + mode = External + +[Port 2] + + name = Switches + mapping_type = bitmap + device_number = 1 + pin_list = Switches + ev_pin = * + mode = External + +[Port 3] + + name = Leds + mapping_type = bitmap + device_number = 1 + pin_list = Leds + ev_pin = * + mode = External + +[Port 4] + + name = Hex0 + mapping_type = bitmap + device_number = 1 + pin_list = Hex0 + ev_pin = * + mode = External + +[Port 5] + + name = Hex1 + mapping_type = bitmap + device_number = 1 + pin_list = Hex1 + ev_pin = * + mode = External + +[Port 6] + + name = Hex4 + mapping_type = bitmap + device_number = 1 + pin_list = Hex4 + ev_pin = * + mode = External + +[Port 7] + + name = Hex5 + mapping_type = bitmap + device_number = 1 + pin_list = Hex5 + ev_pin = * + mode = External + Index: trunk/TestCounterOprEventBoard/targets/LedSwDriver.env =================================================================== --- trunk/TestCounterOprEventBoard/targets/LedSwDriver.env (nonexistent) +++ trunk/TestCounterOprEventBoard/targets/LedSwDriver.env (revision 48) @@ -0,0 +1,62 @@ +[Device 2] + + path = LedSwVgaDriver.dll + type = LOCAL + parameters = C:\Novakod_Studio\bsp\TerasicDE1SoC\lib\ 0 + +[Port 1] + + name = Keys + mapping_type = data + device_number = 2 + data_index = 1 + byte_length = 1 + +[Port 2] + + name = Switches + mapping_type = data + device_number = 2 + data_index = 2 + byte_length = 2 + +[Port 3] + + name = Leds + mapping_type = data + device_number = 2 + data_index = 1 + byte_length = 2 + +[Port 4] + + name = Hex0 + mapping_type = data + device_number = 2 + data_index = 2 + byte_length = 1 + +[Port 5] + + name = Hex1 + mapping_type = data + device_number = 2 + data_index = 3 + byte_length = 1 + +[Port 6] + + name = Hex4 + mapping_type = data + device_number = 2 + data_index = 6 + byte_length = 1 + +[Port 7] + + name = Hex5 + mapping_type = data + device_number = 2 + data_index = 7 + byte_length = 1 + Index: trunk/TestCounterOprEventBoard/Counter.rpj =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/TestCounterOprEventBoard/Counter.rpj =================================================================== --- trunk/TestCounterOprEventBoard/Counter.rpj (nonexistent) +++ trunk/TestCounterOprEventBoard/Counter.rpj (revision 48)
trunk/TestCounterOprEventBoard/Counter.rpj Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/TestCounterOprEventBoard/ReadMe.docx =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/TestCounterOprEventBoard/ReadMe.docx =================================================================== --- trunk/TestCounterOprEventBoard/ReadMe.docx (nonexistent) +++ trunk/TestCounterOprEventBoard/ReadMe.docx (revision 48)
trunk/TestCounterOprEventBoard/ReadMe.docx Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/TestCounterOprEventBoard/ReadMe.pdf =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/TestCounterOprEventBoard/ReadMe.pdf =================================================================== --- trunk/TestCounterOprEventBoard/ReadMe.pdf (nonexistent) +++ trunk/TestCounterOprEventBoard/ReadMe.pdf (revision 48)
trunk/TestCounterOprEventBoard/ReadMe.pdf Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.