-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi,
I am attempting to create a "plugin" for riscof so that I can verify my processors functionality.
I require the ability to automatically load a program, run the program and dump the RAM when the simulation hits a break point. The described functionality in the example code of "TestCircuit.Java" seems sufficient for my purposes, however, I am unable to get the example working with the example processor/hex.
Steps I followed:
I used "mvn install" in the root dir of this branch, it produced files in "/target" like "DigitalTest.jar".
I originally updated the Digital.jar in the root with the latest version but it complained during the "mvn install"
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DigitalTesting: Compilation failure
[ERROR] /C:/Users/Jazz/Desktop/DigitalTesting-master/src/main/java/de/neemann/digital/test/TestCircuit.java:[20,37] no suitable method found for read(java.io.File,int)
[ERROR] method de.neemann.digital.core.memory.importer.Importer.read(java.io.File,int,boolean) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method de.neemann.digital.core.memory.importer.Importer.read(java.io.File,de.neemann.digital.core.memory.importer.ValueArray,boolean) is not applicable
[ERROR] (actual and formal argument lists differ in length)
I take it something changed along the years.
Perhaps line 20 of the TestCircuit.class needs to act more like the code in:
line #2020 - Digital/tree/master/src/main/java/de/neemann/digital/gui/Main.java
Anyway, to continue trying I used the original jar supplied in the branch and it built without errors.
I attempt to run a modified "start.sh" with the processor and fibonacci files in the root dir.
#!/usr/bin/env bash
java -cp Digital.jar:target/DigitalTest.jar de.neemann.digital.test.TestCircuit Processor.dig fibonacci.hex d.hex
It errors with Error: Could not find or load main class de.neemann.digital.test.TestCircuit
If I could get some assistance for sorting this out it would be greatly appreciated! I attempted to use the TCP remote interface from a python script to do a similar thing but sending commands as demonstrated in the assembler code does not seem to instruct the simulator or return an "ok" (because I have very little knowledge of the nitty gritty in what is required for that). And then I found this and it seems like a much better approach for batch processing, if I can get it to work.