Changeset 640 for branches/v4/platforms


Ignore:
Timestamp:
Feb 20, 2014, 5:05:50 PM (11 years ago)
Author:
porquet
Message:

add framebuffer component

Location:
branches/v4/platforms/tsarv4_mono_mmu_ioc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/v4/platforms/tsarv4_mono_mmu_ioc/desc.py

    r639 r640  
    1414            Uses('caba:vci_timer'),
    1515            Uses('caba:vci_block_device_tsar_v4'),
     16            Uses('caba:vci_framebuffer'),
    1617            Uses('caba:vci_vgmn'),
    1718            Uses('caba:vci_mem_cache_v4'),
  • branches/v4/platforms/tsarv4_mono_mmu_ioc/segmentation.h

    r636 r640  
    2020#define BD_SIZE     0x00000020 // 8 mapped-registers
    2121
     22#define FB_XSIZE    640
     23#define FB_YSIZE    480
     24#define FB_BASE     0x20000000
     25#define FB_SIZE     (FB_XSIZE * FB_YSIZE * 2)
     26
    2227#endif
  • branches/v4/platforms/tsarv4_mono_mmu_ioc/top.cpp

    r639 r640  
    3333#include "vci_timer.h"
    3434#include "vci_block_device_tsar_v4.h"
     35#include "vci_framebuffer.h"
    3536
    3637#include "vci_vgmn.h"
     
    197198    maptabd.add(Segment("timer_d" , TIMER_BASE , TIMER_SIZE , IntTab(4), false));
    198199    maptabd.add(Segment("bd_d"    , BD_BASE    , BD_SIZE    , IntTab(5), false));
     200    maptabd.add(Segment("fb_d"    , FB_BASE    , FB_SIZE    , IntTab(6), false));
    199201
    200202    std::cout << maptabd << std::endl;
     
    268270            param.dsk_path); // mapped_file[, block_size=512, latency=0]
    269271
     272    VciFrameBuffer<vci_param> fb("fb", IntTab(6), maptabd, FB_XSIZE, FB_YSIZE,
     273            FbController::RGB_16);
     274
    270275    VciVgmn<vci_param> vgmnd("vgmnd", maptabd,
    271             2, 6,       // #initiators, #targets
     276            2, 7,       // #initiators, #targets
    272277            2, 8,       // min_latency, FIFO depth
    273278            IntTab(1)); // default target
     
    313318    VciSignals<vci_param> signal_vci_ini_d_bd("signal_vci_ini_d_bd");
    314319    VciSignals<vci_param> signal_vci_tgt_d_bd("signal_vci_tgt_d_bd");
     320
     321    VciSignals<vci_param> signal_vci_tgt_d_fb("signal_vci_tgt_d_fb");
    315322
    316323    /*
     
    364371    bd.p_vci_initiator(signal_vci_ini_d_bd);
    365372    bd.p_irq(signal_bd_irq);
     373
     374    fb.p_clk(signal_clk);
     375    fb.p_resetn(signal_resetn);
     376    fb.p_vci(signal_vci_tgt_d_fb);
    366377
    367378    vgmnd.p_clk(signal_clk);
     
    375386    vgmnd.p_to_target[4](signal_vci_tgt_d_timer);
    376387    vgmnd.p_to_target[5](signal_vci_tgt_d_bd);
     388    vgmnd.p_to_target[6](signal_vci_tgt_d_fb);
    377389
    378390    vgmnc.p_clk(signal_clk);
Note: See TracChangeset for help on using the changeset viewer.