Changeset 374 for trunk/modules
- Timestamp:
- Apr 18, 2013, 1:28:33 PM (12 years ago)
- Location:
- trunk/modules/vci_block_device_tsar
- Files:
-
- 4 deleted
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_block_device_tsar/caba/metadata/vci_block_device_tsar.sd
r371 r374 2 2 # -*- python -*- 3 3 4 Module('caba:vci_block_device_tsar _v4',5 classname = 'soclib::caba::VciBlockDeviceTsar V4',4 Module('caba:vci_block_device_tsar', 5 classname = 'soclib::caba::VciBlockDeviceTsar', 6 6 tmpl_parameters = [ parameter.Module('vci_param', default = 'caba:vci_param'), ], 7 header_files = ['../source/include/vci_block_device_tsar _v4.h', ],8 interface_files = ['../../include/soclib/block_device_tsar _v4.h', ],9 implementation_files = ['../source/src/vci_block_device_tsar _v4.cpp',],7 header_files = ['../source/include/vci_block_device_tsar.h', ], 8 interface_files = ['../../include/soclib/block_device_tsar.h', ], 9 implementation_files = ['../source/src/vci_block_device_tsar.cpp',], 10 10 ports = [ 11 11 Port('caba:vci_target', 'p_vci_target'), -
trunk/modules/vci_block_device_tsar/caba/source/include/vci_block_device_tsar.h
r371 r374 73 73 /////////////////////////////////////////////////////////////////////////// 74 74 75 #ifndef SOCLIB_VCI_BLOCK_DEVICE_TSAR_ V4_H76 #define SOCLIB_VCI_BLOCK_DEVICE_TSAR_ V4_H75 #ifndef SOCLIB_VCI_BLOCK_DEVICE_TSAR_H 76 #define SOCLIB_VCI_BLOCK_DEVICE_TSAR_H 77 77 78 78 #include <stdint.h> … … 89 89 90 90 template<typename vci_param> 91 class VciBlockDeviceTsar V491 class VciBlockDeviceTsar 92 92 : public caba::BaseModule 93 93 { … … 200 200 protected: 201 201 202 SC_HAS_PROCESS(VciBlockDeviceTsar V4);202 SC_HAS_PROCESS(VciBlockDeviceTsar); 203 203 204 204 public: … … 214 214 215 215 // Constructor 216 VciBlockDeviceTsar V4(216 VciBlockDeviceTsar( 217 217 sc_module_name name, 218 218 const soclib::common::MappingTable &mt, … … 227 227 }} 228 228 229 #endif /* SOCLIB_VCI_BLOCK_DEVICE_TSAR_ V4_H */229 #endif /* SOCLIB_VCI_BLOCK_DEVICE_TSAR_H */ 230 230 231 231 // Local Variables: -
trunk/modules/vci_block_device_tsar/caba/source/src/vci_block_device_tsar.cpp
r371 r374 30 30 #include <iostream> 31 31 #include <fcntl.h> 32 #include "vci_block_device_tsar _v4.h"32 #include "vci_block_device_tsar.h" 33 33 34 34 namespace soclib { namespace caba { 35 35 36 #define tmpl(t) template<typename vci_param> t VciBlockDeviceTsar V4<vci_param>36 #define tmpl(t) template<typename vci_param> t VciBlockDeviceTsar<vci_param> 37 37 38 38 using namespace soclib::caba; … … 535 535 536 536 ////////////////////////////////////////////////////////////////////////////// 537 tmpl(/**/)::VciBlockDeviceTsar V4( sc_core::sc_module_name name,537 tmpl(/**/)::VciBlockDeviceTsar( sc_core::sc_module_name name, 538 538 const soclib::common::MappingTable &mt, 539 539 const soclib::common::IntTab &srcid, … … 571 571 (block_size != 4096) ) 572 572 { 573 std::cout << "Error in component VciBlockDeviceTsar V4: " << name << std::endl;573 std::cout << "Error in component VciBlockDeviceTsar : " << name << std::endl; 574 574 std::cout << "The block size must be 128, 256, 512, 1024, 2048 or 4096 bytes" << std::endl; 575 575 exit(1); … … 583 583 (burst_size != 64) ) 584 584 { 585 std::cout << "Error in component VciBlockDeviceTsar V4: " << name << std::endl;585 std::cout << "Error in component VciBlockDeviceTsar : " << name << std::endl; 586 586 std::cout << "The burst size must be 1, 2, 4, 8, 16, 32 or 64 bytes" << std::endl; 587 587 exit(1); … … 589 589 if ( m_segment.size() < 32 ) 590 590 { 591 std::cout << "Error in component VciBlockDeviceTsar V4: " << name << std::endl;591 std::cout << "Error in component VciBlockDeviceTsar : " << name << std::endl; 592 592 std::cout << "The size of the segment cannot be smaller than 32 bytes" << std::endl; 593 593 exit(1); … … 595 595 if ( (m_segment.baseAddress() & 0x0000001F) != 0 ) 596 596 { 597 std::cout << "Error in component VciBlockDeviceTsar V4: " << name << std::endl;597 std::cout << "Error in component VciBlockDeviceTsar : " << name << std::endl; 598 598 std::cout << "The base address of the segment must be multiple of 32 bytes" << std::endl; 599 599 exit(1); … … 601 601 if ( vci_param::B != 4 ) 602 602 { 603 std::cout << "Error in component VciBlockDeviceTsar V4: " << name << std::endl;603 std::cout << "Error in component VciBlockDeviceTsar : " << name << std::endl; 604 604 std::cout << "The VCI data fields must have 32 bits" << std::endl; 605 605 exit(1); … … 608 608 if ( m_fd < 0 ) 609 609 { 610 std::cout << "Error in component VciBlockDeviceTsar V4: " << name << std::endl;610 std::cout << "Error in component VciBlockDeviceTsar : " << name << std::endl; 611 611 std::cout << "Unable to open file " << filename << std::endl; 612 612 exit(1); -
trunk/modules/vci_block_device_tsar/include/soclib/block_device_tsar.h
r371 r374 25 25 * Maintainers: alain 26 26 */ 27 #ifndef BLOCK_DEVICE_TSAR_ V4_REGS_H28 #define BLOCK_DEVICE_TSAR_ V4_REGS_H27 #ifndef BLOCK_DEVICE_TSAR_REGS_H 28 #define BLOCK_DEVICE_TSAR_REGS_H 29 29 30 30 enum SoclibBlockDeviceRegisters { … … 54 54 }; 55 55 56 #endif /* BLOCK_DEVICE_TSAR_ V4_REGS_H */56 #endif /* BLOCK_DEVICE_TSAR_REGS_H */ 57 57 58 58 // Local Variables:
Note: See TracChangeset
for help on using the changeset viewer.