Questions tagged [bus]

A Bus is a physical device used to connect different functional blocks of a computer or a different computers in order to communicate them together. Also Bus is a data type in MATLAB language used to bundle some data to virtual (just for useful rendering) or non-virtual (for contiguous memory allocation) structure.

The Bus advantages (as physical device) over wires are reducing the needed number of wires and catholicity. The main characteristics of Buses are width (amount of bits can be transmitted at once) and frequency (work speed).

The Bus as a structure of MATLAB language used to bundle different variables (or signals, for example in Simulink) in one structure. Can be used as virtual bus just for convenient accessing to variables and for reducing number of wires at Simulink diagram or as non-virtual - Nonvirtual buses use contiguous memory allocation for variables.

321 questions
24
votes
8 answers

A simple event bus for .NET

I want to make a very simple event bus which will allow any client to subscribe to a particular type of event and when any publisher pushes an event on the bus using EventBus.PushEvent() method only the clients that subscribed to that particular…
chikak
  • 1,702
  • 1
  • 18
  • 21
14
votes
1 answer

Parallel memory access on modern processors

I have a recent 12 core Intel CPU (Haswell architecture) and it has 4 memory channels. How many DRAM memory accesses can the machine do in parallel? For example, if I have a program that uses 12 threads that sit in a tight loop that reads a single…
Andrew Bainbridge
  • 4,651
  • 3
  • 35
  • 50
13
votes
2 answers

Azure Service Bus - subscribers can independently subscribe to a subscription and share the same message?

I'm new to Azure Service Bus and have created successful pocs for creating a topic and a separate subscriber application to receive its message. Based on this article, I quote: "A topic can have up to 2,000 subscriptions associated with it, each of…
Heretix
  • 131
  • 1
  • 4
13
votes
2 answers

How a single byte of memory is accessed by CPU in a 32-bit memory and 32-bit processor

I quite understand a what 32 or 64 bit system means. so basically all registers or word length is either 32 or 64 bit. For simplicity let us take a 32 bit system and say i'am writing a program in C. if i declare a int type say "int a = 5;" then a…
deepak
  • 1,348
  • 1
  • 17
  • 25
12
votes
5 answers

Difference between memory bus and address bus

Can someone very briefly point out the differences between the memory bus and address bus in computer architectures ? Also when you say memory bus does it imply that you are referring to the databus ?
Navneeth Baliga
  • 169
  • 3
  • 3
  • 6
12
votes
5 answers

Azure Service Bus: Best way to implement exponential retry policy for failed to process messages

I am continuously receiving messages in peek mode and abandoning them if processing fails (Not the delivery). However, the message immediately becomes available again and is received for processing again. It fails quickly again and after max…
12
votes
1 answer

Difference between Machine Cycle, Bus Cycle and Execution Cycle

I am unable to understand the difference between Bus Cycle, Instruction Cycle and Machine Cycle. Please help me out. Thanks
user379888
11
votes
3 answers

cudaMemcpy too slow

I use cudaMemcpy() one time to copy exactly 1GB of data to the device. This takes 5.9s. The other way round it takes 5.1s. Is this normal? Does the function itself have so much overhead before copying? Theoretical there should be a throughput of at…
Callahan
  • 474
  • 1
  • 9
  • 22
11
votes
1 answer

Chisel: how to implement a one-hot mux that is efficient?

I have a table, where each row of the table contains state (registers). There is logic that chooses one particular row. Only one row receives the "selected" signal. State from that chosen row is then accessed. Either a portion of the state is…
seanhalle
  • 973
  • 7
  • 27
11
votes
1 answer

Configuration registers for LPC bus in Poulsbo System Controller Hub (US15W)

We have a system based around an Atom Z510/Intel SCH US15W Q7 card (running Debian Linux.) We need to transfer blocks of data from a device on the Low Pin Count Bus. As far as I know this chipset does not provide DMA facilities, meaning the…
10
votes
1 answer

What does the term "assert" mean in respect of hardware (bus) signals?

Reading a hardware bus specification, I frequently come across things like: "When the controller sees that a bus request has been made, it asserts the Bus Grant line to the first device." What exactly does the term "assert" mean here? Is it as…
user5234015
9
votes
1 answer

Dealing with arrays in HDL

How does one use arrays (representing busses) in HDL? For example, I have the following code: /** * 16-bit bitwise And: * for i = 0..15: out[i] = (a[i] and b[i]) */ CHIP And16 { IN a[16], b[16]; OUT out[16]; PARTS: // Put your…
Fine Man
  • 455
  • 4
  • 17
7
votes
3 answers

What is bus-locking in the context of atomic variables?

I use C++ since a long time, and now I'm starting to learn assembly and learn how processors work (not just for fun, but I have to as a part of a test program). While learning assembly, I started hearing some of the terms that I hear here and there…
The Quantum Physicist
  • 24,987
  • 19
  • 103
  • 189
7
votes
3 answers

sd-bus API, sd_bus_request_name returns Permission denied

bus APIs in systemd 221. When I request a name for an object in system bus it prints out an error saying "Permission denied". I am running the output file as root. The line "sd_bus_request_name(bus, "net.poettering.Calculator", 0)" throws an error…
portleJay
  • 71
  • 1
  • 2
7
votes
3 answers

Python PIL ImageTk.PhotoImage() is giving me a bus error?

So I am running python 2.6 on a macbook pro and trying to write the code in python to display an image from a file in a label on a tkinter gui. The image is called image.png. The program runs without errors when I use this code i =…
Dylan
  • 949
  • 3
  • 13
  • 23
1
2 3
21 22