snoop911
Newbie level 3
- Joined
- Oct 21, 2008
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,308
I'm new to verilog/digital design, so not sure how this is usually
done..
I need to write to a register from 2 sources.. in this case, a pci host
and a microcontroller
Since the clock domains are all different, I can't just have multiple
processes writing to the same register..
How is this typically done?
done..
I need to write to a register from 2 sources.. in this case, a pci host
and a microcontroller
Since the clock domains are all different, I can't just have multiple
processes writing to the same register..
Code Verilog - [expand] 1 2 3 4 5 6 7 always @(posedge pciclk or negedge nrst) if pci_wr & pci_addr == 0 cntl_reg = pci_data always @(posedge mcclk or negedge nrst) if mc_wr & mc_addr == 0 cntl_reg = mc_data
How is this typically done?
Last edited by a moderator: