Changeset 374 for trunk/modules/vci_block_device_tsar/caba/source/src
- Timestamp:
- Apr 18, 2013, 1:28:33 PM (12 years ago)
- Location:
- trunk/modules/vci_block_device_tsar
- Files:
-
- 1 deleted
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
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);
Note: See TracChangeset
for help on using the changeset viewer.