Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16597 Discussions

How to extract 1bit from a bus in a Block Diagram/Schematic File

Altera_Forum
Honored Contributor II
3,474 Views

Well, I'm new to quartus and I don't know if this is possible or not. i can handle it in verilog/vhdl but I wanted to know if this can be done in a block diagram file. 

 

This is what I want to do: (Example) 

 

I've implemented a lpm_add_sub as an 8 bit adder, how can I for example use bit 2 & 3 of the output as inputs of another gate?(I need to extract these 2 bits out of the output ) 

 

I hope what I've said is clear enough. 

 

Thanks in advance.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
2,032 Views

Select the bus and type a name for the bus like: result[8..0] 

 

Then, using the Orthogonal Node tool, create a line, select the line (signal) and type a name for the signal like: result[5]. This signal is the bit 5 of the bus result[8..0]. 

 

 

(Sorry for the bad english, i'm brazilian):)  

 

Rodrigo Willians
0 Kudos
Altera_Forum
Honored Contributor II
2,032 Views

 

--- Quote Start ---  

Select the bus and type a name for the bus like: result[8..0] 

 

Then, using the Orthogonal Node tool, create a line, select the line (signal) and type a name for the signal like: result[5]. This signal is the bit 5 of the bus result[8..0]. 

 

 

(Sorry for the bad english, i'm brazilian):)  

 

Rodrigo Willians 

--- Quote End ---  

 

Thanks buddy! That's what I needed! 

 

I, myself am from Iran!
0 Kudos
Altera_Forum
Honored Contributor II
2,032 Views

Good and clear. 

One principle: always name the wider bus first, then name the narrower bus accordingly. 

By the way, I am Chinese.
0 Kudos
Altera_Forum
Honored Contributor II
2,032 Views

 

--- Quote Start ---  

Good and clear. 

One principle: always name the wider bus first, then name the narrower bus accordingly. 

By the way, I am Chinese. 

--- Quote End ---  

 

Thankyou !
0 Kudos
Reply