Re: simulation appears okay when programmed not getting all signals.

Jan Coombs <[email protected]> Sat, 23 Jan 2016 17:14:22 +0000
Newsgroups gmane.comp.python.myhdl
Message-ID <20160123171422.7391341c@t500>
On Sat, 23 Jan 2016 15:39:34 +0000 (UTC)
Edward Vidal <[email protected]> wrote:

> Hi All,
> Most of the files in the pc_fast_blinker_jpeg folder have 2
> options --test to run a simulation 
> 
> and --convert to create a Verilog file.  Trying to follow
> Chris's examples.

Ok, it is all new to me. Next time perhaps you could give clear
instructions. I missed the opportunity to interpret:

Hello All,   
    ran python test_sending31.py --test which generates tb.vcd 

into:

Hello All, ran 
  python test_sending31.py --test 
which generates tb.vcd 


I now have a tb.vcd file, so feel that with this mornings
work, and your additional hint I can now re-create your
work. 


> The file test_top.py imports several files
> 
> 
> from jpeg import dwt
> from signed2twoscomplement import signed2twoscomplement
> from l2r import lift2res
> from sh_reg import ShiftReg, toSig
> from para2ser import para2ser
> from div_clk import div_4
> from jpeg_sig import *
    
                      [Did I need to know that?]

> 
> Running "python test_top.py --test" is my overall goal. 

Ok dune it, seems to work, if this is what you expected:

jan:pc_fast_blinker_jpeg$ 
jan:pc_fast_blinker_jpeg$  python test_top.py --test
256 256
reset 1 
reset 0 
reset 1 
update firstBit 0000000000000000000000000000000 1 1 
first flgs firstBit 0000000000000000000000000000000 1 1 
2nd flg firstBit 0000000000000000000000000000001 1 1 
3rd flgs 0000000000000000000000000000011 1 
Right 010100100 164
31 bits 0000000000000000000000000000111 0 8 
31 bits 0000000000000000000000000001111 1 7 
31 bits 0000000000000000000000000011110 0 6 
31 bits 0000000000000000000000000111101 1 5 
31 bits 0000000000000000000000001111010 0 4 
31 bits 0000000000000000000000011110101 0 3 
31 bits 0000000000000000000000111101010 1 2 
31 bits 0000000000000000000001111010100 0 1 
LSB rht 0000000000000000000011110101001 0 0 
Sam 010100100 164
31 bits 0000000000000000000111101010010 0 8 
31 bits 0000000000000000001111010100100 1 7 
31 bits 0000000000000000011110101001000 0 6 
31 bits 0000000000000000111101010010001 1 5 
31 bits 0000000000000001111010100100010 0 4 
31 bits 0000000000000011110101001000101 0 3 
31 bits 0000000000000111101010010001010 1 2 
31 bits 0000000000001111010100100010100 0 1 
LSB sam 0000000000011110101001000101001 0 0 
Left 010011100 156
31 bits 0000000000111101010010001010010 0 8 
31 bits 0000000001111010100100010100100 1 7 
31 bits 0000000011110101001000101001000 0 6 
31 bits 0000000111101010010001010010001 0 5 
31 bits 0000001111010100100010100100010 1 4 
31 bits 0000011110101001000101001000100 1 3 
31 bits 0000111101010010001010010001001 1 2 
31 bits 0001111010100100010100100010011 0 1 
LSB lft 0011110101001000101001000100111 0 0 
fB0 0 
reset 1 
reset 0 
reset 1 
update firstBit 0000000000000000000000000000000 1 1 
first flgs firstBit 0000000000000000000000000000000 1 1 
2nd flg firstBit 0000000000000000000000000000001 1 1 
3rd flgs 0000000000000000000000000000011 1 
Right 010100100 164
31 bits 0000000000000000000000000000111 0 8 
31 bits 0000000000000000000000000001111 1 7 
31 bits 0000000000000000000000000011110 0 6 
31 bits 0000000000000000000000000111101 1 5 
31 bits 0000000000000000000000001111010 0 4 
31 bits 0000000000000000000000011110101 0 3 
31 bits 0000000000000000000000111101010 1 2 
31 bits 0000000000000000000001111010100 0 1 
LSB rht 0000000000000000000011110101001 0 0 
Sam 010100100 164
31 bits 0000000000000000000111101010010 0 8 
31 bits 0000000000000000001111010100100 1 7 
31 bits 0000000000000000011110101001000 0 6 
31 bits 0000000000000000111101010010001 1 5 
31 bits 0000000000000001111010100100010 0 4 
31 bits 0000000000000011110101001000101 0 3 
31 bits 0000000000000111101010010001010 1 2 
31 bits 0000000000001111010100100010100 0 1 
LSB sam 0000000000011110101001000101001 0 0 
Left 010100100 164
31 bits 0000000000111101010010001010010 0 8 
31 bits 0000000001111010100100010100100 1 7 
31 bits 0000000011110101001000101001000 0 6 
31 bits 0000000111101010010001010010001 1 5 
31 bits 0000001111010100100010100100010 0 4 
31 bits 0000011110101001000101001000101 0 3 
31 bits 0000111101010010001010010001010 1 2 
31 bits 0001111010100100010100100010100 0 1 
LSB lft 0011110101001000101001000101001 0 0 
fB1 0 
reset 1 
reset 0 
reset 1 
update firstBit 0000000000000000000000000000000 1 1 
first flgs firstBit 0000000000000000000000000000000 1 1 
2nd flg firstBit 0000000000000000000000000000001 0 0 
3rd flgs 0000000000000000000000000000011 1 
Right 010100100 164
31 bits 0000000000000000000000000000111 0 8 
31 bits 0000000000000000000000000001111 1 7 
31 bits 0000000000000000000000000011110 0 6 
31 bits 0000000000000000000000000111101 1 5 
31 bits 0000000000000000000000001111010 0 4 
31 bits 0000000000000000000000011110101 0 3 
31 bits 0000000000000000000000111101010 1 2 
31 bits 0000000000000000000001111010100 0 1 
LSB rht 0000000000000000000011110101001 0 0 
Sam 010011100 156
31 bits 0000000000000000000111101010010 0 8 
31 bits 0000000000000000001111010100100 1 7 
31 bits 0000000000000000011110101001000 0 6 
31 bits 0000000000000000111101010010001 0 5 
31 bits 0000000000000001111010100100010 1 4 
31 bits 0000000000000011110101001000100 1 3 
31 bits 0000000000000111101010010001001 1 2 
31 bits 0000000000001111010100100010011 0 1 
LSB sam 0000000000011110101001000100111 0 0 
Left 010100100 164
31 bits 0000000000111101010010001001110 0 8 
31 bits 0000000001111010100100010011100 1 7 
31 bits 0000000011110101001000100111000 0 6 
31 bits 0000000111101010010001001110001 1 5 
31 bits 0000001111010100100010011100010 0 4 
31 bits 0000011110101001000100111000101 0 3 
31 bits 0000111101010010001001110001010 1 2 
31 bits 0001111010100100010011100010100 0 1 
LSB lft 0011110101001000100111000101001 0 0 
fB2 0 
reset 1 
reset 0 
reset 1 
update firstBit 0000000000000000000000000000000 1 1 
first flgs firstBit 0000000000000000000000000000000 1 1 
2nd flg firstBit 0000000000000000000000000000001 0 0 
3rd flgs 0000000000000000000000000000011 1 
Right 010100100 164
31 bits 0000000000000000000000000000111 0 8 
31 bits 0000000000000000000000000001111 1 7 
31 bits 0000000000000000000000000011110 0 6 
31 bits 0000000000000000000000000111101 1 5 
31 bits 0000000000000000000000001111010 0 4 
31 bits 0000000000000000000000011110101 0 3 
31 bits 0000000000000000000000111101010 1 2 
31 bits 0000000000000000000001111010100 0 1 
LSB rht 0000000000000000000011110101001 0 0 
Sam 010011100 156
31 bits 0000000000000000000111101010010 0 8 
31 bits 0000000000000000001111010100100 1 7 
31 bits 0000000000000000011110101001000 0 6 
31 bits 0000000000000000111101010010001 0 5 
31 bits 0000000000000001111010100100010 1 4 
31 bits 0000000000000011110101001000100 1 3 
31 bits 0000000000000111101010010001001 1 2 
31 bits 0000000000001111010100100010011 0 1 
LSB sam 0000000000011110101001000100111 0 0 
Left 010100100 164
31 bits 0000000000111101010010001001110 0 8 
31 bits 0000000001111010100100010011100 1 7 
31 bits 0000000011110101001000100111000 0 6 
31 bits 0000000111101010010001001110001 1 5 
31 bits 0000001111010100100010011100010 0 4 
31 bits 0000011110101001000100111000101 0 3 
31 bits 0000111101010010001001110001010 1 2 
31 bits 0001111010100100010011100010100 0 1 
LSB lft 0011110101001000100111000101001 0 0 
fB3 0 
1 2 3
156 164 164
010011100 010100100 010100100
3 4 5
164 164 164
010100100 010100100 010100100
5 6 7
164 156 164
010100100 010011100 010100100
7 8 9
164 156 164
010100100 010011100 010100100
jan:pc_fast_blinker_jpeg$ 
jan:pc_fast_blinker_jpeg$ 

is this the expected output? 

Jan Coombs
--


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
myhdl-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/myhdl-list