@@ -6,20 +6,19 @@ Cutting and Extending WireVectors
66
77The functions below provide ways of combining, slicing, and extending
88:class: `WireVectors<.WireVector> ` in ways that are often useful in hardware
9- design. The functions below extend those member functions of the
9+ design. The functions below extend those member functions of the
1010:class: `.WireVector ` class itself (which provides support for the Python
1111builtin :func: `len `, slicing e.g. ``wire[3:6] ``,
12- :meth: `~pyrtl.wire.WireVector.zero_extended `,
13- :meth: `~pyrtl.wire.WireVector.sign_extended `, and many operators such as
14- addition and multiplication).
15-
16- .. autofunction :: pyrtl.corecircuits.concat
17- .. autofunction :: pyrtl.corecircuits.concat_list
18- .. autofunction :: pyrtl.corecircuits.match_bitwidth
19- .. autofunction :: pyrtl.helperfuncs.truncate
20- .. autofunction :: pyrtl.helperfuncs.chop
21- .. autofunction :: pyrtl.helperfuncs.wire_struct
22- .. autofunction :: pyrtl.helperfuncs.wire_matrix
12+ :meth: `~.WireVector.zero_extended `, :meth: `~.WireVector.sign_extended `, and
13+ many operators such as addition and multiplication).
14+
15+ .. autofunction :: pyrtl.concat
16+ .. autofunction :: pyrtl.concat_list
17+ .. autofunction :: pyrtl.match_bitwidth
18+ .. autofunction :: pyrtl.truncate
19+ .. autofunction :: pyrtl.chop
20+ .. autofunction :: pyrtl.wire_struct
21+ .. autofunction :: pyrtl.wire_matrix
2322
2423Coercion to WireVector
2524----------------------
@@ -32,19 +31,19 @@ hardware development.
3231
3332See :ref: `wirevector_coercion ` for examples and more details.
3433
35- .. autofunction :: pyrtl.corecircuits. as_wires
34+ .. autofunction :: pyrtl.as_wires
3635
3736Control Flow Hardware
3837---------------------
3938
40- .. autofunction :: pyrtl.corecircuits. mux
41- .. autofunction :: pyrtl.corecircuits. select
39+ .. autofunction :: pyrtl.mux
40+ .. autofunction :: pyrtl.select
4241.. autoclass :: pyrtl.helperfuncs.MatchedFields
4342 :members:
4443 :undoc-members:
45- .. autofunction :: pyrtl.helperfuncs. match_bitpattern
46- .. autofunction :: pyrtl.corecircuits. bitfield_update
47- .. autofunction :: pyrtl.corecircuits. bitfield_update_set
44+ .. autofunction :: pyrtl.match_bitpattern
45+ .. autofunction :: pyrtl.bitfield_update
46+ .. autofunction :: pyrtl.bitfield_update_set
4847
4948Interpreting Vectors of Bits
5049----------------------------
@@ -56,30 +55,30 @@ values into their corresponding bit vectors, can both be a bit of a pain. The
5655functions below do not create any hardware but rather help in the process of
5756reasoning about bit vector representations of human understandable values.
5857
59- .. autofunction :: pyrtl.helperfuncs. val_to_signed_integer
58+ .. autofunction :: pyrtl.val_to_signed_integer
6059.. autoclass :: pyrtl.helperfuncs.ValueBitwidthTuple
6160 :members: value, bitwidth
62- .. autofunction :: pyrtl.helperfuncs. infer_val_and_bitwidth
63- .. autofunction :: pyrtl.helperfuncs. val_to_formatted_str
64- .. autofunction :: pyrtl.helperfuncs. formatted_str_to_val
65- .. autofunction :: pyrtl.helperfuncs. log2
61+ .. autofunction :: pyrtl.infer_val_and_bitwidth
62+ .. autofunction :: pyrtl.val_to_formatted_str
63+ .. autofunction :: pyrtl.formatted_str_to_val
64+ .. autofunction :: pyrtl.log2
6665
6766Debugging
6867---------
6968
70- .. autofunction :: pyrtl.core. set_debug_mode
71- .. autofunction :: pyrtl.helperfuncs. probe
72- .. autofunction :: pyrtl.helperfuncs. rtl_assert
69+ .. autofunction :: pyrtl.set_debug_mode
70+ .. autofunction :: pyrtl.probe
71+ .. autofunction :: pyrtl.rtl_assert
7372
7473Reductions
7574----------
7675
77- .. autofunction :: pyrtl.corecircuits. and_all_bits
78- .. autofunction :: pyrtl.corecircuits. or_all_bits
79- .. autofunction :: pyrtl.corecircuits. xor_all_bits
80- .. autofunction :: pyrtl.corecircuits. parity
81- .. autofunction :: pyrtl.corecircuits. rtl_any
82- .. autofunction :: pyrtl.corecircuits. rtl_all
76+ .. autofunction :: pyrtl.and_all_bits
77+ .. autofunction :: pyrtl.or_all_bits
78+ .. autofunction :: pyrtl.xor_all_bits
79+ .. autofunction :: pyrtl.parity
80+ .. autofunction :: pyrtl.rtl_any
81+ .. autofunction :: pyrtl.rtl_all
8382
8483.. _extended_logic_and_arithmetic :
8584
@@ -92,20 +91,20 @@ design. The functions below extend those member functions of the
9291:class: `.WireVector ` class itself (which provides support for unsigned
9392addition, subtraction, multiplication, comparison, and many others).
9493
95- .. autofunction :: pyrtl.corecircuits. signed_add
96- .. autofunction :: pyrtl.corecircuits. signed_sub
97- .. autofunction :: pyrtl.corecircuits. signed_mult
98- .. autofunction :: pyrtl.corecircuits. signed_lt
99- .. autofunction :: pyrtl.corecircuits. signed_le
100- .. autofunction :: pyrtl.corecircuits. signed_gt
101- .. autofunction :: pyrtl.corecircuits. signed_ge
102- .. autofunction :: pyrtl.corecircuits. shift_left_logical
103- .. autofunction :: pyrtl.corecircuits. shift_left_arithmetic
104- .. autofunction :: pyrtl.corecircuits. shift_right_logical
105- .. autofunction :: pyrtl.corecircuits. shift_right_arithmetic
94+ .. autofunction :: pyrtl.signed_add
95+ .. autofunction :: pyrtl.signed_sub
96+ .. autofunction :: pyrtl.signed_mult
97+ .. autofunction :: pyrtl.signed_lt
98+ .. autofunction :: pyrtl.signed_le
99+ .. autofunction :: pyrtl.signed_gt
100+ .. autofunction :: pyrtl.signed_ge
101+ .. autofunction :: pyrtl.shift_left_logical
102+ .. autofunction :: pyrtl.shift_left_arithmetic
103+ .. autofunction :: pyrtl.shift_right_logical
104+ .. autofunction :: pyrtl.shift_right_arithmetic
106105
107106Encoders and Decoders
108107---------------------
109108
110- .. autofunction :: pyrtl.helperfuncs. one_hot_to_binary
111- .. autofunction :: pyrtl.helperfuncs. binary_to_one_hot
109+ .. autofunction :: pyrtl.one_hot_to_binary
110+ .. autofunction :: pyrtl.binary_to_one_hot
0 commit comments