fixed multiplexers with named ports + minor changes

This commit is contained in:
2024-05-17 14:18:33 +02:00
parent 7e0209b712
commit 21b5d1cbfe
8 changed files with 10 additions and 9 deletions

View File

@ -11,11 +11,11 @@
///
/// #example(`#util.lpad("0100", 8)`, mode: "markup")
///
/// - s (str): The string to pad
/// - string (str): The string to pad
/// - len (int): The target length
/// -> str
#let lpad(s, len) = {
let res = "0" * len + s
#let lpad(string, len) = {
let res = "0" * len + string
return res.slice(-len)
}