Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

black box implemenation from system generator matlab

Status
Not open for further replies.

prashanthi999

Member level 1
Joined
Nov 19, 2014
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
293
black box in system generator

hello guys , i need some help in how to use a black box in system generator in matlab???
i have created a counter program in vhdl, i have called that counter.vhd in black box, i have given clk,rst input to it using gateway in, but im nt getting any counter values from the black box kindly help me !!!!

here is my blackbox.slx image

129022-counter_image.jpg


- - - Updated - - -

my clk,rst are std_logic, so i have used boolean for representing reset from gateway in, and clock as fix_1_0 from gateway in. kindly help me???
 

Attachments

  • counter_image.jpg
    counter_image.jpg
    42.6 KB · Views: 44

vGoodtimes

Advanced Member level 4
Joined
Feb 16, 2015
Messages
1,089
Helped
307
Reputation
614
Reaction score
303
Trophy points
83
Activity points
8,730
Re: black box in system generator

does the module have an active low reset?
 

prashanthi999

Member level 1
Joined
Nov 19, 2014
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
293
Re: black box in system generator

no normal reset only , that means when the reset is '0', the model counts upto 15, since im using a 4 bit counter.

- - - Updated - - -

im not able to implement a small "and" gate using black box!!!, i have manually set my and1.config file output(c) to "bool", added my path 's:/.../and1.vhd', still some errors, how to sort this, whats the correct procedure?
 

prashanthi999

Member level 1
Joined
Nov 19, 2014
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
293
does any one know how to implement a black box block from the matlab system generator libraries, because i want to implement a "counter" mechanism from a black box block. i have been getting errors in config.m file? help!
 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top