From bfed5f51c79da0645932b961827d99bf8f96f340 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Thu, 7 Nov 2024 22:07:19 +0300 Subject: [PATCH 1/3] Add iperf test script --- scripts/iperf_test.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 scripts/iperf_test.sh diff --git a/scripts/iperf_test.sh b/scripts/iperf_test.sh new file mode 100644 index 0000000..7f10564 --- /dev/null +++ b/scripts/iperf_test.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# iperf test.sh +# published as part of https://github.com/pConst/basic_verilog +# Konstantin Pavlov, pavlovconst@gmail.com + +# allows to test network performance on single local machine with two ports + + + +# create namespaces to force linux to pass data through the cable +sudo ip netns add ns_server +sudo ip netns add ns_client +sudo ip link set enp1s0f0 netns ns_server +sudo ip netns exec ns_server ip addr add dev enp1s0f0 192.168.2.1/24 +sudo ip netns exec ns_server ip link set dev enp1s0f0 up +sudo ip link set enp1s0f1 netns ns_client +sudo ip netns exec ns_client ip addr add dev enp1s0f1 192.168.2.2/24 +sudo ip netns exec ns_client ip link set dev enp1s0f1 up + +# start server (first terminal window) +sudo ip netns exec ns_server iperf -s 192.168.2.1 + +# start client (second termonal window) +sudo ip netns exec ns_client iperf -c 192.168.2.1 -d -i1 -t60 + +# remove namespaces +sudo ip netns del ns_server +sudo ip netns del ns_client + From 7e423c2064333611c17c45f459e736e6b4bd37c6 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Tue, 8 Apr 2025 19:21:37 +0300 Subject: [PATCH 2/3] Add remove_dup_dirs script --- scripts/remove_dup_dirs.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/remove_dup_dirs.sh diff --git a/scripts/remove_dup_dirs.sh b/scripts/remove_dup_dirs.sh new file mode 100644 index 0000000..b491633 --- /dev/null +++ b/scripts/remove_dup_dirs.sh @@ -0,0 +1,26 @@ +#! /bin/bash + +# ------------------------------------------------------------------------------ +# remove_dup_dirs.sh +# published as part of https://github.com/pConst/basic_verilog +# Konstantin Pavlov, pavlovconst@gmail.com +# ------------------------------------------------------------------------------ + +# Utility script to iterate through all subdirectories in the working directory +# and try to find duplicate subdirectories in selected location. +# Duplicate subdirs in selected location will be removed + +shopt -s nullglob + +for dir in */ +do + #echo "-- Inspecting $dir" + + if [ -d "$1$dir" ]; then + #echo "= $1$dir" + rm -rfv $1$dir + else + echo "unique" + fi + +done From a5e876ba6341891223a0fec3cbb43e1c8b86249a Mon Sep 17 00:00:00 2001 From: JacyCui Date: Fri, 25 Jul 2025 08:48:01 +0000 Subject: [PATCH 3/3] Fix undefined clk_div in freq_meter.sv --- freq_meter.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freq_meter.sv b/freq_meter.sv index a5c13cc..d73220a 100644 --- a/freq_meter.sv +++ b/freq_meter.sv @@ -43,7 +43,7 @@ module freq_meter ( .clk( clk ), .nrst( nrst ), .ena( 1'b1 ), - .out( ) + .out( clk_div ) ); // synchronizing into test frequency time domain pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy