Renamed the dummy hmm control procs to match the names in the real hmm setup.
count_bm_controlled now does a blocking count for the simulated hmm. r1751 | ffr | 2007-03-31 09:27:28 +1000 (Sat, 31 Mar 2007) | 3 lines
This commit is contained in:
committed by
Douglas Clowes
parent
81f12eadda
commit
307d7ba068
@@ -15,13 +15,18 @@ hmm init
|
|||||||
#MakeScanCommand hmscan bm scan.hdd recover.bin
|
#MakeScanCommand hmscan bm scan.hdd recover.bin
|
||||||
|
|
||||||
namespace eval histogram_memory {
|
namespace eval histogram_memory {
|
||||||
proc hs_prepare {scanobjectname userobjectname} {}
|
proc prepare {} {}
|
||||||
proc hs_finish {scanobjectname userobjectname} {}
|
proc finish {} {}
|
||||||
proc hs_count_bm_controlled {scanobjectname userobjectname point mode preset} {}
|
proc count_bm_controlled {mode preset} {
|
||||||
|
hmm countmode $mode
|
||||||
|
hmm preset $preset
|
||||||
|
hmm countblock
|
||||||
|
}
|
||||||
|
|
||||||
proc hmm_initialize {} {}
|
proc hmm_initialize {} {}
|
||||||
proc hmm_setup {mode bankNum rankNum nyc nxc ntc} {}
|
proc hmm_setup {mode bankNum rankNum nyc nxc ntc} {}
|
||||||
}
|
}
|
||||||
|
|
||||||
publish ::histogram_memory::hs_prepare user
|
publish ::histogram_memory::prepare user
|
||||||
publish ::histogram_memory::hs_finish user
|
publish ::histogram_memory::finish user
|
||||||
publish ::histogram_memory::hs_count_bm_controlled user
|
publish ::histogram_memory::count_bm_controlled user
|
||||||
|
|||||||
@@ -1,3 +1,14 @@
|
|||||||
|
VarMake hmm_dim0 Int User
|
||||||
|
VarMake hmm_dim1 Int User
|
||||||
|
VarMake hmm_dim2 Int User
|
||||||
|
VarMake hmm_histmode Text User
|
||||||
|
VarMake hmm_bank Int User
|
||||||
|
VarMake hmm_rank Int User
|
||||||
|
VarMake hmm_start Int User
|
||||||
|
VarMake hmm_length Int User
|
||||||
|
|
||||||
|
hmm_dim0 512
|
||||||
|
hmm_dim1 128
|
||||||
MakeHM hmm SIM
|
MakeHM hmm SIM
|
||||||
hmm configure HistMode Normal
|
hmm configure HistMode Normal
|
||||||
hmm configure OverFlowMode Ceil
|
hmm configure OverFlowMode Ceil
|
||||||
@@ -12,16 +23,22 @@ hmm configure Counter counter
|
|||||||
hmm configure init 0
|
hmm configure init 0
|
||||||
hmm init
|
hmm init
|
||||||
|
|
||||||
|
hmm_length [expr {[SplitReply [hmm_dim0]] * [SplitReply [hmm_dim1]]} ]
|
||||||
#MakeScanCommand hmscan bm scan.hdd recover.bin
|
#MakeScanCommand hmscan bm scan.hdd recover.bin
|
||||||
|
|
||||||
namespace eval histogram_memory {
|
namespace eval histogram_memory {
|
||||||
proc hs_prepare {scanobjectname userobjectname} {}
|
proc prepare {} {}
|
||||||
proc hs_finish {scanobjectname userobjectname} {}
|
proc finish {} {}
|
||||||
proc hs_count_bm_controlled {scanobjectname userobjectname point mode preset} {}
|
proc count_bm_controlled {mode preset} {
|
||||||
|
hmm countmode $mode
|
||||||
|
hmm preset $preset
|
||||||
|
hmm countblock
|
||||||
|
}
|
||||||
|
|
||||||
proc hmm_initialize {} {}
|
proc hmm_initialize {} {}
|
||||||
proc hmm_setup {mode bankNum rankNum nyc nxc ntc} {}
|
proc hmm_setup {mode bankNum rankNum nyc nxc ntc} {}
|
||||||
}
|
}
|
||||||
|
|
||||||
publish ::histogram_memory::hs_prepare user
|
publish ::histogram_memory::prepare user
|
||||||
publish ::histogram_memory::hs_finish user
|
publish ::histogram_memory::finish user
|
||||||
publish ::histogram_memory::hs_count_bm_controlled user
|
publish ::histogram_memory::count_bm_controlled user
|
||||||
|
|||||||
Reference in New Issue
Block a user