Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SoC based on 51core problem?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
Hello all,

I'd like to design a SoC based on 51 core, and I have to add several SFR flags due to the design(for example: SFR_1 ... ), the SFR should be accessed by the assembly language like MOV SFR_1, #00H,
shall I change the 51 softcore(it is based on Verilog), or can I realize it by writing assembly language.

Regards,

Davy Zhu
 

It depends on how these new SFR should be mapped. If they can be placed in usual DATA area, then just use EQU directive to define their names. Also, if they are just a flags (with 0 and 1 states only), you can map them into the BIT memory area.

But, if you want these new SFR to be directly available by external hardware, then you have to map them into XDATA area and use indirect adressing with DPTR or to change Verilog code to map any internal DATA location to external I/O.

Ace-X.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top