forked from libre-chip/fayalite
sim: add SimValue and reading/writing more than just a scalar
This commit is contained in:
parent
304d8da0e8
commit
21c73051ec
5 changed files with 1719 additions and 460 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -9,18 +9,25 @@ $var wire 2 $ which_in $end
|
|||
$var wire 4 % data_in $end
|
||||
$var wire 2 & which_out $end
|
||||
$var wire 4 ' data_out $end
|
||||
$scope struct the_reg $end
|
||||
$scope struct b_out $end
|
||||
$var string 1 ( \$tag $end
|
||||
$scope struct HdlSome $end
|
||||
$var wire 1 ) \0 $end
|
||||
$var wire 1 * \1 $end
|
||||
$upscope $end
|
||||
$upscope $end
|
||||
$scope struct the_reg $end
|
||||
$var string 1 + \$tag $end
|
||||
$scope struct B $end
|
||||
$var reg 1 ) \0 $end
|
||||
$var reg 1 * \1 $end
|
||||
$var reg 1 , \0 $end
|
||||
$var reg 1 - \1 $end
|
||||
$upscope $end
|
||||
$scope struct C $end
|
||||
$scope struct a $end
|
||||
$var reg 1 + \[0] $end
|
||||
$var reg 1 , \[1] $end
|
||||
$var reg 1 . \[0] $end
|
||||
$var reg 1 / \[1] $end
|
||||
$upscope $end
|
||||
$var reg 2 - b $end
|
||||
$var reg 2 0 b $end
|
||||
$upscope $end
|
||||
$upscope $end
|
||||
$upscope $end
|
||||
|
|
@ -33,12 +40,15 @@ b0 $
|
|||
b0 %
|
||||
b0 &
|
||||
b0 '
|
||||
sA\x20(0) (
|
||||
sHdlNone\x20(0) (
|
||||
0)
|
||||
0*
|
||||
0+
|
||||
sA\x20(0) +
|
||||
0,
|
||||
b0 -
|
||||
0-
|
||||
0.
|
||||
0/
|
||||
b0 0
|
||||
$end
|
||||
#1000000
|
||||
1!
|
||||
|
|
@ -55,7 +65,8 @@ b1 $
|
|||
#5000000
|
||||
1!
|
||||
b1 &
|
||||
sB\x20(1) (
|
||||
sHdlSome\x20(1) (
|
||||
sB\x20(1) +
|
||||
#6000000
|
||||
0#
|
||||
b0 $
|
||||
|
|
@ -72,8 +83,10 @@ b1111 %
|
|||
b11 '
|
||||
1)
|
||||
1*
|
||||
1+
|
||||
1,
|
||||
1-
|
||||
1.
|
||||
1/
|
||||
#10000000
|
||||
0!
|
||||
#11000000
|
||||
|
|
@ -85,8 +98,11 @@ b10 $
|
|||
1!
|
||||
b10 &
|
||||
b1111 '
|
||||
sC\x20(2) (
|
||||
b11 -
|
||||
sHdlNone\x20(0) (
|
||||
0)
|
||||
0*
|
||||
sC\x20(2) +
|
||||
b11 0
|
||||
#14000000
|
||||
0!
|
||||
#15000000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue