2,974 questions
Advice
0
votes
0
replies
92
views
Learning Resource for TensorRT and PyCUDA (or other CUDA Python inferface library)
I'm trying to deploy a PyTorch model to an edge device (Jetson Orin Nano). Deploying the PyTorch model directly does not satisfy the requirements posed by the clients, so I'm looking into optimize the ...
Tooling
0
votes
2
replies
126
views
Best approach for server-side license key verification with HWID binding in C#
I'm building a commercial desktop application in C# and I need to implement license verification that prevents key sharing between users.
What I'm trying to achieve:
Bind each license key to a ...
1
vote
1
answer
95
views
Solve Vendor and Device Ids to Names in C#
If I have the following code, how would I need to implement the ResolveXIdToXName methods?
So far I havent been able to get my hands on a easy to use library or API to quickly send this to and resolve ...
-2
votes
1
answer
106
views
How to determine correct data extraction for GPUs [closed]
First the context: I am doing some reworking of a C# tool I have written a short while ago, that is supposed to extract hardware data from the PC and then send it off to an API (only for Windows PCs). ...
Advice
0
votes
16
replies
6k
views
Does the flip flop makes sense? Or it's just and educational thing?
I'm studying System Architectures, in particular the integrated circuits. The last circuit is the flip-flop D. If the clock is 1 either 0 the AND gives in output 0. I have read that works with the ...
-4
votes
1
answer
118
views
How would I run a .bin file [closed]
I was making a .bin file and I ran into a issue, I don't know how to run it! I just wanted to make a basic HLT function file to test it out. Here's the contents: ...
0
votes
0
answers
71
views
Signal counts incorrectly on EP4CE6E22C8N while others work fine (same code Verilog)
I am facing a strange issue on FPGA EP4CE6E22C8N (Cyclone IV), i use quartus II 13.0 and signaltap to debug
I have three input signals running in parallel, using the same HDL code and the same timing ...
2
votes
0
answers
143
views
DJI Goggles3 stream to PC over USB
I'm trying to get live video from DJI Goggles3.
Most likely transmission performs over this interface
Interface Descriptor:
bLength 9
bDescriptorType 4
...
Tooling
1
vote
4
replies
187
views
How can I programmatically perform a system board (motherboard) diagnostic test on Linux?
I’m working on a C++ backend tool that performs system diagnostics for various hardware components on Linux.
So far, I’ve implemented tests for:
Memory — using memtester
CPU — using stress-based ...
Advice
0
votes
2
replies
119
views
How to run and test software code and then put it in hardware
I'm trying to build my own handheld games console similar to a Game Boy.
Currently for the POC I’m using the Arduino Uno, separate SD card reader module and 2.4 inch TFT Display. I want to put the ...
Advice
2
votes
2
replies
228
views
How many general purpose registers are on an x86-64 processor, including alias registers?
I was curious and wondering how many registers are on an x64 processor. I know there are 16 general purpose registers available to the user, but there are supposedly general purpose alias registers ...
0
votes
1
answer
106
views
What’s the difference between concurrency and parallelism on a single CPU core with 2 hardware threads?
Let's say I have a CPU with 1 core and 2 hardware threads (for example, with Intel Hyper-Threading or AMD SMT).
From what I understand, that means the core can run two software threads "at once&...
0
votes
1
answer
80
views
Is data synchronization necessary on single-threaded systems?
This question stems from a technical interview where I was asking candidate about multithreading, and the differences between "true multithreading" via multiple hardware cores and/or ...
2
votes
1
answer
235
views
Can atomic operations of different sizes be mixed?
For the same memory address, if I use atomic operations of different widths to operate on it (assuming the memory is aligned), for example(Assuming the hardware supports 128 bit atomic operations):
#...
1
vote
0
answers
162
views
mSGDMA interaction via linux-socfpga on Agilex 5
I am trying to use this DMA driver to transfer memory from a streaming device to SDRAM.
This is my design in Qsys/Platform designer:
The design streams a predictable pattern of 6x6x6x6x to SDRAM.
The ...
0
votes
0
answers
135
views
KASAN based on MTE on Android Pixel 8 does not work
I am working on a Pixel 8 device running CalyxOS. uname -a: Linux localhost 5.15.137-android14-11-gbc062a78e195-ab12057991 #1 SMP PREEMPT Mon Jul 8 12:34:46 UTC 2024 aarch64 Toybox.
The device ...
2
votes
0
answers
161
views
Mouse Pointer does not wish to work well with Esp32 when using the FabGL library, using the PC Emulator example
I’m currently having a major problem with the Esp32, and using a mouse pointer in regards to getting the Esp32 to display a cursor upon my VGA or Video Graphics Array screen, I have successfully ...
1
vote
2
answers
152
views
Why does each DRAM chip have to contribute 8 bit to the 64 bit bus width parallely, instead of a single chip contribute all 64 bits
Okay my question is probably dumb. But I cant find any answers that correct me.
I learned that in DDR4 -lets say the stick has 8 chips- each chip parallelly contributes 8 bit to the 64 bit bus width.
...
1
vote
1
answer
103
views
Why does carry disappear in addition?
I have the following code:
logic [3:0] a = 4'1010;
logic [3:0] b = 4'b0111;
logic [3:0] f = 4'b1000; // ~b
logic [4:0] c;
logic [4:0] d;
logic [4:0] e;
assign c = a + b; // this gives a ...
1
vote
1
answer
322
views
Updated Flutter version and then every time I run flutter app, sometimes my pc crashes. Experienced this since flutter upgrade
I am developing flutter app and then the flame requires me to upgrade my flutter version and then after that everything seems smooth. After changing parallax image, my pc crashes and I already updated ...
0
votes
1
answer
306
views
STM32 SDRAM Write or Read Operation Is Not Executing Properly [closed]
I am using STM32F469BIT6 on a custom PCB with IS42S16400J-7TLI external 8Mb SDRAM. On my previous board, I was using STM32F429ZIT6 with the same SDRAM (these MCU and SDRAM were selected because they ...
0
votes
0
answers
97
views
STM32 Canbus Multiple Device Weird İssue
I am developing a project with STM32 using the STM32G473CET6 chip and working on a CAN bus system. In this project, the STM32 sends messages to the bus, processes the received messages, and responds ...
4
votes
1
answer
344
views
Most efficient way to wrap 32 bit integer to 16 bit value?
I am writing some DSP code that performs wavefolding distortion on an input signal. This code applies amplitude gain (multiplies input by a gain value) then wave folds the input such that the final ...
5
votes
1
answer
188
views
Was there any advantage to the 386 architecture making 16-bit register arithmetic leave upper bits unchanged? [closed]
8 and 16 bit registers are usually avoided in modern x86 assembly because they're specified to leave the upper 56/48 bits unchanged, which creates performance issues due to partial register stalls, ...
1
vote
0
answers
64
views
xv6 PLIC initialize Hart
In xv6 memlayout.h: line 20:
// qemu puts UART registers here in physical memory.
#define UART0 0x10000000L
#define UART0_IRQ 10
// virtio mmio interface
#define VIRTIO0 0x10001000
#define ...
0
votes
0
answers
58
views
Is fusing shuffle(tbl)+cvt+add is possible for the same throught as MAD (multiply-add) SIMD instrcution on AVX or NEON?
I ran a benchmark on my core i5 (Rapoter Lake) for _mm256_shuffle_epi8 and _mm256_maddubs_epi16, and they have nearly the same Throughput just like the AVX documentation said.
In fact, for now there ...
0
votes
1
answer
455
views
Programming Option Bytes STM32L4xx using Hal API
I am trying to implement a bank swap mechanism for STM32L471RET6. my Code Doesn't seem to have errors for setting and resetting Option bytes but Nothing Happens when Calling the bank Swap Functions. ...
0
votes
2
answers
99
views
How to connect to com port by using spring boot & docker?
In my springboot project, I use com.fazecast.jSerialComm to scan serial port. It successfully to scan my hardware device in COM4. However, It fail to scan this com port in docker , even I add device /...
1
vote
0
answers
78
views
Why does the model trained on Apple gpu performs worse than when it is trained on Apple cpu (M2)?
A simple CNN model was trained on Apple CPU and on Apple GPU, and both model performances were evaluated on the test data set; the one trained on Apple CPU had an accuracy of 98%, while the one ...
0
votes
0
answers
154
views
Benefit of running of 8 threads when you have 4 CPU cores
In C++ a standard library function is std::hardware_concurrency which as stated in the documentation:
Returns the number of hardware thread contexts.
Note that this does not need to match the actual ...
5
votes
1
answer
408
views
method for Calculating / Retrieving CPU Clockspeed in C?
For an assignment, I've been trying to work on a project to inspect and retrieve system information on Linux either in pure C, or inline ASM. A bit of a problem I'm having now is actually retrieving ...
0
votes
1
answer
75
views
On the shader code, why we can't read variables allocated in process memory(e.g. RAM)?
As far as I know, we can read only data in video memory.
So when we want to read data on process memory, we should copy the data to video memory by using Render Target or SSBO so the shader can read.
...
1
vote
1
answer
177
views
What is valid fptan argument range for 8087/80287 math coprocessors?
This is historic question.
Intel datasheet says that valid range from 0 to 0.25 *PI.
For Intel 287XL argument absolute value must be lower then 2^63 (as in 80387 and above).
I have system with ...
1
vote
0
answers
894
views
Raspberry Pico not recognized in lsusb, no serial port created
I am trying to get my computer (fedora) to recognize my Raspberry Pi Pico. The Pico works — it is capable of running simple programs that can blink the LED / output digital signals, but I can't get ...
1
vote
1
answer
134
views
Is this hardware-level parallel multiplication algorithm correct?
I'm an undergraduate student studying a section in our computer architecture textbook that introduces a hardware-level parallel multiplication algorithm. As depicted in the figure, the algorithm ...
0
votes
0
answers
122
views
4x4 keypad scanning with AVR and displaying results to LEDs, issues with hardware
trying to program a 4x4 keypad to display hex value on the board I have. any time I output to the board every, it defaults to 0xFF.
So far ive tried addling longer delays between key pressed and ...
1
vote
1
answer
115
views
Arduino c++ phone toy
Hi i have a problem with my device. I used arduino uno, old keypad, SD card reader, and low quality speaker. Every singel pice works perfectly but all together it doesn't work like i want to. Keypad ...
2
votes
0
answers
145
views
stm32f4discovery Board not Recognized by STM32CubeProgrammer nor CubeMX on PC
I have an STM3F4DISC1 board that seems like it does connect to my Windows 10 PC (shows up in the system tray as an ejectible USB device). The device gets powered on and starts running the factory ...
1
vote
0
answers
57
views
RISC-V: What would be the Impact of Swapping Bit Positions in Branch and Jump Instruction Formats? [duplicate]
I am working with RISC-V instruction formats, and I am considering making some adjustments to the bit positions in the Branch (B-type) and Jump (J-type) instruction formats. Specifically:
Branch (B-...
1
vote
0
answers
40
views
Ruby Can't Open Large CSV File on an M3 MBPro But Can on a Windows Desktop PC with similar hardware
I'm attempting to open a large CSV file with the SmarterCSV rails gem but on my M3 Pro with 32 Gigs Ram it just hangs and fails to open the file (even if using chunks) when running:
SmarterCSV.process(...
1
vote
0
answers
134
views
How to Sign a JSON Using USB DSC Hardware
I am working on a project where I need to sign a JSON object using a Digital Signature Certificate (DSC) stored on a USB token.
I understand that the private key is not directly extractable from the ...
0
votes
1
answer
494
views
How to extract full monitor manufacturer/vendor ID in Windows? (as same as Linux hwinfo --monitor command)
I´m stuck with extracting hardware information of my monitor manufacturer ID in this format: xxxxx_xxxxxxx
Basically, format which provides Linux command hwinfo --monitor as "vendor" ...
-1
votes
1
answer
69
views
How does hardware device (peripherals) implement the RO/WO registers?
Hardware devices expose their registers to CPU side using MMIO. And there are so many types of registers (written in some hardware manuals/device drivers) which are used for different usages. How do ...
1
vote
2
answers
82
views
Trying to programmatically disconnect microbit Pin
I am trying to set up a lab for students to investigate capacitance via measuring voltage drop over a capacitor using a microbit. I have a microbit hooked up to a breadboard with a capacitor hooked up ...
1
vote
2
answers
466
views
python script crashes on Windows; fixed by running a separate memory update py script
I have a Python Flask API server that crashes after a few seconds when running on my new Windows machine (a Dell work station). There is usually no error message, but sometimes there are errors ...
0
votes
0
answers
80
views
Data Hazard in MIPS(RAW forwarding)
If I read and write a same register in one cycle, how to realize the Read After Write on hardware? Bypass will work but I'm wondering how to make it by trigger edge? Will it be ok if I write at the ...
1
vote
0
answers
142
views
Using Python to toggle the RGB lights in my steelseries gear
I have a bunch of steel series gear: mouse, pad, speakers, keyboard. All have RGB lights. When I go to sleep I have to manually turn off these lights.
I would like to automate this process with a ...
1
vote
1
answer
1k
views
How to create a Docker named volume and populate it with default files?
I am working on a flask application that runs on some embedded hardware inside a Docker container and I am trying to store persistent data in a named volume that exists on my host machine during the ...
1
vote
0
answers
179
views
Programming an MCU for the first time using USB
I am trying to develop my own telemetry board which would use an accelerometer, GPS module, display etc. , I am currently doing the schematics for my board. I would like to programm the MCU just using ...
0
votes
0
answers
68
views
Communication through Serial Connection
I'm trying to communicate with IKA hardware EUROSTAR 60. I can read data with no problem. But when I try to output a value(adjusting), my code fails and there is no error message whatsoever. The ...