8
8
9
9
import pyrtl
10
10
from pyrtl .wire import Const , Output
11
- from pyrtl .analysis import estimate
12
11
13
12
from .test_transform import NetWireNumTestCases
14
13
@@ -613,7 +612,7 @@ def everything_t_procedure(self, timing_val=None, opt_timing_val=None):
613
612
# to make sure that the timing matches
614
613
# this is a subprocess to do the synth and timing
615
614
block = pyrtl .working_block ()
616
- timing = estimate .TimingAnalysis (block )
615
+ timing = pyrtl .TimingAnalysis (block )
617
616
timing_max_length = timing .max_length ()
618
617
if timing_val is not None :
619
618
self .assertEqual (timing_max_length , timing_val )
@@ -623,7 +622,7 @@ def everything_t_procedure(self, timing_val=None, opt_timing_val=None):
623
622
pyrtl .optimize ()
624
623
625
624
block = pyrtl .working_block ()
626
- timing = estimate .TimingAnalysis (block )
625
+ timing = pyrtl .TimingAnalysis (block )
627
626
timing_max_length = timing .max_length ()
628
627
if opt_timing_val is not None :
629
628
self .assertEqual (timing_max_length , opt_timing_val )
@@ -633,7 +632,7 @@ def everything_t_procedure(self, timing_val=None, opt_timing_val=None):
633
632
pyrtl .optimize ()
634
633
635
634
block = pyrtl .working_block ()
636
- timing = estimate .TimingAnalysis (block )
635
+ timing = pyrtl .TimingAnalysis (block )
637
636
timing_max_length = timing .max_length ()
638
637
critical_path = timing .critical_path (print_cp = False )
639
638
block = pyrtl .working_block ()
@@ -644,7 +643,7 @@ def everything_t_procedure(self, timing_val=None, opt_timing_val=None):
644
643
pyrtl .optimize ()
645
644
646
645
block = pyrtl .working_block ()
647
- timing = estimate .TimingAnalysis (block )
646
+ timing = pyrtl .TimingAnalysis (block )
648
647
timing_max_length = timing .max_length ()
649
648
critical_path = timing .critical_path (print_cp = False )
650
649
block .sanity_check ()
@@ -687,7 +686,7 @@ def test_timing_error(self):
687
686
pyrtl .synthesize ()
688
687
pyrtl .optimize ()
689
688
block = pyrtl .working_block ()
690
- _timing = estimate .TimingAnalysis (block )
689
+ _timing = pyrtl .TimingAnalysis (block )
691
690
sys .stdout = sys .__stdout__
692
691
self .assertTrue (output .getvalue ().startswith ("Loop found:" ))
693
692
@@ -752,7 +751,7 @@ def test_two_way_concat(self):
752
751
self .assertEqual (len (concat_nets ), 1 )
753
752
self .assertEqual (concat_nets [0 ].args , (i , j , k ))
754
753
755
- pyrtl .passes . two_way_concat ()
754
+ pyrtl .two_way_concat ()
756
755
757
756
concat_nets = list (block .logic_subset (op = 'c' ))
758
757
self .assertEqual (len (concat_nets ), 2 )
@@ -776,7 +775,7 @@ def test_one_bit_selects(self):
776
775
self .assertEqual (len (select_nets ), 1 )
777
776
self .assertEqual (tuple (select_nets [0 ].op_param ), (0 , 2 , 4 , 6 , 8 , 10 ))
778
777
779
- pyrtl .passes . one_bit_selects ()
778
+ pyrtl .one_bit_selects ()
780
779
781
780
select_nets = list (block .logic_subset (op = 's' ))
782
781
for net in select_nets :
0 commit comments