Jump to content
    

Еще одно синтезируемое RISC-ядро под Altera

The Total CPU (TCPU)

 

"It is easily realizable and easily modified RISC processor mainly aimed for implementation in FPGAs. The key feature of this CPU is that its command set does not dependent upon data word width, and, therefore, minimal modifications are required for code reuse. The CPU is completely realized on Verilog-2001 and easily expanded to include additional modules and commands. TCPU doesn’t require a lot of FPGA resources. For example, minimal 12-bit realization on Cyclone FPGA (Altera) requires 167 LCs, 32-bit realization – 314 LCs."

Share this post


Link to post
Share on other sites

Спасибо за инфу!

Приветствуем очередного задохлика в мире процессоров.

Share this post


Link to post
Share on other sites

Спасибо за инфу!

Приветствуем очередного задохлика в мире процессоров.

Точно задохлика. У него нет ни одной команды условного перехода, правда и безусловного тоже...

Share this post


Link to post
Share on other sites

Точно задохлика. У него нет ни одной команды условного перехода, правда и безусловного тоже...

Ну и что? Достаточно того, что PC лежит в общем регистровом пространстве, так что вместо перехода будем использовать арифметику с PC.

То, что про прерывания ещё ничего не придумано - это хуже. И компилятор Си пока не написан.

Share this post


Link to post
Share on other sites

Ну и что? Достаточно того, что PC лежит в общем регистровом пространстве, так что вместо перехода будем использовать арифметику с PC.

То, что про прерывания ещё ничего не придумано - это хуже. И компилятор Си пока не написан.

 

 

The TCPU has a register-based interrupt system, which is this: when the interrupt comes, the contents of the PC and RG1 are interchanged causing jump to the interrupt vector and at the same time saving the PC. The flags should be saved and restored before exit by interrupt handler procedure. So, in TCPU RG1 must contain a valid interrupt vector before enabling interrupts. Returning from interrupts is implemented in TCPU as a MVRC command with bit 3 of CND field set to 1. In further versions the interrupt system will use register windows

 

но вообще по сабжу, думаю что лучше расширить шину даных у пикоблейза до 32 бит и получиться проц той же функциональности что и этот, а к нему уже и симуляторы и компиляторы есть.

Share this post


Link to post
Share on other sites

Приветствую!

 

Эх где бы нормальный сишный компилер найти на все эти чудо процесоры?

 

Удачи! Rob.

Share this post


Link to post
Share on other sites

www.cs.princeton.edu/software/lcc :)

...и сделать ему backend по принципу "сделай сам". Что, поскольку архитектура процессора не похожа на уже поддерживаемые lcc - непросто.

Вопрос у меня: lcc a не GNU's gcc - потому что lcc проще (слегка офтоп)

Share this post


Link to post
Share on other sites

...и сделать ему backend по принципу "сделай сам". Что, поскольку архитектура процессора не похожа на уже поддерживаемые lcc - непросто.

Вопрос у меня: lcc a не GNU's gcc - потому что lcc проще (слегка офтоп)

для него есть подробное описание на том же сайте, при желании можно портировать.

архитектура рассматриваемого образца - обычный регистровый проц, который мало чем отличается от xr16, mips.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...