[Oberon] [EXT] ALU 2015 and 2018
Joerg
joerg.straube at iaeth.ch
Fri May 13 16:04:08 CEST 2022
Wojtek
As can be seen in the Verilog code, Hardware-wise the CPU does a jump to memory location 4.
Software-wise you can decide what you do with this HW capability.
Either you put the code of your interrupt handler there or - the approach the Oberon OS takes - put a jump instruction at location 4 and thus allow to put the interrupt handler whereever you like to put it in memory.
The SW code in chapter 4 explains how to use the interrupt capability. The SYSTEM.PUT is important!
br
Jörg
> Am 13.05.2022 um 15:47 schrieb Skulski, Wojciech <skulski at pas.rochester.edu>:
>
> Joerg:
>
> the code which we discussed should not be defended. It should be rewritten. The number "1" needs to become a parameter. Relocating an Interrupt Service Routine is a legitimate request. Doing this should not require diving into code and finding "1" hidden somewhere w/o a line of comment.
>
>> I strongly assumed that the student or whoever studies RISC5 knows,
>> that RISC5 handles memory as a bunch 32bit words. RISC5 is a 32bit machine.
>> The document tells you that the interrupt handler sits at memory location 4 (in bytes).
>> This is adress 1 (in words)
>
> You also needs to add that RISC5 address is byte-wise rather than word-wise. This should be reiterated in the PDF in this particular place, and also in the comment in the code. Also, "1" should be a localparam rather than a literal.
>
> You would be surprised what students do not know these days. I work with these students all the time. We hire them as interns. We need those guys to be productive, which will not be the case if we throw them into deep water w/o instruction.
>
> If you have someone whom you educated well enough to not require such guidance, then please send this person to me because I need an EE right now. The one who can understand your code will be ideal. This person needs to be authorized to work in the USA.
>
> W.
>
>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
More information about the Oberon
mailing list