How to include another file through LPF file in Lattice Diamond tool? - fpga

In Lattice Diamond FPGA synthesis tool, pin placement is specified through a LPF (extension .lpf) file.
However, only a single LPF file can be active at a time.
Is it possible to include another LPF file through the active LPF file, so the LPF file configuration can be split in multiple files?

Related

Tictoc Tutorial:Why are the positions of the module vectors overlapping,not separate?

I am learing the OMNeT++ With Tictoc Tutorial,however I encounter a problem in the part4.1 "More than two nodes".
According to the tutorial, the tictoc10.ned can generate six simple modules in different locations.But there is just a module vector icon in my ned file even if I completely copy the tictoc10.ned file.
I guess there maybe some properties which I need to set but it doesn't work at all.And I also scrolling through the 'simulation manual' with no result.
simple Txc10
{
parameters:
#display("i=block/routing");
gates:
input in[];
output out[];
}
network Tictoc10
{
submodules:
tic[6]: Txc10; //this line should generate 6 Txc10 modules with
//different positions
//ingnore the connections
}
Thank you for any suggestions.
The NED editor in the IDE displays only the structures present in the NED file. I.e. you will not see several icons in the graphical editor only a single icon that represents the vector. On the other hand, when you actually run the simulation, the correct number of instances from the node will be instantiated and the autolayouter will arrange them.
There are two places to pay attention to.
1.as like the former answer says,the NED editor in the IDE displays only the structures present in the NED file. And you can find the several module icons when you run the simulation.
2.The size of the network in the 'Design' mode of the NED file need to be adjusted according to the quatity of the submodules in this network. In this example,the size of network is so small that submodules overlapp and the connections between can't be found.After I enlarge it the problem is solved.

Checksum inside Altera FPGA .jic file

I'm modifying a firmware file (.jic) JTAG Indirect Configuration File with a small algorithm, but changing data inside the file makes it unusable because there is a checksum somewhere in the file that has to be updated.
I need to find where is a checksum inside .jic file and decipher which algorithm is used (crc32, etc).
The bits on each byte are reversed and I inspected the normal and the reversed bit file with no success.
Does someone know or is there a way to find out where are is the checksum data inside the .jic file?
You need to generate a .rpd file.
This data will be loaded into the FPGA at power-up.
This is what you will see if you read flash memory byte-by-byte after loading .jic.
If you have access to the software that creates .jic files (e.g. Quartus) you can create two .jic files with one bit of difference and compare the two outputs (the two .jic) files. It should give you a hint about where the check is located (if there is one)
Not by starting from a .jic file. But if the data you're trying to update is initialized from a .hex or .mif file, you can use quartus_cdb --update_mif to perform a partial recompilation of your project. (This is also available in the IDE as "Update Memory Initialization File".)

Monitor bvh file for changes in Motion Builder (Autodesk)

Anyone with the MotionBuilder experience,
I want to update bvh file externally (adding motion data into it) and play the result in MotionBuilder. The program has Python scripts, one of which is FileMonitoring.py that is supposed to track changes in a file.
Is it possible to apply FileMonitoring.py script to .bvh file that specifies behaviour of the character?
So far I have tried applying the FileMonitoring to the .bvh file and updating the bvh file externally, but the motion is not updated.

Is it possible to set access priority to files in windows

i am working on a system that has 2 parts. the parts are as follow:
1- a producer application that generate and append files in space A, and i cannot modify it ( i must not make noise for this part).
2- a transformer application that copies the files from space A(near the part1) to Space B.
. If part 2 starts to copy a file from A to B and during the copying of the file, part1 wants to append the same file, the part1 will stopped, because the file is under control of part2.
I want to if the part1 wants to append the file, control of the file granted to part 1, and it's not important to what happens for part2.
IS it possible to do that in windows??
If you are working within one computer system (not via network), then in general the correct way would be to monitor the writes, made by part 1, as they happen, and copy the written data on-the-fly. This is achieved using a file system filter driver, which intercepts write operations and captures the data being written.

Binary files format (ARM GCC)

what contains a binary file which come from a ARM GCC for ARM devices?
Is there inside it some information about destination address which write to?
Or just native, pure, content of program without information about memory location?
If i have a bootloader, Or any way through programmer, can i write a binary file everywhere in flash or written itself by internal information about specific memory address?
If i setup my linker-script to write a program in a specific memory address, is there an influence in the bin file?
There are several types of files, which are called "binary' (at least among my colleagues):
.bin file extension. Contains only data that would/could be written to single continuous partition. It doesn't contain any addresses or offsets inside. When flashing this file to microcontroller you should explicitly specify destination address (often this is 0x0, beginning of flash). If you need to write to different partitions you need separate .bin for each of them (or it can be merged one if these partitions are consecutive). So this file type is like memory footprint.
Pros: minimum overhead if you have a single continuous partition and destination address always the same (so it can be hardcoded)
.hex is an Intel hex file format. It contains destination address for each line in it. Can be opened in any text editor.
.s19 or .srec Motorola s-record. Very similar to .hex, just another format. Also can include some metadata, that wouldn't be flashed.
Pros of last two types: best choice if you have several inconsistent partitions. Can be compressed by removing gaps
For VSCode there are several plugins that can highlight .s19 and .hex files

Resources