Questions tagged [register]

A special, high-speed storage area within the CPU.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

what's thsi register Address: "16’b11_0_1_0nnn_0001_0011" stands for?

I'm learning a "PHY full rate clock divider configuration register" and it represents its register Address as 16’b11_0_1_0nnn_0001_0011 I think 16 stands for bit number, ...
user avatar
  • 115
0 votes
3 answers
99 views

A question about memory address in microcontroller vs PC [closed]

In context of embedded C, considering the following line: *((volatile uint32_t *) 0x48000414) |= 1UL<<12; Now 0x48000414 can be a memory pointer to a ...
user avatar
  • 1,283
0 votes
1 answer
69 views

How do computer memories interact with each other (registers, cache, RAM, ROM)?

After Googling around for some time, I have managed to get a good understanding what makes these components different, but I've yet to find any clear computer architecture-focused article/thread on ...
user avatar
  • 103
4 votes
2 answers
995 views

What is RCC in embedded C using registers? A register, or a pointer to a register, or something else?

Considering the following from here: RCC->AHB1ENR Is RCC above the register itself or pointer to a register. Because the -> operator is used with the ...
user avatar
  • 1,097
1 vote
2 answers
92 views

STM32 bare-metal programming - Memory addressing in 32-bit system - memory offset

I am coming from a mechanical background and some Atmega experience, now doing some bare-metal programming courses on ARM processors. So far it is looking great, digging into documentation about uC ...
user avatar
3 votes
1 answer
169 views

STM32 UART Blocking Receiver Not Putting Data In Array, Overrun Flag

STM32F746 Disco, UART1 connected to ST-Link, Win 10, STM32CubeIDE, C, no HAL no other libraries other than CMSIS register definitions. Putty on Windows side to send and receive UART messages to/from ...
user avatar
  • 3,286
0 votes
2 answers
130 views

How many times can a register bit be changed in AVR?

I am writing a program for an ATmega328P. I have a while loop inside which I am enabling the UART receiver complete interrupt flag using the command ...
user avatar
0 votes
0 answers
77 views

How to manipulate timer registers of Arduino Uno?

I already asked about How to achieve high speed microstepping? I even used Arduino Due to achieve high speed. Practically there was no difference compared to Uno but by changing baud rate I could see ...
user avatar
  • 135
0 votes
0 answers
67 views

What is the cost of increasing the number of register names?

Increasing the number of registers in a CPU, has the upside that more values can be kept in registers instead of having to spill to stack. It has some downsides, one of which is that more instruction ...
user avatar
  • 501
2 votes
2 answers
143 views

Will this register drawing work?

I have just learned about how logic gates work and I am trying to simulate a 1-bit register without using a clock signal. My design looks like this: The logic should work something like this (...
user avatar
  • 123
0 votes
1 answer
69 views

Computers: How signals in the bus can travel in either direction [closed]

I'm reading J. Clark Scott's book But How Do It Know. When he is describing registers and the bus he illustrates this at one point as five registers sequentially parallel-connected to a bus. As you ...
user avatar
0 votes
1 answer
510 views

STM32 timer output compare interrupt all interrupt flags set at once

I'm trying to set up the output compare channels of TIM3 of an STM32F103RB MCU. For now I only enabled channel 1, but later I'll need CH2 and CH3 as well. When CH1 triggers, the TIM3->SR register ...
user avatar
0 votes
1 answer
57 views

Making a register from DFFs without using multiplexers

I am currently trying to design a 4-bit register that is optimised in terms of transistor count, since I will be laying it out in a larger circuit that is very limited in terms of chip space. My ...
user avatar
0 votes
1 answer
228 views

How to Use Modular Arithmetic in Verilog

I am trying to code the RC6 (Rivest cipher 6) algorithm using Verilog. The algorithm requires addition, subtraction and multiplication in modulo 232. I've been told that I can use conventional +, -, * ...
user avatar
0 votes
1 answer
72 views

Shared rising edge detector? [closed]

Why do we have a rising edge detector in every flip flop of a register. Can't we just make a shared one for all the flip flops in order to save hardware?
user avatar
  • 11
0 votes
3 answers
189 views

A transistor and a diode instead of a tri-state buffer

I was wondering if it is possible to replace the tri-state buffer with a transistor and a diode as shown in the image. In this case a zero will be the same as high impedance. I don't understand why we ...
user avatar
  • 11
1 vote
1 answer
140 views

Read data from a register in C-code [closed]

I am a beginner and learning by myself. I need your help to start the third implementation in my life in VIVADO ( "Hello world" and "led") I will implement SPI connection with DMA, ...
user avatar
1 vote
3 answers
324 views

What is the difference between register and memory?

I am currently studying the difference between microprocessors and microcontrollers and one of them says that: Microprocessors have less number of registers, so more operations are memory based. ...
user avatar
2 votes
2 answers
194 views

Microcontroller bit information for the Core and different peripherals

Usually, from what I have seen, Microcontroller have this information of 8-bit, 16-bit and 32-bit. In this Microcontroller S32K142, it is mentioned as 32-bit CPU. So, what does this actually mean? I ...
user avatar
  • 2,194
0 votes
3 answers
885 views

SPI frequency for slave and master?

I have been trying to hook up ADE7758 with STM32F401, but I am having a problem understanding the frequency part of it. There is no minimum or maximum frequency for SPI CLK in the datasheet, and my ...
user avatar
  • 19
0 votes
0 answers
40 views

Analog comparator ATMega164

I am using an ATMega164 chip and the circuit below On D5 and D6 I have connected the pins of a DC motor, which has to spin whenever the read voltage drops under a threshold. I read in the datasheet ...
user avatar
0 votes
1 answer
319 views

What is the triangle symbol in circuit diagrams?

What is the triagular symbols shown in the image, is it a buffer or some kind of delay?
user avatar
2 votes
1 answer
1k views

How to make a register in VHDL remember?

I was given the assignment to implement an 18-bit register in VHDL. I used an example from the book "Free Range VHDL" recommended to me earlier. Here's what I got: ...
user avatar
  • 123
0 votes
1 answer
105 views

Which type of registers is used in CPU: serial or parallel? And how to implement them in VHDL?

I'm making a CPU in which the memory is represented as a two-dimensional array, using FPGA. I've come to the implementation of registers, and I need the answer to this question. I'm new to electronics,...
user avatar
  • 123
0 votes
3 answers
109 views

Difference between latches and flip flops in datasheet

At university and several online searches (Difference between latch and flip-flop) I have been taught that the difference between a latch and a flip flop is that the latch is level triggered while the ...
user avatar
0 votes
0 answers
22 views

How do I read the value of registers in Logism?

I am designing a CPU in logism. One of the components of the CPU is a register circuit (RegFile), which stores the registers data. The register circuit (RegFile) is shown below: I am able to write ...
user avatar
  • 113
1 vote
0 answers
40 views

ATMega32u4 Timer code not working

The following timer code running on a 8Mhz ATMega32u4 should toggle the onboard LED every second, and calling the ISR code manually does so. Yet, the ISR does not seem to get called. Could anyone ...
user avatar
1 vote
1 answer
786 views

g/LSB meaning in accelerometer measurements

I am not sure about the phrase I found here: https://www.engineersgarage.com/tutorials/adxl345-accelerometer-sensor-how-to-use/ Sensitivity – With the default resolution of 10-bit, the ADXL345 has ...
user avatar
  • 21
-2 votes
1 answer
316 views

RiscV assembly, function arguments

I learnt that in RiscV assembly we save function arguments in registers s0,...,s7 but what if I had more that 8 arguments? Plus what about the case where I have more than 32 arguments (let's say 40) ...
user avatar
  • 5
0 votes
2 answers
178 views

Is M1 Chip Memory Considered as Registers?

Given the following image of Apple's m1 chip, we can clearly see that RAM is so close to the CPU: does this say that RAM will be much faster when compared to others Macbook models (Since distance is ...
user avatar
  • 5
0 votes
1 answer
69 views

Test benches in VHDL

I have a question about the 'correct' way to use test benches to test VHDL components in Vivado. To give you an idea of my task, I have a source file called Top_Level which is going to be the highest ...
user avatar
  • 986
1 vote
2 answers
228 views

why there is a need to define temporary reg and only then assign to the output in verilog?

Following is the Verilog code for a 4-bit unsigned up counter with asynchronous clear as shown in ASIC.CO.IN: ...
user avatar
  • 13
1 vote
1 answer
32 views

Will assigning a value to the W-reg in PIC16F84A during an interrupt, save it after the interrupt is disabled?

Okay so, I'm having this part of my program that needs a value to be checked to continue. basically, here is what it is doing: ...
user avatar
0 votes
1 answer
90 views

STM32L053R8 - Bare metal LED issues

I'm following a bare metal course, I have managed to set up the project within IAR, my project compiles and runs. I'm attempting to get the user LED (LD2) to flash before I continue the course. I'm ...
user avatar
  • 1,277
0 votes
3 answers
756 views

XILINX Vivado VHDL using "printf"

In the C programming language, you can use printf to print out (for example) variables in the console window. I am using Vivado right now and programming with VHDL. ...
user avatar
  • 343
1 vote
0 answers
22 views

Recover correct value from unstable memory through read operation

We are given a memory with 32-bit width for each word. it has the length (N - number of rows) which is not relevant for the question. we know that the memory has a problem where at any row, one bit ...
user avatar
  • 533
0 votes
0 answers
36 views

A problem with designing a time register

I'm on a project where I need to design a time difference register. In a time register the time information is first converted to voltage, which is stored in a capacitor. Later, when we want the ...
user avatar
  • 1,734
4 votes
2 answers
2k views

How can I access more than 15 addresses of data from my 8 bit incomplete computer?

Last year I started researching upon how computers work, so I started making one, at least on paper last month, but I ran into a serious problem that isn't getting a satisfying answer from any article ...
user avatar
3 votes
5 answers
850 views

I understand how D flip flop works but still not understand how it "store" a bit of data in a register in a running computer

I am reading this book "Computer Architecture and Organization" by Subrata Ghosal because I'm curious about how data is "stored" in the CPU register. When I say "data is ...
user avatar
0 votes
2 answers
473 views

Connecting input and output to the same bus

I'm reading "But how do it know". And in register chapter, it talks about connecting both input and output pins to a bus. I tried to do it on Logisim but it shows red wires. Can someone ...
user avatar
  • 1
3 votes
1 answer
173 views

What parts/sections of a CPU take the biggest number of transistors?

I was surprised to hear CPUs only have a number of ALUs. What are most of the transistors in a CPU dedicated to?
user avatar
-2 votes
1 answer
61 views

Not getting correct results displayed from register

I am trying to input the numbers 1,0,3,2,32'hFFFFFFFF,32'h00000001 into the registers 0,1,2,3,6, and 7 respectively. I am doing this through always @(posedge clk) ...
user avatar
0 votes
1 answer
94 views

How to instantiate module with variables

I declared alu_result as a reg because I need it to be a variable data type for my case statement. But when i do this, I cannot pass it my ...
user avatar
1 vote
0 answers
199 views

How to cascade IC 74HC161 correctly?

Currently I have this 4 bit CPU as shown in the schematic diagram below. What I wish to achieve: Add one more output register to make the CPU output a total of 8 bits Show alphabet using the 8 bits ...
user avatar
1 vote
2 answers
111 views

How can I convert data from a sensor register to a float value?

Can anyone please help me understand how I can convert data from a sensor register to a float value? Say I am reading the sensor register as following: ...
user avatar
  • 111
3 votes
2 answers
3k views

Flip-flop vs latch: Do flip-flops have an edge detector integrated?

As far as I know, a latch and a flip-flop are the same excepting that flip-flop only "works" with an edge of the clock (let's supose rising edge for the question.) To make the flip-flop &...
user avatar
  • 113
0 votes
3 answers
323 views

Physical size of the registers for x86

We have an 8-bit register called CL on x86 CPU architecture. Does it mean that physically it contain 32 bits, but we have access only to lower 8 bits? Or does ...
user avatar
0 votes
1 answer
115 views

Why any modern CPU masks 5 lower bits in a CL register for shifting operations

I'm digging into left and right shift operations in ASM. From IA-32 Intel Architecture Software Developer’s Manual 3 All IA-32 processors (starting with the Intel 286 processor) do mask the ...
user avatar
0 votes
1 answer
404 views

How do I use a 4-bit Adder, 4-1 MUX, and 2-1 MUX to implement various micro-operations on registers?

One of the exercises in my Logic Design coursebook requires me to create a circuit that handles following micro-operations on 4-bit registers R1 and R2. R1 + R2 R1 - R2 R2 – R1 R1 – 1 -(R1 + 1) 0 -1 ...
user avatar
1 vote
0 answers
46 views

Vivado is not properly gating my registers?

I have a register which holds 12 bits written in VHDL within Vivado which is not being gated properly. The code is very simple, and is as follows: ...
user avatar
  • 563

1
2 3 4 5 6