Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [register]

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

0
votes
3answers
39 views

Phase register in phase accumulator

In the following flow diagram: Is the "phase register" a one-bit register? What does it basically do with that summation mark? What type of register is it? I basically do not know what the phase ...
0
votes
0answers
22 views

Creating a 16-Bit Register File using only D-flip flops, in Logism

I am tasked to create a 16-bit Register File using only D-flip flops (no using Registers from memory allowed), but I'm not sure how I can go about doing this. I've created a 16 x 16 circuit using only ...
0
votes
1answer
39 views

what does “ports can be registered” mean? For circuit design

I have a homework. I must design a circuit that makes addition with signed and unsigned numbers. I will use registers. I need two output ports. It says "8-bit output ports (2 ports: one for unsigned ...
0
votes
0answers
21 views

MIPS assembly language, lbu

I have attached my question in the picture below. I have having trouble with the last instruction - lbu $t1, 1($t1). Apparently the answer for $t1 is 0x00000043, which I am confused about. For the ...
0
votes
0answers
25 views

Digital Design IC

I understand the borrowing in latch timing and the extra slack than registers, so why we use registers not latches in our designs, in other words why we do pipelining by using latches not registers to ...
2
votes
3answers
57 views

Clock domain cross and metastablilty problem

I understand the problem of metastability and understand that we can't get a stable value in a bounded time so we need unbonded time but it is not practical, so we put another flip flop with no ...
0
votes
0answers
24 views

Calculating Hold time for a lenient latch

Hold time is the difference between the TGQ and Tpd to be 3ns-2ns=1ns as for example if input changed after G by 1.5ns so G takes 3 ns to propagate to Q and the input takes 2ns of AND&OR gates ...
2
votes
2answers
970 views

Finite State Machine FSM

I understand how to make state diagram and make combinational logic (gates) to get a boolean equation for the next state bits and the output bit, but what is the function of ROM here ?
0
votes
0answers
64 views

Using 1 74LS377 instead of 2 74LS173, how do I keep the CLEAR function?

I am currently following a online project guide for an 8bit breadboard computer. https://eater.net/8bit/parts I was up to the stage of sources parts when I found it difficult to find 2 74LS173 IC's (...
0
votes
1answer
38 views

When does a register need to get a load control-signal in order to be updated at the next clock? [closed]

I know this is a pretty basic question, but I didn't succeed to find an unambiguous answer. Does a register need to get load signal in the cycle in which the new value computation is made? or at the ...
0
votes
0answers
22 views

What is the tradeoff between number of register files and logical register specified in the ISA?

As the limited number of logical registers are opened to the user and compiler, it incurs the false dependency problems such as WAW and WAR. Therefore, to solve this problem, lots of ...
0
votes
0answers
42 views

What does the values of 0x10 and 0x08 mean for gyroscope MPU6050 registers?

I am trying to connect a gyroscope MPU6050 to arduino ATmega2560 and read its raw values from its 6DOF (gyro and acc). I found the following code: ...
0
votes
1answer
100 views

Error (suppressible): (vsim-3601) Iteration limit Quartus

I have created a Simulation of a 4 bit register in quartus. Each of the four D flip flops test fine by themselves, but when I test 4 of them connected together into a register, I get the "Error (...
2
votes
2answers
823 views

What is this array-like notation of registers in datasheets?

I am reading BMP280 datasheet (pressure&temperature sensor). On different pages they use the following notation: $$register\text{_}name[a:b]$$ where a, b are integers. For example, on page 13 "...
0
votes
2answers
78 views

Are memory-mapped registers actually implemented as real registers?

I am currently trying to better understand microcontroller-architectures and I am particularly studying the ARM cortex-m3 right now. What I have always wondered is, if memory mapped registers are ...
1
vote
1answer
60 views

Pull up/down a pin on a PCA9536 does not register?

Quite a obscure question here, concerning a very specific I2C expander IC, however I believe that this example can be replicated with most expander bus ICs. I am using a PCA9536 to switch the 4 pins ...
1
vote
1answer
342 views

variable should not be used in output port connection

I searched random verilog heirarchy to understand how to properly instantiate modules. I found one on https://www.altera.com/support/support-resources/design-examples/design-software/verilog/ver_hier....
0
votes
1answer
105 views

Q: Digital potentiometer MCP4162

I am having a hard time understanding the MCP4162 Datasheet. The application for the digi pot is have an Ardunio to control the wiper resistance so I can have a constant desired output voltage ...
1
vote
1answer
141 views

What will happen if a dependent voltage source in parallel with a dependent current source?

What will happen if a dependent voltage source in parallel with a dependent current source. like dependent voltage source: 4Vx and current source 3Ix in parallel.
0
votes
1answer
23 views

BQ76PL536A: Stopping measuring voltages and temperatures

I am testing a BMS design with multiple slave boards each containing one bq76PL536A connected to a common CAN bus through a ATmega32M1 MCU and a ISO1050DW isolated transceiver. The problem I am facing ...
1
vote
3answers
60 views

How to find current in this circuit passing through 4ohm resistor

Below I have added my solution after the question so please let me know how I can solve it after the last step: These steps to follow to solve the question from where i left in my post , FYI :As ...
0
votes
1answer
83 views

Special Function Registers value expressed as Hexadecimal & Bit shift

I was wondering if someone could help me solve one problem, because I am very new to this and I was given the code of a former programmer to work with. I'm trying to figure out the value of 0x8008 &...
0
votes
2answers
198 views

how to initialize a vector of registers in verilog?

I want to initialize the following 16-bit registers in my module. reg [15:0] coefficient[4:0]; I used concatenation operator to do this: ...
0
votes
0answers
76 views

STPM33 UART read/write

I'm working on project, using the energy sensor STPM33 in order to measure energy consumption. I can't understand how to read the register values, documentation seems unclear. There's a similar ...
2
votes
2answers
165 views

VHDL 4-bit Shift-and-Add Multiplier Buffer and Out port error

I am working on a creating a 4-bit Shift-and-Add Multiplier. I am getting this warning message - "WARNING:HDLParsers:3555 - "//filer1.egr.msu.edu/samarar1/ece230/Project05/Project05.vhd" Line 220. ...
-1
votes
1answer
650 views

What is increment/decrement address latch in 8085

Can you please explain about increment/decrement latch in 8085. I am currently studying registers and encountered this in the array of register section. Here are the things i found when i googled and ...
0
votes
0answers
69 views

1-bit register without reset or clock enable

I am currently working a project to implement a 1-bit register without a reset or clock enable on an FPGA. In order to do this, I believe I need a D Flip-Flop. However, I do not know to proceed. Does ...
0
votes
1answer
35 views

verilog register with clock

Now, I've been learning Verilog but I got stuck with some easy problems. always@(posedge clock) if(reset == 1’b1) leds_r <=0; else leds_r <= leds_r + 1; I ...
0
votes
2answers
114 views

Will my decimal to binary converter work

I got into electronics recently and I hope to make a 8 bit ripple carry adder with a decimal input and output. This input is the first schematic I designed from scratch without a tutorial to go off ...
1
vote
2answers
140 views

CPU register count and access time [closed]

It has been suggested that one of the reasons typical RISC CPUs stop at 32 architectural integer registers, despite a 32-bit instruction having enough spare bits to specify 64, is that a larger ...
0
votes
1answer
34 views

I-type register format maximum size of a constant

The above picture is an I-type format register. I am confused as to why the largest constant possible is $$2^{15}$$ Should the largest possible constant be $$2^{16} -1$$
0
votes
1answer
333 views

Clarification on R, I, and J type Instruction formats in MIPS

I would like some clarification on some concepts of register types, to know if I understand it correctly. If I had a 32-bit CPU. Would that mean that the max number of operations that can be ...
1
vote
2answers
76 views

Design an instruction using Thumb-2

I'm studying the Cortex-M3 of ARM. The problem statement reads: We're going to use a Harvard architecture with the following addressing capabilities: 32M words of code and 16-bit data words. The ...
1
vote
2answers
179 views

What does the square brackets mean?

In this diagram: What does the S[2:0] mean? I think it is the state but why is the state in 3 bits? What does the 2 and 0 mean? Cheers!
1
vote
1answer
1k views

How to dynamically adjust a timer with STM32

I've got this timer (TIM4) that's in PWM mode. I'm outputting one PWM channel and i want to wait a bit, and then grab the latest ADC samples from a DMA conversion. TIM4 -> ARR is 4096 TIM4 -> CCR1 ...
2
votes
2answers
63 views

microproccessor 8085

What is the need of enabling 8 bit register in memory using address bus to read data from it?Enabling is required to write data into register and after that to read can't we just provide read signal ...
1
vote
2answers
1k views

STM32F103 temperature sensor calibration addresses

I am new to ARM world and using STM32F103C8T6 ARM microcontroller. I want to get micro's internal temperature sensor working. I am able to get some data from it but I'm not sure how to convert these ...
4
votes
1answer
89 views

Why is the stored value in each D flip flop reconnected to the input in a buffer register?

Like can one not just connect a single AND gate with the load and X input instead of complicating by reconnecting the output and using another OR gate? Will it be logically the same? or is it that I ...
1
vote
2answers
114 views

Register map using C for a MAX30001 analog front end

I am trying to follow the best practices in register mapping. I have a MAX30001 analog front end for ECG applications (Datasheet) and in page 38, there is a table that contains user command and ...
0
votes
0answers
139 views

libmodbus modbus_read_bits() returns illegal function

It is all okay when it comes to read registers with: modbus_read_registers(ctx,0,32,destination); It gives me values of 32 different registers. But when it comes ...
0
votes
0answers
134 views

How to create a circuit to implement restoring division method?

I am trying to implement a circuit which will implement the restoring division method. The problem is, I can't understand how to configure the registers to do this operation. Here is the flowchart of ...
0
votes
1answer
27 views

Negative recommended intensity on read of logical 1 D-latch octal register

I am very new to electronic design, even if I do have some bases in electric design. For an hypothetical circuit I'm designing, I need some D-latches to operate as 8 bit registers. Searching for ...
0
votes
2answers
129 views

7400 chip register with common in/out pins

First of all, I don't know if this kind of question is allowed here, so sorry if it isn't. I am looking for a 7400 series register which has common in and out pins (like for the RAM ou EEPROM: ) with ...
0
votes
1answer
108 views

The value of the TCC counter on an ATSAM controller always reads as zero

I use an ATSAMD21 to generate a custom signal with the help of a PWM generator. Basically, I set up TCC0 as a PWM generator, and use its overflow interrupt to set up the CC registers for the next ...
0
votes
2answers
175 views

Unable to set Pin Change Interrupt on ATmega328p

so I am working on learning some AVR programming with the ATmega328p. I am trying to set up a pin change interrupt and this is the code I am running. However, the interrupt never seems to trigger. ...
0
votes
1answer
36 views

Not able to set a value into an ADC

I'm trying to configure an ADC (ADC12j4000) and I need to configure the number of serial lanes (denoted as L in the page 39 of the datasheet). For some factors as D, DDR, P54, K... I can see how to ...
1
vote
1answer
2k views

Dinamically change PWM frequency with interrupt with STM32

i'm using an stm32f4 to control a stepper motor. I'm not sure if i need PWM mode or OC Mode or OnePulse Mode. I can generate a fixed frequency PWM wave but since i need a particular acceleration/...
0
votes
0answers
106 views

How to convert this ASM diagram to register transfer level?

So we have this ASM diagram, which I have to convert into register transfer level. I have already done some similar examples and I will usually start with defining next-state logic, than output ...
0
votes
1answer
42 views

How to find out a register contains inputs or outputs or both?

I don't have much experience with embedded systems and I am trying to check if is possible to determine if a register is made of inputs or outputs or a mix of inputs and outputs. Let's say I have a ...
0
votes
4answers
101 views

Datasheet register bit number

When it is written that to check if some flag bit is set, you have to look at for example 0x74[2], does that 2 means 3rd bit of register or 2nd? From which number they count in datasheet 0 or 1, how ...