Stack Exchange Network

Stack Exchange network consists of 175 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
79 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
2answers
47 views

Having issues with clocking a 74S374 (D Flip Flop)

I'm having issues setting the state of any of the D Flip Flops, I have jumpers and a multimeter to work with. does the clock pulse have to more precise than touching the jumper to +5v? 74s374J data ...
1
vote
1answer
77 views

Assembly language, accessing bytes of memory

I have some memory address 0x00000100 that I want to read from. The lower 4 bits read from this address indicates the states of 4 buttons - So bit 0 shows the state of button 0, bit 1 shows the state ...
1
vote
1answer
54 views

PISO shift register with first input

I have on my board two PISO shift registers in series, giving an output train of 16 bits. The problem is that the order of the bits is reversed compared to what I need. That means, the last input of ...
1
vote
1answer
1k 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
36 views

Initial register value in synthesized design is always 0

I'm using Altera Cyclone IV EP4CE6 as my FPGA. Compiling the design in Quartus Prime 18.0.0 Lite Edition. The State register in the below module appears to be 0 ...
0
votes
1answer
121 views

Multiplexer handling 16 bits

Design the VHDL components (Register, Decoder, and two Multiplexer 16 bit) and interconnect them to build a register file. The schematic shows only four registers. Your solution should implement ...
0
votes
1answer
32 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 ...
0
votes
1answer
37 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 ...
-1
votes
1answer
257 views

How to build PIPO register

Ive got problem with simulating 8-bit register. Ive built register using eight D flip - flop. Every flip-flop was made with 5 NAND gates + 2 NAND gates for Preset. My problem is that register doesnt ...
1
vote
0answers
37 views

Renaming a special register

I noticed that RISC-V, like some other RISC architectures, by convention treats register 1 specially, using it as the link register, holding the return address for function calls. If most code ...
1
vote
0answers
80 views

PAC1720 Standby Mode

I am having a hard time putting my PAC1720 into standby mode reliably. Here is the datasheet If I put the device in standby mode, then take it out of standby mode, and then try to put it in standby ...
1
vote
0answers
170 views

Fibonacci LFSR - polynomial , sequence, phase shift

Hi, it's my first post here. I have a question according this picture. So let's see. IMHO the primitive polynomial for that LFSR will be \$x^4+x+1\$ but I'm not sure if I'm thinking good. I've read ...
0
votes
0answers
80 views

STM32f103 interfacing with adxl345 via i2c

I am working on interfacing ADXL345 accelerometer with STM32F103 blue pill board through I2C communication. I have written the code in Keil software by surfing the internet which works fine sometimes, ...
0
votes
0answers
59 views

Home brew CPU register trouble shooting

update Apparently I’m an idiot. It took me this long (hours) to check the supply voltage of the flip flops, which was at .25 volts from a bad connection. Rookie mistake. Hard lesson learnt. In the ...
0
votes
0answers
31 views

How to produce a register bank comprising four such registers in Logisim, sharing common data lines D0 … D7 and outputs <Q0 … Q7>?

I made a D-Latch circuit that looks like this: and I converted it into a subcircuit and made an 8 bit register like this: But how do I make a register bank using four such registers? Any help is ...
0
votes
0answers
47 views

Register readback for ADC WM8253

I am trying to read the contents of register written in serial mode of WM8253 using SPI in Basys 3 FPGA. Link to Datasheet. I'm reading from register '011100' but the result that is read is always "...
0
votes
0answers
19 views

Clk pulses needed to retrieve data in registers

I know that to store n bits of data in a SISO register , n clk pulses are needed . And to retrieve the data only n-1 clk pulses are needed because 1 bit is already available at the output . In a SIPO ...
0
votes
0answers
51 views

STM32F4xx, How to use RTC correctly?

I'm trying to run RTC, but there are two problems. 1) It is impossible to write the security key in the WPR register. 2) It is impossible to set the time and date in the TR and DR registers. I tried ...
0
votes
0answers
160 views

SPI problem with STM32F103

I am trying to connect blue pill board(master) to arduino nano(slave) over SPI and read what I have sent on serial monitor. However I haven't been able to get SPI working. I run a timer to generate an ...
0
votes
0answers
23 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
213 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
146 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
0answers
54 views

Modified ISA design

I want to represent 13 instructions, use 1 register operand and an immediate value that represent at least the number 1048576 (2^20). I have 94 general purpose registers and 32 bit instructions. Will ...