Changeset 641 for branches/v4
- Timestamp:
- Feb 20, 2014, 5:05:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/v4/platforms/tsarv4_mono_mmu_ioc/top.cpp
r640 r641 91 91 char *dsk_path; 92 92 bool dummy_boot; 93 bool framebuffer; 93 94 bool trace_enabled; 94 95 size_t trace_start_cycle; … … 97 98 #define PARAM_INITIALIZER \ 98 99 { \ 99 .rom_path = NULL, \100 .dsk_path = NULL, 100 .rom_path = NULL, \ 101 .dsk_path = NULL, \ 101 102 .dummy_boot = false, \ 103 .framebuffer = false, \ 102 104 .trace_enabled = false, \ 103 105 .trace_start_cycle = 0 \ … … 110 112 std::cout << " rom = " << param.rom_path << std::endl; 111 113 std::cout << " dummy boot = " << param.dummy_boot << std::endl; 114 std::cout << " framebuffer = " << param.framebuffer << std::endl; 112 115 std::cout << " dsk = " << param.dsk_path << std::endl; 113 116 std::cout << " trace = " << param.trace_enabled << std::endl; … … 143 146 n = n - 1; 144 147 } 148 else if (strcmp(argv[n], "--framebuffer") == 0) 149 { 150 param.framebuffer = true; 151 /* we don't have an extra argument */ 152 n = n - 1; 153 } 145 154 else if ((strcmp(argv[n], "--trace") == 0) && ((n + 1) < argc)) 146 155 { … … 155 164 std::cout << "--dsk pathname" << std::endl; 156 165 std::cout << "[--dummy-boot]" << std::endl; 166 std::cout << "[--framebuffer]" << std::endl; 157 167 std::cout << "[--trace trace_start_cycle]" << std::endl; 158 168 exit(0); … … 270 280 param.dsk_path); // mapped_file[, block_size=512, latency=0] 271 281 272 VciFrameBuffer<vci_param> fb("fb", IntTab(6), maptabd, FB_XSIZE, FB_YSIZE, 273 FbController::RGB_16); 282 VciFrameBuffer<vci_param> *fb = NULL; 283 if (param.framebuffer == true) 284 fb = new VciFrameBuffer<vci_param>("fb", IntTab(6), maptabd, 285 FB_XSIZE, FB_YSIZE, 286 FbController::RGB_16); 274 287 275 288 VciVgmn<vci_param> vgmnd("vgmnd", maptabd, … … 372 385 bd.p_irq(signal_bd_irq); 373 386 374 fb.p_clk(signal_clk); 375 fb.p_resetn(signal_resetn); 376 fb.p_vci(signal_vci_tgt_d_fb); 387 if (param.framebuffer == true) 388 { 389 fb->p_clk(signal_clk); 390 fb->p_resetn(signal_resetn); 391 fb->p_vci(signal_vci_tgt_d_fb); 392 } 377 393 378 394 vgmnd.p_clk(signal_clk);
Note: See TracChangeset
for help on using the changeset viewer.