Test my chips - script syntax?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Test my chips - script syntax?

gs99
I'm trying to test my own chips.
Could you provide the syntax of "output-list" utilized in .tst files?

Examples:
Or.tst:
output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;

Add16.tst:
output-list a%B1.16.1 b%B1.16.1 out%B1.16.1;

Mux16.tst:
output-list a%B1.16.1 b%B1.16.1 sel%D2.1.2 out%B1.16.1;
Reply | Threaded
Open this post in threaded view
|

Re: Test my chips - script syntax?

cadet1620
Administrator
gs99 wrote
I'm trying to test my own chips.
Could you provide the syntax of "output-list" utilized in .tst files?

Examples:
Or.tst:
output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;

Add16.tst:
output-list a%B1.16.1 b%B1.16.1 out%B1.16.1;

Mux16.tst:
output-list a%B1.16.1 b%B1.16.1 sel%D2.1.2 out%B1.16.1;
pin-name % format left-margin . width . right-margin

format is one of
B binary
D decimal
X hexadecimal
S string

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: Test my chips - script syntax?

gs99
Thanks Mark

Question: Why does Mux16 have output-list a%B1.16.1 b%B1.16.1 sel%D2.1.2 out%B1.16.1;
in which sel is Decimal?

I assume the original file has "D"; this is the first time I've shown interest in this.

I changed it to B and script runs OK, same as with D.

George
 
Reply | Threaded
Open this post in threaded view
|

Re: Test my chips - script syntax?

cadet1620
Administrator
Is there a difference between sel%D2.1.2 and sel%B2.1.2?

A one-bit decimal number can only be 0 or 1. (Technically, but rather useless, a 1-bit signed value would consist of only a sign bit and in 2's complement would be only 0 or -1.)

The hardware simulator appears to only print signed decimal numbers for 16-bit values.

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: Test my chips - script syntax?

Jim Willette
I have noted that the left-side display can be changed among decimal, hex, and binary using the View->Format menu options, but the "GUI Representation" for chips such as the ARegister do not respect the view, but display only signed decimal. This is quite annoying.