05-01-2012 11:53 AM
hi, doing a project with 5 inputs and 3 outputs, all the code is written, but stuck at the picoblaze section, I hve connected the picoblaze kcpsm3 and the rom files etc......but trying to testbench 8-bits sending to my inputs and 8-bits sendign to my outputs......basically sending 8-bits to one input and 8-bits to one output.......
my testbench is coming back with nothing, as the read and write lines are not enabled......how do you do this ???
do you write the code in assembly or in vhdl testbench
here is my entity below :
entity picooverall is
Port ( InputA : in STD_LOGIC_vector ( 7 downto 0);
InputB : in STD_LOGIC_vector ( 7 downto 0);
InputC : in STD_LOGIC_vector ( 7 downto 0);
InputD : in STD_LOGIC_vector ( 7 downto 0);
InputE : in STD_LOGIC_vector ( 7 downto 0);
Outputp1 : out STD_LOGIC_vector ( 7 downto 0);
Outputp2 : out STD_LOGIC_vector ( 7 downto 0);
OutputLed : out STD_LOGIC_vector ( 7 downto 0);
picoout : in std_logic_vector (3 downto 0);
reset : in std_logic;
clk : in std_logic);
any suggestions thanks....
05-02-2012 12:07 AM
your attempt to provide some information to the forum for finding the problem in your design is commendable.
Unfortunately the interesting and helpful parts are missing.
This would be the following:
The parts of your PSM file where you are accessing the ports,
The HDL or schematic where the ports are decoded
The simulation waveforms of port_id and read/write_strobe signals.
Maybe, if you look at all of this carefully, you are also able to identify some conflicting situations and resolve them by yourself.
Otherwise, we can try to assist you if you provide sufficient ammounts of the above listed informations.
Your testbench code looks quite OK so far.
Maybe you could add some more runtime for the simulation.
Processors tend to do something useful even later than expected. ;-)
Have a nice synthesis