Skip to content

Commit

Permalink
Remove pdb package in validation folder and reformat the importting f…
Browse files Browse the repository at this point in the history
…ormat in validation scripts.
  • Loading branch information
JiacongSun committed Mar 13, 2024
1 parent db5b4c8 commit 8f1c06f
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pdb
from aimc_cost_model import *
from dimc_cost_model import *
from aimc_cost_model import ADC, DAC
from dimc_cost_model import UnitDff, MultiplierArray, MemoryInstance

def aimc1_cost_estimation(aimc, cacti_value):
unit_reg = UnitDff(aimc['unit_area'], aimc['unit_delay'], aimc['unit_cap'])
Expand Down Expand Up @@ -136,4 +135,3 @@ def aimc1_cost_estimation(aimc, cacti_value):
#return area_mismatch, delay_mismatch, energy_mismatch
#print(area_mults, area_adder_tree, area_accumulator, area_banks, area_regs_accumulator, area_regs_pipeline)
#print(energy_mults_mac, energy_adder_tree_mac, energy_accumulator_mac, energy_banks_mac, energy_regs_accumulator_mac, energy_regs_pipeline_mac)
pdb.set_trace()
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pdb
from aimc_cost_model import *
from dimc_cost_model import *
from aimc_cost_model import ADC, DAC
from dimc_cost_model import UnitNand2, UnitDff, MultiplierArray, Adder, AdderTree, MemoryInstance

def aimc2_cost_estimation(aimc, cacti_value):
unit_reg = UnitDff(aimc['unit_area'], aimc['unit_delay'], aimc['unit_cap'])
Expand Down Expand Up @@ -141,4 +140,3 @@ def aimc2_cost_estimation(aimc, cacti_value):
#return area_mismatch, delay_mismatch, energy_mismatch
#print(area_mults, area_adder_tree, area_accumulator, area_banks, area_regs_accumulator, area_regs_pipeline)
#print(energy_mults_mac, energy_adder_tree_mac, energy_accumulator_mac, energy_banks_mac, energy_regs_accumulator_mac, energy_regs_pipeline_mac)
pdb.set_trace()
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pdb
from aimc_cost_model import *
from dimc_cost_model import *
from aimc_cost_model import ADC, DAC
from dimc_cost_model import UnitDff, MultiplierArray, Adder, MemoryInstance

def aimc3_cost_estimation(aimc, cacti_value):
unit_reg = UnitDff(aimc['unit_area'], aimc['unit_delay'], aimc['unit_cap'])
Expand Down Expand Up @@ -143,5 +142,4 @@ def aimc3_cost_estimation(aimc, cacti_value):
#return predicted_area, predicted_delay, energy_estimation_per_mac
#return area_mismatch, delay_mismatch, energy_mismatch
#print(area_mults, area_adder_tree, area_accumulator, area_banks, area_regs_accumulator, area_regs_pipeline)
#print(energy_mults_mac, energy_adder_tree_mac, energy_accumulator_mac, energy_banks_mac, energy_regs_accumulator_mac, energy_regs_pipeline_mac)
pdb.set_trace()
#print(energy_mults_mac, energy_adder_tree_mac, energy_accumulator_mac, energy_banks_mac, energy_regs_accumulator_mac, energy_regs_pipeline_mac)
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pdb
import math

class ADC:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pdb
from aimc1_validation_subfunc import *
from aimc2_validation_subfunc import *
from aimc3_validation_subfunc import *
from aimc1_validation_subfunc import aimc1_cost_estimation
from aimc2_validation_subfunc import aimc2_cost_estimation
from aimc3_validation_subfunc import aimc3_cost_estimation

"""
CICC2021 (Assume 100% input toggle rate, 0% weight sparsity)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pdb
import math

class UnitNor2:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pdb
import math

class UnitNor2:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pdb
from dimc_validation_subfunc import *
from dimc_validation_subfunc import dimc_cost_estimation

"""
ISSCC2022, 15.5 (50% input toggle rate, 50% weight sparsity)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pdb
from dimc_validation_subfunc4 import dimc_cost_estimation4

"""
ISSCC2023, 16.3 (50% input sparsity, 50% weight sparsity)
Expand Down Expand Up @@ -43,5 +43,4 @@


if __name__ == '__main__':
from dimc_validation_subfunc4 import *
print(dimc_cost_estimation4(dimc_ISSCC2023_16_3, cacti_value_ISSCC2023_16_3))
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pdb
from dimc_cost_model import *
from dimc_cost_model import UnitNand2, UnitDff, MultiplierArray, Adder, AdderTree, MemoryInstance

def dimc_cost_estimation(dimc, cacti_value):
unit_reg = UnitDff(dimc['unit_area'], dimc['unit_delay'], dimc['unit_cap'])
Expand Down Expand Up @@ -174,5 +173,4 @@ def dimc_cost_estimation(dimc, cacti_value):
return area_mismatch, delay_mismatch, energy_mismatch
#print(area_mults, area_adder_tree, area_accumulator+area_regs_accumulator, area_banks, area_regs_pipeline)
#print(energy_mults_mac, energy_adder_tree_mac, energy_accumulator_mac+energy_regs_accumulator_mac, energy_banks_mac, energy_regs_pipeline_mac)
pdb.set_trace()
# return predicted_area, predicted_delay, predicted_energy/number_of_operations
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pdb
from dimc_cost_model import *
from dimc_cost_model import UnitNand2, UnitDff, MultiplierArray, Adder, AdderTree, MemoryInstance

def dimc_cost_estimation4(dimc, cacti_value):
unit_reg = UnitDff(dimc['unit_area'], dimc['unit_delay'], dimc['unit_cap'])
Expand Down Expand Up @@ -96,5 +95,4 @@ def dimc_cost_estimation4(dimc, cacti_value):
return area_mismatch, delay_mismatch, energy_mismatch
print(area_mults, area_adder_tree, area_accumulator+area_regs_accumulator, area_banks, area_regs_pipeline)
print(energy_mults_mac, energy_adder_tree_mac, energy_accumulator_mac+energy_regs_accumulator_mac, energy_banks_mac, energy_regs_pipeline_mac)
pdb.set_trace()
# return predicted_area, predicted_delay, predicted_energy/number_of_operations
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pdb
from dimc_validation import *
from dimc_validation4 import *
from dimc_validation_subfunc4 import *
from dimc_validation import dimc_ISSCC2022_15_5, cacti_ISSCC2022_15_5, dimc_ISSCC2022_11_7, cacti_ISSCC2022_11_7, dimc_ISSCC2023_7_2, cacti_value_ISSCC2023_7_2
from dimc_validation4 import dimc_ISSCC2023_16_3, cacti_value_ISSCC2023_16_3
from dimc_validation_subfunc4 import dimc_cost_estimation4
from dimc_validation_subfunc import dimc_cost_estimation

def area_fitting():
mismatch = 1
Expand Down

0 comments on commit 8f1c06f

Please sign in to comment.