D
Daku
Guest
Could some Verilog guru please clarify
a few points regarding my problem ? I
have modelled a content-addressable
memory block, with parallel search, and
I am trying to measure number of clock
cycles for to insert a word and parallel
search for a word.
Both of insert and search operations are blocking and asynchronous.
These two
operations are triggered with 'write_en'
and 'search_en' going high respectively.
A clock runs separately and in the case
both 'write_en' and 'search_en' are low
and clock is high, some book-keeping
operations are performed.
Given this setup, how do I measure the
time required for an insertion and the
time for a search ? I am fully aware of
the standard Verilog command '$time'
and specifically may I know if taking
time-stamps before start of an operation
and immediately after the end, would be
sufficient.
Any hints, suggestions would be of immense
value. Thanks in advance for your help.
a few points regarding my problem ? I
have modelled a content-addressable
memory block, with parallel search, and
I am trying to measure number of clock
cycles for to insert a word and parallel
search for a word.
Both of insert and search operations are blocking and asynchronous.
These two
operations are triggered with 'write_en'
and 'search_en' going high respectively.
A clock runs separately and in the case
both 'write_en' and 'search_en' are low
and clock is high, some book-keeping
operations are performed.
Given this setup, how do I measure the
time required for an insertion and the
time for a search ? I am fully aware of
the standard Verilog command '$time'
and specifically may I know if taking
time-stamps before start of an operation
and immediately after the end, would be
sufficient.
Any hints, suggestions would be of immense
value. Thanks in advance for your help.