Commit cbaeede2 authored by Daniela Genius's avatar Daniela Genius
Browse files

bugfix generation topcell

parent e72fcc64
......@@ -175,7 +175,7 @@ declaration += "caba::VciFdAccess<vci_param> vcifd(\"vcifd\", maptab, IntTab(cp
//DG 28.08.
// declaration += "soclib::caba::FifoVirtualCoprocessorWrapper hwa"+hwa_no+"(\"hwa"+hwa_no+"\",1,1,1,1);"+ CR2;
declaration += "caba::MyHWA"+hwa_no+" hwa"+hwa_no+"(\"hwa"+hwa_no+"\");"+ CR2;
declaration += "dsx::caba::MyHWA"+hwa_no+" hwa"+hwa_no+"(\"hwa"+hwa_no+"\");"+ CR2;
target_no++;
init_no++;
hwa_no++;
......
......@@ -175,20 +175,20 @@ public class MappingTable {
int hwa_count=0;
int MWMRd_SIZE=4096;
int MWMR_SIZE=1024;
int MWMR_BASE=359242137;
int MWMRd_BASE=360919859;
// int MWMR_BASE=359242137;
// int MWMRd_BASE=360919859;
// int MWMR_BASE=3592421376; //0xd62
//int MWMRd_BASE=3609198592; //0xd72
for (AvatarCoproMWMR MWMRwrapper : TopCellGenerator.avatardd.getAllCoproMWMR()) {
/* for (AvatarCoproMWMR MWMRwrapper : TopCellGenerator.avatardd.getAllCoproMWMR()) {
mapping += "maptab.add(Segment(\"mwmr"+hwa_count+"\", 0x"+Integer.toHexString(MWMR_BASE+i*1024)+", 0x"+ Integer.toHexString(MWMR_SIZE)+", IntTab("+(l+5+hwa_count)+"), false));" + CR;
hwa_count++;
}
hwa_count=0;
for (AvatarCoproMWMR MWMRwrapper : TopCellGenerator.avatardd.getAllCoproMWMR()) {
for (AvatarCoproMWMR MWMRwrapper : TopCellGenerator.avatardd.getAllCoproMWMR()) {
mapping += "maptab.add(Segment(\"mwmr_ram"+hwa_count+"\", 0x"+(Integer.toHexString(MWMRd_BASE+i*4096))+", 0x"+Integer.toHexString(MWMRd_SIZE)+", IntTab("+(l+5+hwa_count)+"), false));" + CR2;
hwa_count++;
}
} */
return mapping;
}
......
......@@ -88,8 +88,8 @@ signal = signal +"caba::VciSignals<vci_param> signal_vci_vcilocks(\"signal_vci_v
for (AvatarCoproMWMR copro : TopCellGenerator.avatardd.getAllCoproMWMR()){
signal = signal +"caba::VciSignals<vci_param> signal_mwmr_"+i+"_initiator;"+ CR;
signal = signal +"caba::VciSignals<vci_param> signal_mwmr_"+i+"_target;"+ CR;
signal = signal +"caba::VciSignals<vci_param> signal_fifo_"+i+"_from_ctrl;"+ CR;
signal = signal +"caba::VciSignals<vci_param> signal_fifo_"+i+"_to_ctrl;"+ CR;
signal = signal +" soclib::caba::FifoSignals<uint32_t> signal_fifo_"+i+"_from_ctrl;"+ CR;
signal = signal +" soclib::caba::FifoSignals<uint32_t> signal_fifo_"+i+"_to_ctrl;"+ CR;
i++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment